hi i have and array of string in this form
longitudevalue;latitudevalue;speed
so the values are separated with a semicolon
i have an explode function that reatrive each value
now the gpolyLine constructor take the points as paramaeters
no thing such gpolyLine.addpoint or somehting like
my question is how to add the points to the gpolyline :
here some code :
var s;
var longitude;
var latitude;
var speed;
// var polyline = new GPolyline();
for (i=0 ; i<trajetarray; i++)
{
s = trajetarray[i];
var exp=explode(";", s);
longitude = exp[0];
longitude = exp[1];
longitude = exp[2];
}
// map.addOverlay(polyline);
the problem is that i don't know how to add the points to the polyline
constructor
thenks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---