Question: I am working on a project where I m implementing a map from Mapbox, and I m trying to implement a SymbolLayer in my Style.
I am working on a project where Im implementing a map from Mapbox, and Im trying to implement a SymbolLayer in my Style. The data for the SymbolLayer is based on a GeoJSON file from a public source, and it contains data about harbors ndhavner
To keep things simple, Ive made a small testprogram, which you can see in the screenshot.
I dont get any errors in my logcat so Im assuming there isnt anything wrong with accessing the file which is in my assetsfolder I also know that the layer has been added to my stile, because Ive added a logcat message which prints the names of all the layers in the Style, and it printed this: Layer ID: nodhavnerlayer
However, the problem is that I dont see any symbols on the map. When I run the app, the map is displayed, but not icons showing harbours.
I have the necessary permissions internetnetwork etc. all the necessary imports etc. I dont get any issueserrors The icon triangle is in my Style, which I downloaded from Mapbox Maki icons
What could be the reason for the icons not showing on the map, and how can I 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
