question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bouncemarker latitude change when removing/adding it multiple times

See original GitHub issue

Environment:

  • 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:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
maximehcommented, Aug 1, 2017

If you have time to test it again, that’d be great ! I could work from there to try and fix your issue.

0reactions
maximehcommented, Jun 14, 2018

@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 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found