Changing Polygon Fill Patterns
Option 1: Changing the fill transparency
In the More Colors panel you can reduce the transparency of the fill using the slider or by changing the alpha (A) value

Option 2: Only show the outline
In the Advanced panel of the layer style settings choose Outline Only

Option 3: Using a Pattern Fill

This requires using the Advanced Map Style Code to edit the underlying Mapbox GL style.
Update the fill layer to change the fill to a pattern instead of a solid color:
1) to add the maphubs:images section to the metadata This defines a small image, in this case an SVG vector icon of a stripe pattern, that will be repeated to create the fill.
2) to add the pattern-fill to the paint section with the name of the image you created above
If you want to change the color or size of the stripes you can change the stroke or stroke-width in the path element of the SVG icon
Updating the Legend
After you've set a stripe fill you'll want to update legend. Here is an example showing the stripe pattern from the example above.
If you change the SVG for the image you'll need to base64 encode the SVG and replace the encoded value after image/svg+xml;base64, in the legend html. Paste your SVG into a tool like https://www.base64encode.org/ to get the encoded value.
Last updated