Bouncemarker latitude change when removing/adding it multiple times
See original GitHub issueEnvironment:
- leaflet map
- some overlay to regroup markers
- one marker should bounce
- options of my marker:
marker.options.bounceOnAdd = true;
marker.options.bounceOnAddOptions = {duration: 3000, height: 150};
marker.options.zIndexOffset = 10;
When I click on the checkbox to display the overlay: the bounce marker is OK. Then I click again. The bounce marker disappears. Well. Finally I click again on the checkbox. All markers appear. But the bounce one is displayed some pixel on the top from the location where it should appear.
I just display some information, and the latitude seems to change each time I add the marker on the map. Except the first time.
By deleting this line: https://github.com/maximeh/leaflet.bouncemarker/blob/master/bouncemarker.js#L173 all seems to be OK. The bouncer is displayed well. The latitude don’t change. And I don’t notice any problem.
So I’m curious: what the goal of this line 173?
Thanks in advance for all kind of information about that 😉
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you have time to test it again, that’d be great ! I could work from there to try and fix your issue.
@blankoworld I just pushed a bunch of changes; I think it should be good now, could you give it a try and comment here ? Thanks a lot !