Difference between revisions of "Template:Worldmap"

From Geohashing
imported>FrederikVds
(Let's test this)
 
imported>Tjtrumpet2323
m (Undo revision 7327 by Tjtrumpet2323 (Talk))
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
| lat = 51
 
| lat = 51
 
| lon = 3
 
| lon = 3
| page = Ghent%2C_Belgium}}
+
| page = Ghent, Belgium}}
  
 
{{Worldmap/bottom}}
 
{{Worldmap/bottom}}

Latest revision as of 23:12, 24 May 2008

<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAy7ilYTS0vQM5PD9Mhr6XVxS8dvA4i5v-GwKZMeRoffaqVofkuRSU4Wb3tATggjq922YolnGKH5odmQ"></script>

<script type="text/javascript">

 google.load("maps", "2");
 
 // Call this function when the page has been loaded
 function initialize() {
   var map = new google.maps.Map2(document.getElementById("worldmap"));
   var polygon = new GPolygon([
     new GLatLng(51    , 3),
     new GLatLng(51 + 1, 3),
     new GLatLng(51 + 1, 3 + 1),
     new GLatLng(51    , 3 + 1),
     new GLatLng(51    , 3)
   ], "#f33f00", 1, 1, "#ffe0e0", 0.2, {geodesic:true});
   
   polygon.click = function(){
     location.href = "/geohashing/Ghent,_Belgium";
   }
   
   map.addOverlay(polygon);
 }
 google.setOnLoadCallback(initialize);

</script>