Pfff,
:(

//-->LatLong Array preparing
var myArray = new Array(new GLatLng(40.547200,34.980469),new GLatLng
(40.563895,36.013184),new GLatLng(39.639538,36.694336),new GLatLng
(39.470125,34.936523),new GLatLng(40.547200,34.980469));

//------------->Starting

drawPolygon(myArray);

function drawPolygon(theArray)
{
var polygon = new GPolygon(theArray, "#f33f00", 5, 1, "#ff0000", 0.4)
                  map.addOverlay(polygon);
}




On 16 Ağustos, 13:51, Rossko <[email protected]> wrote:
> > Yes. So is it wrong?
>
> Well it was, but you're not doing it that way anymore.
>
> Now we have
>     var polygon = new GPolygon([theArray],.....
> 'theArray' is already an array of GLatLng and you don't need to put
> the [ ] around it, because that makes an array of arrays.
> GPolygon expects an array of GLatLng, not an array of arrays of
> GLatLng.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to