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.
OptionallegendFill drawn behind the pattern in the legend swatch. Set it to the fill of the patterned regions so the swatch matches the map. Only the legend uses it: on the map the pattern sits on each region's own fill.
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).