apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.27k stars 382 forks source link

"Uncaught TypeError: gem_marker.clear is not a function" when running removeMarkers. #484

Closed codedgeass closed 9 years ago

codedgeass commented 9 years ago

I cannot remove markers from an already rendered map. Whenever I try to run handler.removeMarkers I get the error in the title. Adding markers works fine.

apneadiving commented 9 years ago

Show your code, my guess you dont provide objects to the function, just json

codedgeass commented 9 years ago

Thanks! I was getting confused reading a lot of outdated tips.