liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
234 stars 97 forks source link

animated markers and marker Id? #219

Open victor0726 opened 2 years ago

victor0726 commented 2 years ago

I have 2 problems

1、 If I want to implement animated markers, which method should I use in osm_flutter_plugin? (ex. After clicking the marker, the marker gradually becomes larger )。

2、Using onGeoPointClickListene, when the marker is clicked, you can get the coordinates, but how to get the marker id? (ex. I want to use pageController.animateToPage(). to move specified page after doing click marker。

Thank you very much if you can help

liodali commented 2 years ago

for now marker doesn't have any id you can use lat and longitude as id for animation for now it's not available but i will see how i can add this maybe i will add method scaleAnimationMarker but it will take time to find proper implementation for them for now you can use await controller.setMarkerIcon(GeoPoint,MarkerIcon); and you make marker much bigger but this without animation :disappointed:

liodali commented 2 years ago