OptionalenabledWhether hatch is enabled.
OptionaltypeHatch type.
OptionalangleRotation angle in degrees (for diagonal).
OptionalspacingSpacing between pattern elements in pixels.
OptionalstrokeStroke styling for the hatch lines/dots.
OptionalrenderFill render mode. "pattern_only" = no base fill, pattern only.
Parameters of a hatch fill pattern, rendered to an image and registered with the map.
Hatching is not a MapLibre paint property: the pattern is drawn to a canvas and added as an image, which is why a hatched layer needs the map's style to be loaded before it can paint.