OptionalpatternBuilt-in pattern name, or any string when using a customPattern with a matching id.
OptionalregionRegion IDs to apply this pattern to.
OptionalcolorStroke/dot color for the pattern.
OptionalstrokeStroke width (hatching/crosshatch) or dot radius (dots).
OptionalspacingDistance between repeated pattern elements in pixels.
OptionalcustomRaw SVG markup for a custom <pattern> element, used instead of a built-in pattern.
Must include an id attribute; that id is then used to reference the pattern.
OptionallegendLabel shown for this pattern in the legend. Patterns without a label are omitted from the legend.
OptionalpatternInternal: resolved pattern element id, set automatically.
Configuration for a single fill pattern overlay applied to specific regions. Pass an array of these to
map.patternFill([...])to hatch/dot/cross-hatch specific regions on top of their normal fill (e.g. to flag missing/estimated data).