Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash/page reload on mobile a the end of a FlyTo animation #11954

Open
DDDgfx opened this issue Jun 2, 2022 · 0 comments
Open

Crash/page reload on mobile a the end of a FlyTo animation #11954

DDDgfx opened this issue Jun 2, 2022 · 0 comments

Comments

@DDDgfx
Copy link

DDDgfx commented Jun 2, 2022

I have a project you can view here: https://toclimbdev.wpengine.com/

Im using flyTo() to move about the map and - on mobile only - the page crashes and reloads at the end of my flyTo() - I also have an isolat4ed version of this project here: https://dddinfographic.com/bt1rwanda/ and it does not crash on mobile....

I'm wondering if having "essential : true" could be the culprit and that maybe in conjunction with the other elements of the complete site, the mobile browser is running out of memory

Is it best to not use this setting on mobile?

map.flyTo({
    center: [30.097696175948585, -1.9653736581438466],
    bearing: 0,
    pitch: 0,
    duration: 10000,
    curve: .1,
    zoom: 10.897333284760252,
    essential: true. // does this significantly impact mobile performance?
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant