Template:Worldmap

From Geohashing
Revision as of 23:12, 24 May 2008 by imported>Tjtrumpet2323 (Undo revision 7327 by Tjtrumpet2323 (Talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<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>