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

onMoveStart onMoveEnd #701

Closed
sm2017 opened this issue Jul 25, 2020 · 5 comments · Fixed by #719
Closed

onMoveStart onMoveEnd #701

sm2017 opened this issue Jul 25, 2020 · 5 comments · Fixed by #719

Comments

@sm2017
Copy link

sm2017 commented Jul 25, 2020

Is there any listener, when moving started and ended?

@sm2017
Copy link
Author

sm2017 commented Jul 27, 2020

@johnpryan @maRci002 I want to create an animation effect on markers when users start/end moving map , So I need onMoveStart and onMoveEnd callback

@maRci002
Copy link
Contributor

Okay, I'll see what I can do.

@matthiasdittmer
Copy link
Contributor

@sm2017 @maRci002
I think most users need the start and end events from manual dragging. We had this topic also in #674.

@maRci002
Copy link
Contributor

@mat8854
Yes it's a good start point.

@maRci002
Copy link
Contributor

maRci002 commented Aug 6, 2020

Can you try PR #719 ?

There are a lot of issues which ask for onMoveStart / onMoveEnd callbacks, just listen to mapEventStream and filter these events (MapEventMoveStart / MapEventMoveEnd), however take care because Map may use fling animation if the velocity is high enough so the final location will be different from MapEventMoveEnd's targetLocation, so there are two options:

  • disable fling animation
  • filter MapEventFlingEnd and MapEventFlingNotStarted

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

Successfully merging a pull request may close this issue.

3 participants