Question: I am making an app in Android Studio where I implement a map from Mapbox. I also want to display the seamarks from OpenSeaMap above

I am making an app in Android Studio where I implement a map from Mapbox. I also want to display the seamarks from OpenSeaMap above the water. For testing, Ive made a small program that just shows a map.
Ive added a log message that prints out all the layers in my style, and I can see that the openseamap-layer has been added: Layer ID: openseamap-layer
However, I also get these two errors in my logcat: [maps-android\Mbgl-StyleObserver]:
[maps-android\Mbgl-StyleObserver]: OnMapLoadError: Source, message: Failed to load source: Invalid value. at offset 0, sourceID: openseamap-source, tileID: null
[maps-core]: {}[Style]: Failed to load source openseamap-source: Invalid value. at offset 0
What could this indicate? The osm url is the same one Ive seen in other code online, so it should work. I have all the necessary permissions in my project. I also pinged the server from my terminal, so I dont think the osm server has any issues.
However, the issue seems to be loading the source, and I have no idea how to fix this.
I am making an app in Android Studio where I

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!