hosuaby / Leaflet.SmoothMarkerBouncing

Smooth animation of marker bouncing for Leaflet.
BSD 2-Clause "Simplified" License
146 stars 28 forks source link

Cannot read property 'moveSteps' of undefined #25

Closed elvisef closed 3 years ago

elvisef commented 4 years ago

What is going on ? I am using such piece of code:

.on('click', function() { this.bounce(2); })

and when I click the marker, this error shows up in my web browser console..

I have only a few markers on my map, nothing else. Not using any other leaflet plugins, just a single "leaflet.js" file with CSS one.

Any suggestions ?

hosuaby commented 3 years ago

Probably mis-usage of plugin. Need to have the whole script to understand where the problem is. This issue is propably outdated and will closed. If you have a similar issue, please, check how to use plugin in https://github.com/hosuaby/Leaflet.SmoothMarkerBouncing/blob/master/debug/scripts/app.js