Hello;
I am adding my points from data base into an array in that form for
example:
[x,y,x,y,x,y.....]
and then I want to draw this points in a polyline
so what I have done is to make a for loop for (var i = 0; i <
latlngs.length; i += 4) { and then I add my points in the Gpolyline as
that:
var polyline = new GPolyline([new GLatLng(latlngs[i + 1] / 1000000,
latlngs[i] / 1000000), new GLatLng(latlngs[i + 3] / 1000000, latlngs[i
+ 2] / 1000000)], "#ff00ff", 10);
map.addOverlay(polyline);
but that is not a good solution becouse it is not drawing one poly
line.acctually you can see it one line but in thrut it is many poly
lines .
what I want to add these points in a uniqe polyline..
so I was wondering if I can make a extension to the same polyline ,I
mean if I draw the first part then when I enter the loop second time
to get the new points I will extend my it to the same polyline not
adding a new one.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---