Closed okcoker closed 1 year ago
Feel free to introduce your own LocationProvider
and implement the logic you need for the frequency updates. Rough example how to do this could be found here: https://github.com/mapbox/mapbox-maps-android/blob/main/app/src/main/java/com/mapbox/maps/testapp/examples/LocationComponentAnimationActivity.kt. OnIndicatorPositionChangedListener
itself triggers on each location update without any preconditions.
New Feature
It would be nice if the
LocationComponentSettings
had an option to filter position updates either by time and/or distance.Why
locationComponentPlugin.addOnIndicatorPositionChangedListener()
updates pretty frequently. To achieve this I have to manually add my own logic similar to this: