Template:Worldmap/graticule

From Geohashing
< Template:Worldmap
Revision as of 16:17, 23 May 2008 by imported>FrederikVds (New page: var polygon = new GPolygon([ new GLatLng({{{lat}}} , {{{lon}}}), new GLatLng({{{lat}}} + 1, {{{lon}}}), new GLatLng({{{lat}}} + 1, {{{lon}}} + 1), new GLatLn...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
   var polygon = new GPolygon([
     new GLatLng({{{lat}}}    , {{{lon}}}),
     new GLatLng({{{lat}}} + 1, {{{lon}}}),
     new GLatLng({{{lat}}} + 1, {{{lon}}} + 1),
     new GLatLng({{{lat}}}    , {{{lon}}} + 1),
     new GLatLng({{{lat}}}    , {{{lon}}})
   ], "#f33f00", 1, 1, "#ffe0e0", 0.2, {geodesic:true});
   
   polygon.click = function(){
     location.href = "http://wiki.xkcd.com/geohashing/{{{page}}}";
   }
   
   map.addOverlay(polygon);