remove ()
Class:
Marker
This doesn't destroy the instance of the class, but it removes the DOM object, which means you'll see errors if you try to access it or run its methods after you've removed it.
Returns: true
Example
// assuming you already have access to `marker` as a Marker object
marker.remove();