Difference between revisions of "Template:Worldmap"
From Geohashing
imported>FrederikVds (Let's test this) |
imported>FrederikVds |
||
Line 4: | Line 4: | ||
| lat = 51 | | lat = 51 | ||
| lon = 3 | | lon = 3 | ||
− | | page = Ghent | + | | page = Ghent, Belgium}} |
{{Worldmap/bottom}} | {{Worldmap/bottom}} |
Revision as of 16:27, 23 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>