rorystephenson / flutter_map_marker_popup

Popups for flutter_map markers
BSD 3-Clause "New" or "Revised" License
103 stars 84 forks source link

Dynamic add pop-up #1

Closed lorenzochaudessolle closed 4 years ago

lorenzochaudessolle commented 4 years ago

We could add dynamics MarkerWithPopUp with StatefulMapController ?

rorystephenson commented 4 years ago

I've done a big rewrite which makes the popups a lot more flexible now. Check out the example for some ideas on how to use it and let me know if you need more help!

lorenzochaudessolle commented 4 years ago

Your new rewrite is a very great job, i can add easily dynamics markers with pop up !

If you want some upgrade ideas, it will be very nice to have a system to pass data (not only marker) in the pop-up

rorystephenson commented 4 years ago

Thanks I'm really glad it works for you :).

For passing extra data that's already possible by creating a custom Marker class that extends Marker and adding whatever data you want to it. Then in the popupBuilder you can get the data off the Marker.

I've added an issue (#3) to add an example of this but in the mean time let me know if that's not clear!

rorystephenson commented 4 years ago

Just an update that there is now an example for this in the examples folder.