flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Display a popup on hover : Flutter Web #1192

Closed Pierre-Monier closed 1 year ago

Pierre-Monier commented 2 years ago

Discussed in https://github.com/flutter-mapbox-gl/maps/discussions/739

Originally posted by **amitbutani18** June 9, 2021 Is this possible to display a popup on the hover mouse cursor on the marker?

I currently see no way of doing this, this could be a great feature on the web platform.

What do you think about it ? I might be able to work on this

felix-ht commented 2 years ago

You can take a look at https://docs.mapbox.com/mapbox-gl-js/example/hover-styles/

https://github.com/flutter-mapbox-gl/maps/blob/3e490a8fc42b6b47374b3932fa49061293b709ee/mapbox_gl_web/lib/src/mapbox_web_gl_platform.dart#L164-L178

as you the implementation in a similar way

Pierre-Monier commented 2 years ago

Ok thanks for the tips, I will work on this next week :)

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.