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.

panto().panby() not chained correctly

See original GitHub issue

Hi, i’m on Mapbox 1.6.2 and when i when i try to chain map.panTo({...}).panBy([...]); it works well on firefox, chrome, safari but not on IE8.

IE8 does directly the panBy without taking care of the panTo coordinates.

I’ve tried to solve by converting latLng to Point etc… but it seems to still not work.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
johnd0ecommented, Nov 9, 2021

if it is good the create a loop with setTimeout:

Why not?

And maybe it would make sense to create a general animation-code-chain function #2915

Do you mean callbacks? Not in Leaflet.

And do you think #7158 is related to this issue?

At least same type of issues. Apply your fix and check.

0reactions
johnd0ecommented, Nov 11, 2021

@Falke-Design May be, but we should make sure that this will not break something else.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google API and map.panTo: not panning - Stack Overflow
I have a Google map populated by markers, associated to a text and a recorded sound. It works. I'm trying to allow user...
Read more >
Documentation - a JavaScript library for interactive maps
Returns true if any tile in the grid layer has not finished loading. redraw(), this. Causes the layer to clear all the tiles...
Read more >

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