THIS DRAWS A POLYGON
var polygon = new GPolygon([
new GLatLng(37.4419, -132.0419),
new GLatLng(47.3419, -122.1419),
new GLatLng(37.4419, -112.2419),
new GLatLng(27.5419, -122.1419),
new GLatLng(37.4419, -132.0419)
], "#f33f00", 5, 1, "#ff0000", 0.2);
map.addOverlay(polygon);
THIS DOES NOT
var polygon = new GPolygon([
[37.4419, -132.0419]
[47.3419, -122.1419]
[37.4419, -112.2419]
[27.5419, -122.1419]
[37.4419, -132.0419]
], "#f33f00", 5, 1, "#ff0000", 0.2);
map.addOverlay(polygon);
THIS DOES NOT
points = [[37.4419, -132.0419], [47.3419, -122.1419], [37.4419,
-112.2419], [27.5419, -122.1419], [37.4419, -132.0419]];
var polygon = new GPolygon(points, "#f33f00", 5, 1,
"#ff0000", 0.2);
map.addOverlay(polygon);
I want to use an array of points... what the hell am and I doing
wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---