mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

Info window

Open hiteshgarg002 opened this issue 3 years ago • 4 comments

How to display a info window?

hiteshgarg002 avatar Jan 11 '23 15:01 hiteshgarg002

We definitely would need to know the specifics of your question.

dawid-niedzwiecki avatar Jan 11 '23 22:01 dawid-niedzwiecki

How can we display a popup on tap of symbol that can be used to show some information?

hiteshgarg002 avatar Jan 22 '23 14:01 hiteshgarg002

@hiteshgarg002 @dawid-niedzwiecki

https://github.com/mapbox/mapbox-maps-flutter/issues/83#issuecomment-1520720569

ezesoftchao avatar Apr 24 '23 19:04 ezesoftchao

Hi @hiteshgarg002, with this use case then ViewAnnotation would be the best for use, unfortunately MapboxMaps Flutter does not support ViewAnnotation at the moment and we don't have a timeline for this feature. One approach would be observing annotation's click with OnPointAnnotationClickListener which gives you the coordinates of the tap on the map, which you can translate to screen coordinate to display the popup view, you also need to observe cameraChanged events to update this screen coordinates to make sure the popup view is pinned to the point annotation as the map is panned.

maios avatar Apr 25 '25 12:04 maios