I tried this, but the polygon does not show up at all when using the
following coordinates:
N= 90
S= -90
E= 170
W= -170
--- code ----
if ((east > 0.0) && (west < 0.0)) {
middle = 0.0;
} else {middle = east;}
var L = new GPolygon([
new GLatLng(south, west),
new GlatLng(south, middle),
new GLatLng(south, east),
new GLatLng(north, east),
nwe GLatLng(north, middle),
new GLatLng(north, west),
new GLatLng(south, west)
], "#f33f00", 5, 1, "#ff0000", 0.2);
----------
any hint?
On Oct 12, 2:44 am, Rossko <[email protected]> wrote:
> > I get a rectangle large 20 degrees and not 340 degrees.
>
> Polygons wrap round the world the shortest way.
> Make it a six-point poly (plus the closing seventh) with points on the
> 0 meridian too.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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
-~----------~----~----~----~------~----~------~--~---