• Web
  • Contact
  • Sign In My Account
Menu

Charlton Roberts

"Machinery has been taught arithmetic instead of poetry" - Charles Babbage 1832
  • Web
  • Contact
  • Sign In My Account

How to Remove a Marker Google Maps JavaScript API v3

December 27, 2015

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);
← Conditional Parents in JadeJade Templating in Kraken for Node.js →

Latest & Greatest


Fresh Tweets


This is a block field

You can put any content in here.

Etiam porta sem malesuada magna mollis euismod. Vestibulum id ligula porta felis euismod semper. Maecenas sed diam eget risus varius blandit sit amet non magna. Vestibulum id ligula porta felis euismod semper.

Powered by Squarespace