Hi at all,
I'm trying to create a gpolygon with the extent of whole world,
without luck.
I'm using this coordinates, but I don't understand what gmaps
determine the coordinates...
This is the code i'm using. I'm using a poligon with 8 coordinates
(and the first coordinate to close it).
How a draw a polygon that coverswholel map?
var polygon = new GPolygon([
new GLatLng(-85.05112877980659,-180),
new GLatLng(0,-180),
new GLatLng(85.0511287798066,-180),
new GLatLng(85.0511287798066,0),
new GLatLng(85.0511287798066,180),
new GLatLng(0,180),
new GLatLng(-85.0511287798066,-180),
new GLatLng(-85.0511287798066,0),
new GLatLng(-85.05112877980659,-180)
], "#f33f00", 1, 1, "#ff0000", 0.2);
map.addOverlay(polygon);
Many thaks!
Moli
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.