terikon / marker-animate-unobtrusive

Google Maps markers become animated, unobtrusively
MIT License
222 stars 52 forks source link

marker.setMap(null) not working #12

Closed wqsaali closed 7 years ago

wqsaali commented 8 years ago

Hi, if i define SlidingMarker.initializeGlobally(); then if there is any need to hide marker using marker.setMap(null) or marker.isVisible(false); both not working. any idea?

wqsaali commented 8 years ago

@viskin

viskin commented 8 years ago

I've tried exactly that, and for me both marker.setMap(null) and marker.setVisible(false) hide the marker. I've tried this with and without initialGlobally call. Can you please provide some code to review?