hello,
if anyone is interested i found a turnaround
1 - i copy the markers from gdirections :
var originalMarker = gdirections[i].getMarker(z);
latLngs[z] = originalMarker.getLatLng();
icons[z] = originalMarker.getIcon();
newMarkers[z] = new GMarker(latLngs[z],{title:
originalMarker.getTitle(),icon:icons[z],draggable:false});
2- i hide gdirections :
gdirections[i].hide();(removeOverlay(gdirections[i]) didn't work i
don't know why )
3- i redraw the route without the marker
map.addOverlay(gdirections[i].getPolyline());
4 - i put my own markers newMarkers
map.addOverlay(newMarkers[z]);
hope this can help someone :P
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---