mapbox / mapbox-maps-flutter

Interactive, thoroughly customizable maps for Flutter powered by Mapbox Maps SDK
https://www.mapbox.com/mobile-maps-sdk
Other
245 stars 93 forks source link

Turn the map according to the direction #509

Closed senaMyunghee closed 2 weeks ago

senaMyunghee commented 3 weeks ago

How can I use TRACKING_COMPASS mode ? ( supported by mapbox_gl )

basvdijk commented 2 weeks ago

This issue should help you https://github.com/mapbox/mapbox-maps-flutter/issues/33 with fixing this. Basicually what you do is set the bearing to the correct compass direction.

senaMyunghee commented 2 weeks ago

thanks @basvdijk but i want stream listener not a periodic. I need more smooth movement

basvdijk commented 2 weeks ago

I have achieved smooth rotating and moving with this solution. I agree it is not the nicest solution. We have to wait till the development team implemented the viewport api. Unfortunately there is no timeline for this. See the comment of https://github.com/mapbox/mapbox-maps-flutter/issues/33#issuecomment-2070135742

senaMyunghee commented 2 weeks ago

I see. thank you :)