Template:Worldmap

From Geohashing

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