liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
229 stars 96 forks source link

Question: How to manually set user location? #450

Open jh83 opened 1 year ago

jh83 commented 1 year ago

I'm planning to use this package but with the help of an external high resolution gps receiver that communicates thru BLE.

From what I understand, the "user icon" will be rotated to match the heading when using the built in gps, while all the other markers adjusts their rotation when rotating the map.

Is there any way to manually set the position of the "user" if not using the built in GPS so that I can utilize the functionality for rotating the "user icon"?

liodali commented 1 year ago

I will work on that feature soon, after next feature for now user location is integrated on our plugin but i found this way is not fully custom and also hard to maintain for now what you can do is to use external gps callback and treat the user position as normal marker with goToLocation you can move the camera to it

liodali commented 9 months ago

you can use your own thirdparty to get user location and then use our api in mapController such as goToLocation and addMarker/changeMarker to set user marker without usage of our currentLocation or trackingLocation