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

Animate marker position change #821

Closed
ivangr1 opened this issue Feb 13, 2021 · 17 comments
Closed

Animate marker position change #821

ivangr1 opened this issue Feb 13, 2021 · 17 comments

Comments

@ivangr1
Copy link

ivangr1 commented Feb 13, 2021

Hello!
Thanks for a great library!

I was wondering if it is possible to animate the marker position change instead of the marker just disappearing and reappearing in the new position?
I am creating a vehicle tracking app and this would be a great feature to have.

Thank you!

@Vaann00
Copy link

Vaann00 commented Feb 14, 2021

Hi, I was also wondering if this could be possible. As it is done for Uber for example.
If someone has the answer we will be at least 2 happy guys :)

@ibrierley
Copy link
Collaborator

Just thinking out loud, could you use a CustomAnimatedWidget ?

@TheLastGimbus
Copy link
Contributor

If a Marker is just a normal widget - can you just use a Hero()?

@robertpiosik
Copy link
Contributor

robertpiosik commented Feb 19, 2021

I'm afraid there is no built-in method for this but what you can do is simply store marker position in the state and use Ticker Provider.

Animated map move example can be helpful.

@StrangeYear
Copy link

This is a plugin I made. hope it can help you.
flutter_map_move_marker

@Vaann00
Copy link

Vaann00 commented Mar 7, 2021

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

This is a plugin I made. hope it can help you.
flutter_map_move_marker

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

@StrangeYear
Copy link

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

This is a plugin I made. hope it can help you.
flutter_map_move_marker

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

I will add it as soon as possible. There are two other bugs that need to be fixed.

@Vaann00
Copy link

Vaann00 commented Mar 8, 2021

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

This is a plugin I made. hope it can help you.
flutter_map_move_marker

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

I will add it as soon as possible. There are two other bugs that need to be fixed.

Perfect :) thank you very much, keep us in touch

@MicaelMnl
Copy link

Hello I am in the same situation, do you have any news? :)

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Apr 19, 2021
@Vaann00
Copy link

Vaann00 commented Apr 19, 2021

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

This is a plugin I made. hope it can help you.
flutter_map_move_marker

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

I will add it as soon as possible. There are two other bugs that need to be fixed.

Perfect :) thank you very much, keep us in touch

Hey man, how is your solution now ? Do you have a use case please ?
Thanks :)

@github-actions github-actions bot removed the Stale label Apr 20, 2021
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label May 21, 2021
@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@ParhaMDeF
Copy link

any update guys?

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

This is a plugin I made. hope it can help you.
flutter_map_move_marker

Wow it looks like a very Nice work. Do you have an example of how to use it please ? Like the code of your displayed exemple on your github page ?
thank you.

I will add it as soon as possible. There are two other bugs that need to be fixed.

Perfect :) thank you very much, keep us in touch

Hey man, how is your solution now ? Do you have a use case please ? Thanks :)

@vanyx
Copy link

vanyx commented Oct 19, 2024

Hi, any update ahah ?

@JaffaKetchup
Copy link
Member

You may be able to use a custom animation or TweenAnimationBuilder with LatLngTween.

@TesteurManiak
Copy link
Collaborator

@vanyx I've tried to make a PoC for such behaviour in a separated branch of the package flutter_map_animations, you can try this by pointing to the feat/marker-position-change branch. If it fits your use-case I'll merge it into the package.

Enregistrementdelcran2024-10-20140522-ezgif com-video-to-gif-converter

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