This, I thought, was not intuitive. In order to remove a marker that you have placed on a map, you need to reset its map, particularly to null
. Like so:
markerToBeRemoved.setMap(null);
This, I thought, was not intuitive. In order to remove a marker that you have placed on a map, you need to reset its map, particularly to null
. Like so:
markerToBeRemoved.setMap(null);