Removing Directions markers from the Google Maps API V3

Posted by anonymous on Stack Overflow See other posts from Stack Overflow or by anonymous
Published on 2010-05-28T20:46:04Z Indexed on 2010/05/28 20:52 UTC
Read the original article Hit count: 206

To remove a normal marker from a map, I understand you simply call marker.setMap(null), but when implementing the Google Maps directions services, it automatically adds markers A and B onto the map ( calculating directions from point A to point B ). I do not have control over these markers, so I cannot remove them in the normal way. So how can I remove these markers (I have custom markers on the map instead)?

© Stack Overflow or respective owner

Related posts about api

Related posts about google-maps