>I´m using gDirectiosn to make a route. Is it somehow possible to
>remove the default icons?
Not sure if it's what you are looking for but might help
function hideDirMarkers() {
var numMarkers = gdir.getNumGeocodes();
for (var i = 0; numMarkers > i; i++) {
var marker = gdir.getMarker(i);
if (marker !== null) {
marker.hide();
} else {
alert("Marker is null");
}
}
}
And call it from
var gdir=new GDirections(map, document.getElementById("directions"));
GEvent.addListener(gdir, "addoverlay", hideDirMarkers);
Ralph
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---