Thank you.
Sounds like a good idea. But. And there´s a big one. I have _no_ idea
on how to create- and work with arrays in javascript. In PHP i would
do it simple like this.
// Adding to array
foreach (...time the positions are read) {
if (!in_array($latlon, $array)) {
$array[] = $latlon;
}
}
I would probably do it like you recomend if; and only if i knew any
javascript at all :-/
On Sep 23, 1:53 am, Rossko <[EMAIL PROTECTED]> wrote:
> > The question are. Can i, in a not-to-difficult way, make the map
> > create a polyline from "the last mark"- to "this mark"?
>
> Shouldn't be difficult.
> You're already getting the GLatLng() of each point as it comes in, to
> place your markers.
> Push each new GLatLng() onto an array
> If your polyline exists, removeOverlay it.
> Now re-define the polyline using the points array, and addOverlay it.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---