How To Remove Google Geocode On Click
I am using google maps- directions and geocoding. The geocode places a marker when the page loads. Is it possible to have this marker removed when a user clicks the submit button?
Solution 1:
Assuming you're using the v3 api, try:
marker.setMap(null);
That will remove it from the map.
http://code.google.com/apis/maps/documentation/javascript/reference.html#Marker
Post a Comment for "How To Remove Google Geocode On Click"