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 openseamaplayer has been added: Layer ID: openseamaplayer
However, I also get these two errors in my logcat: mapsandroidMbglStyleObserver:
mapsandroidMbglStyleObserver: OnMapLoadError: Source, message: Failed to load source: Invalid value. at offset sourceID: openseamapsource, tileID: null
mapscore: Style: Failed to load source openseamapsource: Invalid value. at offset
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
