You are not logged in.
Pages: 1
Hi, I'm working with API3, I'm doing an application like http://transport.wspgroup.fi/hklkartta/defaultEn.aspx , but to i'm tracking position for Ambulances.
I want to know, what is the best strategies to remove and add markers, now use an array of markers, and if i have in my markers the ambulance i change the position using marker.setPosition(new google.maps.LatLng(latitude, Longitude)) only for this specific marker, But i see like all markers disapear and appear, is a very extrange behivor.
I see a lot of sites, but i don't see examples for real-time changing position best practices or good strategies for makers, can someone give me a recommendation?
Regards!
Nicolas.
Offline
If all the markers are being affected there is something wrong in your code. Post a link to a page that demonstrates the problem
Offline
you shoud use the tag to add a "name" or an "id" to your markers and then clear it or update thanks to tags
Offline
you shoud use the tag to add a "name" or an "id" to your markers and then clear it or update thanks to tags
Thanks, i do that and works well!
Offline
What if you would want to do this for other overlays like polylines? Obviously, a polyline has different properties from a marker, but what is I want to, for instance, want to change the stroke color of an already created polyline. Can I use the tag of the polyline that I set when I created it to get at it? How would I do that?
Thnx!
Jasper
Offline
Tags are for everything and in next version, will be extended to allow to use callback functions
Offline
Pages: 1