mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
466 stars 131 forks source link

LocationProvider is null in the LocationComponentPlugin #1298

Closed mhille3 closed 1 year ago

mhille3 commented 2 years ago

Environment

Observed behavior and steps to reproduce

So basically I tried to display the mapbox map on Android Auto. The sample app does that, with location updates. To make it more comfortable to me, I took the parts I needed and translated them to java. After many hard errors, I figured it out and it now displays a map.

In the CarCameraController you want to take the LocationComponentPlugin and its fellow listeners. I get it via getPlugin(Plugin.MAPBOX_LOCATION_COMPONENT_PLUGIN_ID).

But for me it comes without a LocationProvider, not even the default one. I tried to create one, but that does not trigger any location updates.

If someone could help me somehow, i would appreciate it very much.

Kind regards Marco

yunikkk commented 2 years ago

@mhille3 hi, could you please share the code you're running?

mhille3 commented 2 years ago

Had to share in txt or zip, so i hope the one script is enough

CarCameraController.txt

mhille3 commented 2 years ago

Bump, because i really need help on that

mhille3 commented 2 years ago

+help

ZiZasaurus commented 1 year ago

@mhille3 sorry your response was not seen sooner. I'd be happy to assist. Were you able to get this behavior resolved?

ZiZasaurus commented 1 year ago

Closing this ticket, but please feel free to reopen if you continue to experience this behavior.