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

[FEATURE] #1411

Closed
3 tasks done
Pepslee opened this issue Dec 4, 2022 · 2 comments
Closed
3 tasks done

[FEATURE] #1411

Pepslee opened this issue Dec 4, 2022 · 2 comments
Labels
feature This issue requests a new feature

Comments

@Pepslee
Copy link

Pepslee commented Dec 4, 2022

What do you want implemented?

Something lik eventEndZoom.
Now zoom in mapState is changing all the time during MapEvent, and it's triggering children rebuilds every time.
Would be great to have some helpful eventEndZoom to use it in children layers. Zoom will be changed only after event's end, but not changing during event.
For example, if I`m changing zoom from 10 to 20 by one gesture, I want to rebuild my plugin layer just at zoom=10, but not rebuild it at each zoom like 19 18 17 16 15 ... 10.
I have a lot of markers and some animations when zoom changing, and now it necessary to forward all this animation at each zoom from 10 to 20. Would be great to have possibility to forward animation just from 10 to 20 zoom directly.

What other alternatives are available?

A little workaround is to use ceil() for zoom.

Can you provide any other information?

Example of similar functional in Google Maps
With such functional I can change my widgetState just one time when MapEvent (move or zooming) was ended.

Platforms Affected

Android, iOS, Web, Windows, MacOS, Linux

Severity

Annoying: Currently have to use workarounds

Requirements

@Pepslee Pepslee added the feature This issue requests a new feature label Dec 4, 2022
@ibrierley
Copy link
Collaborator

I can't quite get my head around how this would work as the description feels like it's after 2 separate things (i.e an idle callback vs some sort of SnapToSomeStep type of implementation?). If it's a snap, I'm not sure the UI feedback would be very good (you'd just not think it was working?). If it's just a callback, you could probably just listen to a mapController stream and do something if no update after x ms ?

@JaffaKetchup
Copy link
Member

Closing for now, please feel free to ask to reopen!

@JaffaKetchup JaffaKetchup closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue requests a new feature
Projects
None yet
Development

No branches or pull requests

3 participants