Android: Compass will not render for android-sdk:9.6.2
Describe the bug
The compass that normally appears during rotation of the map layer does not show up anymore for the latest android sdk.
To Reproduce
Add following dependencies to your build.gradle (as describes in install.md)
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.2'
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:5.6.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0'
It's possible to test this with the example project here.
Versions (please complete the following information):
- Platform: Android
- Platform OS: Android 11
- Device: moto g(8) power
- Emulator/ Simulator: yes, same problem
- Dev OS: macOS 11.4
- react-native-mapbox-gl Version: 8.2.1
- mapbox-android-sdk: 9.6.2
- React Native Version: 0.64.1
The compass shows up as expected when testing the same exact code without the custom sdk.
I suspect the problem is connected to this change here .
Is there anything I can do to make this work again? For example adding any extra configuration to point to the new image resource for the compass since the bitmap version has been deprecated? Or does this require any code changes inside this project?
Many thanks!
Hello! @mzu Just following up on this. Is this still a problem for you? There have been newer versions of the dependancies since then and I can now see the compass. If this is still an issue I can take a look at this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.