Increase the stroke-width of a polygon in Mapbox Studio

Viewed 3370

Apparently, the "stroke-width" property is fixed at 1px and cannot be changed. Are there any workarounds?

1 Answers

The 1px stroke-width is a limitation of WebGL as explained in this issue comment. The workaround is to set the data type as line instead of fill under the Select data tab of the layer editor. You can then set the stroke of the polygon.

If you wish to have both fill and stroke (of greater than 1px), you need to add two separate layers to achieve this.

Related