Map styles
Styles and patterns used in the maps
Data-driven styles
return {
id: this.layerIdName,
type: "line",
layout: {
"line-join": "round",
"line-cap": "round",
},
paint: {
"line-color": "green",
"line-width": {
base: 1,
stops: [
[10, 1], // [zoom, width in px]
[13, 2],
[16, 10],
[18, 25],
],
},
},
}Map control styles
Last updated
Was this helpful?