Strabon

changeset 614:05841a0f3d6b

On my way........ (temporal commit)
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Wed Sep 19 16:14:55 2012 +0300 (2012-09-19)
parents 28812d96cfa5
children db8b65bcd1d6
files endpoint/WebContent/query.jsp resultio/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java
line diff
     1.1 --- a/endpoint/WebContent/query.jsp	Mon Sep 17 23:02:16 2012 +0300
     1.2 +++ b/endpoint/WebContent/query.jsp	Wed Sep 19 16:14:55 2012 +0300
     1.3 @@ -63,11 +63,27 @@
     1.4  			var ctaLayer = new google.maps.KmlLayer(kml);
     1.5  			ctaLayer.setMap(map);
     1.6  		<%}%>
     1.7 +		<%if ("map_local".equals(request.getAttribute("handle"))) {%>
     1.8 +			location.hash = "#results";
     1.9 +		<%}%>
    1.10 +		
    1.11  		}
    1.12  	</script> 
    1.13  <%
    1.14   	}
    1.15   %>
    1.16 + 
    1.17 +	<%if (	"map".equals(request.getAttribute("handle")) || 
    1.18 +			"map_local".equals(request.getAttribute("handle"))) {%>
    1.19 +		<script type="text/javascript">
    1.20 +			window.onload=toBottom;
    1.21 +			function toBottom() {
    1.22 +				alert("Scrolling to bottom 2...");
    1.23 +				window.scrollTo(0, document.body.scrollHeight);
    1.24 +			}
    1.25 +		</script> 
    1.26 +	<%}%>
    1.27 +		
    1.28  	<title>TELEIOS: Strabon Endpoint</title>
    1.29  </head>
    1.30  <body topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" onload="initialize()">
    1.31 @@ -170,6 +186,7 @@
    1.32  </table></td></tr></table><br/><br/>
    1.33  </form>
    1.34  	<!-- Response -->
    1.35 +	<a name="#results">&nbsp;</a>
    1.36  <% if (request.getAttribute("response") != null) {
    1.37  	if (Common.getHTMLFormat().equals(request.getParameter("format"))) {%>
    1.38  		<%=request.getAttribute("response")%>
     2.1 --- a/resultio/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java	Mon Sep 17 23:02:16 2012 +0300
     2.2 +++ b/resultio/src/main/java/org/openrdf/query/resultio/sparqlkml/stSPARQLResultsKMLWriter.java	Wed Sep 19 16:14:55 2012 +0300
     2.3 @@ -182,6 +182,7 @@
     2.4  				String mouseOverLineColor = style[5];
     2.5  				String mouseOverPolygonFill = style[6];
     2.6  
     2.7 +				//append normal style
     2.8  				xmlWriter.setAttribute("id", "normal_"+id);
     2.9  				xmlWriter.startTag(STYLE_TAG);			
    2.10  				xmlWriter.startTag(LINESTYLE_TAG);
    2.11 @@ -192,7 +193,7 @@
    2.12  				xmlWriter.textElement("color", polygonFill);
    2.13  				xmlWriter.endTag(POLYSTYLE_TAG);
    2.14  				xmlWriter.endTag(STYLE_TAG);
    2.15 -
    2.16 +				//append highlight style
    2.17  				xmlWriter.setAttribute("id", "highlight_"+id);
    2.18  				xmlWriter.startTag(STYLE_TAG);			
    2.19  				xmlWriter.startTag(LINESTYLE_TAG);
    2.20 @@ -203,7 +204,7 @@
    2.21  				xmlWriter.textElement("color", mouseOverPolygonFill);
    2.22  				xmlWriter.endTag(POLYSTYLE_TAG);
    2.23  				xmlWriter.endTag(STYLE_TAG);
    2.24 -
    2.25 +				//define map style combining the above styles
    2.26  				xmlWriter.setAttribute("id", id);
    2.27  				xmlWriter.startTag(STYLEMAP_TAG);
    2.28  				xmlWriter.startTag("Pair");