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.pattern-fill
to the paint
section with the name of the image you created abovestroke
or stroke-width
in the path
element of the SVG iconimage/svg+xml;base64,
in the legend html. Paste your SVG into a tool like https://www.base64encode.org/ to get the encoded value.