why setMap(null) is not working google maps api v3?
I am using google maps api 3.9 .In app user can add marker or delete marker.when user click on map an Infowindow will be displayed.in which user can enter name,lat,long and click the save image as follows: google.maps.event.addListener(map, 'click', function(event) { point = new google.maps.Marker({ position: event.latLng , map: map , icon: 'resource/image/mapIcons/point.png' , id: id , type:"point" }); type = point.type; newPoint = true; existingPoint = false; markerObj = this; inputInfowindow.setContent("<table style='width:92%;' id='inputTable'>" + "<tr> <td>point</td> </tr>" + "<tr> <td>