Closed Zer0xTJ closed 1 month ago
Hi @Zer0xTJ, thank you for raising this, indeed, the parameters carry geographical position rather than a touch point location on the screen. We've clarified this in https://github.com/mapbox/mapbox-maps-flutter/pull/473 which will be released as part of version 2.0.0.
On MapWidget there is a listener
OnLongTapListener
andOnTapListener
, both returnsScreenCoordinates
i spent more that 2 hours discovering how to convert
ScreenCoordinates
toPosition
,it will be very helpful to change the type to
Position
as the Listeners both returns the correct lng, and lat instead of Screen Pixels