Mercurial > hg > ChinaGisRestApi
view zpt/GIS_schema_table.zpt @ 233:bdab16f83512
show line and polygon-layer
author | fknauft |
---|---|
date | Mon, 01 Aug 2011 21:35:27 +0200 |
parents | 052b426e9d9f |
children | 7c5d825a0083 |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" tal:define="root here/getRestDbUrl; schema options/schema; table options/table; kmlUrl python:here.getLiveKmlUrl(schema=schema,table=table); "> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-Equiv="Cache-Control" Content="no-cache"> <meta http-Equiv="Pragma" Content="no-cache"> <meta http-Equiv="Expires" Content="0"> <link rel="stylesheet" type="text/css" tal:attributes="href string:lib/mpiwgstyles.css"> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } #map_canvas { height: 100% } </style> <style type="text/css"> td {height:10; font-size:12;} th {height:10; font-size:12;} b {height:10; font-size:12;} h4 {height:10; font-size:15;} </style> <style type="text/css"> .tooltip { background-color:#ffffff; font-weight:bold; border:2px #006699 solid; } </style> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <!--**************** Now follow the additional Layers: --> <!-- <script type="text/javascript" tal:content="python:here.getFunctionAddLayers()"></script> --> <!--**************** --> <!-- <script src="/chinagis/javascript/geoxml.js" type="text/javascript"></script> <script src="/chinagis/javascript/showSelectedInMap_kml.js" type="text/javascript"></script> <script src="/chinagis/javascript/labeledMarker.js" type="text/javascript"></script>--> <script type="text/javascript"> var map = null; function initialize(kmlUrl) { map = new google.maps.Map(document.getElementById("map_canvas")); map.setMapTypeId(google.maps.MapTypeId.TERRAIN); var latlng = new google.maps.LatLng(29,116); map.setCenter(latlng); //(LatLng) map.setZoom(5); // (Zoom-Level) //geocoder = new google.maps.Geocoder(); newMarker=new google.maps.KmlLayer(kmlUrl); newMarker.setMap(map); } </script> </head> <body tal:attributes="onload string:initialize('$kmlUrl')"> <div id="map_canvas" style="width: 98%; height: 95%"> </div> </body> </html>