mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

MockLocationEngine and setLocationSource

Open P-Zenker opened this issue 9 years ago • 2 comments

Hey, I'm using your pretty cool MockLocationEngine from the demo project. I noticed that the myLocationEnabled state is resettet after the LocationEngine is set (@ mapbox-android-navigation:0.2.0).

If I use only this code, the myLocation-Dot at the map doesn't move (even if I had set myLocationEnabled to true and MyLocationTracking.TRACKING_FOLLOW). mapboxMap.setLocationSource(mockLocationEngine);

With the additional line mapboxMap.setMyLocationEnabled(true); everything work well.

But: In both cases the onMyLocationChange-Listener receives the update from MockLocationEngine

P-Zenker avatar May 26 '17 08:05 P-Zenker

Hi, I'm not sure to understand your problem but it seems to be coming from the Map SDK, so it's not related to this repository but more to this one. Thanks!

Grsmto avatar May 26 '17 10:05 Grsmto

I'm not sure I understand your issue, but I have a setup using both the Mapbox Map, Mock location, and Navigation SDK here. Closing issue but if you still are having issues, happy to help.

cammace avatar Jun 08 '17 15:06 cammace