82
rated 0 times
[
83]
[
1]
/ answers: 1 / hits: 22373
/ 13 Years ago, sun, july 17, 2011, 12:00:00
I'm using this function to add a new marker (and polyline) to a map:
function addMarker(location) {
path = poly.getPath();
path.push(location);
marker = new google.maps.Marker({
position: location,
icon:'location.png',
title: poly.inKm() + ' km',
map: map
});
markersArray.push(marker);
}
How can I remove the last marker (for implementing undo)?
Best regards ...
More From » google-maps-api-3