view zpt/GIS_schema_table.zpt @ 254:901c1f745d13

GIS-Links from MPDL-Documents now served by Mappit-Server
author fknauft
date Wed, 28 Sep 2011 15:09:14 +0200
parents 7c5d825a0083
children f25ee0424ce6
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.getLiveUrl(schema=schema,table=table,useTimestamp=False);
">
<!--
<html xmlns="http://www.w3.org/1999/xhtml"
  tal:define="root here/getRestDbUrl;
        schema options/schema; table options/table; args options/args;
        kmlUrl python:RestDbGisAPI.getKmlUrl(here, schema=schema,table=table, args=args);
">
-->
 <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>