Terry,
You can remove a marker by setting it's map to NULL .... here's another code snippet....
function fClearGPSMarkers() {
if (aMarkers.length !== 0 || aMarkers !== '[]') {
for (var i = 0; i < aMarkers.length; i++) {
this.aMarkers.setMap(null);
}
}
return true;
}
if you have only one marker - of course no need to keep track of them in a global array (what's assumed above).
Of NOTE - although it's your first thought - a map has markers - it's actually the other way around - a MARKER has a map - and in order to show a marker - you create it - and then associate it with a map , and then when you want to delete it from the map - you tell the marker to no longer associate itself with the map.
Hope this helps!
Happy Tuesday again!
Bruce