I'm trying to add a GeoJson source and a symbol layer with some layout properties. The source and layer are added, but the layout options are not implemented.
When I track the map layers (map.getStyle().layers) in the console, the added layer only has the following:
id: "newLayer"
source: "newSource"
type: "symbol"
I tried this in a simple HTML file (without Vue & vue-maxpbox), and it works fine (ie, the layout properties are applied and visible in the console).
Any idea?
I'm trying to add a GeoJson source and a symbol layer with some layout properties. The source and layer are added, but the layout options are not implemented.
When I track the map layers (map.getStyle().layers) in the console, the added layer only has the following:
I tried this in a simple HTML file (without Vue & vue-maxpbox), and it works fine (ie, the layout properties are applied and visible in the console). Any idea?