Sorry,
i've forgot to add my GPolygon drawing function
function polygonCiz(gelenDizi)
{
pointsArray = new Array();
for(var i=0;i<gelenDizi.length-1;i++)
{
pointsArray.push(new
GLatLng(gelenDizi[i][1],gelenDizi[i+1][0]));
//alert(gelenDizi[i][1] +'\n'+
gelenDizi[i+1][0])
}
var polygon = new GPolygon([pointsArray], "#f33f00", 5, 1, "#ff0000",
0.4)
map.addOverlay(polygon);
}
Still it gives an error
:(
On 16 Ağustos, 13:03, Rossko <[email protected]> wrote:
> > var dizimiz = new Array(new Array(40.547200,34.980469),new Array
> > (40.563895,36.013184),new Array(39.639538,36.694336),new Array
> > (39.470125,34.936523),new Array(40.547200,34.980469));
>
> > Is it possible to use arrays directly inside the GPolygon?
>
> You've seen this thread
> -http://groups.google.com/group/Google-Maps-API/browse_thread/thread/b...
> that explains that GPolygon expects an array of GLatLngs
>
> var dizimiz = new Array(new GLatLng(40.547200,34.980469),new 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
-~----------~----~----~----~------~----~------~--~---