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.

view.fit with duration no longer works

See original GitHub issue

Describe the bug Using view.fit with a duration greater than 0 does not always work. It was previously working on version 5.x but does not work on 6.3.1.

To Reproduce

view.fit([-1000,-1000,1000,1000], { duration: 500 })
// or use the default of 1000
view.fit([-1000,-1000,1000,1000])

When it does work, updateAnimations_ in src/View.js gets called repeatedly. When it doesn’t work, updateAnimations_ only gets called one time.

Expected behavior the viewport pans/zooms to the extent

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ahocevarcommented, May 14, 2020

@jahow, can you take a look at this please?

1reaction
ahocevarcommented, Apr 29, 2020

Can you please share a runnable, minimal example that exposes the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Openlayers on view fit animation ends - Stack Overflow
As you see, there is an animation setting there: duration:1000 . What I need is to call a function after fit ends (after...
Read more >
Openlayers-6 .fit(extent, {options}) not working with options
I have upgrade openlayers in IONIC V3 app from 4.6.5 to 6.1.0. Now map.getView().fit(extent, {duration:1000}) stop working, when i remove the ...
Read more >
Unable to Edit Duration, Calorie or Distance values in google ...
Unable to Edit Duration, Calorie or Distance values in google fit anymore. And the tracking doesn't. Fit is unable to track activities correctly...
Read more >
The duration or work value changed when I assigned a resource
The duration, work, and resource assignments for a task are interlinked. When you assign resources to a task, Project calculates how long the...
Read more >
About watchOS 9 Updates - Apple Support
watchOS 9 brings great new ways to keep you active, healthy, and connected with Apple Watch. You have more ways to train and...
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