Placement

Each object in layers[] may include:

  • style (required for interoperability): single-symbol paint and shared layer paint. Used when symbology is absent or type is "single", and for non-color paint when classified symbology is active.
  • symbology (optional): categorized or graduated rules.

provenance.symbologySchema may be "miniGISimple-symbology-v1" when any layer exports symbology.

style object

FieldTypeNotes
fillColor, strokeColor, pointColorintARGB (0xAARRGGBB)
fillOpacitynumber0–1, polygon fill
strokeOpacitynumber0–1, lines and outlines
opacitynumberOptional alias for strokeOpacity
strokeWidthnumberLine width
pointSizenumberCircle radius for points
hasFill, hasStroke, hasPointbooleanWhich paint roles apply

symbology object

FieldTypeNotes
typestringsingle | categorized | graduated
fieldstringFeature property name
colorSchemestringe.g. pastel
classesnumberGraduated class count hint
modestringequalInterval, quantile, naturalBreaks, fixedInterval
fixedIntervalnumberWhen mode is fixedInterval
rampStart, rampEndstring#RRGGBB
categoriesarray{ value, label?, color }; value may be __other__
breaksnumber[]Graduated upper bounds
classColorsstring[]#RRGGBB per class

Export should include materialized categories or breaks + classColors so consumers can render without re-classifying.

Rendering

  • Categorized: MapLibre match on to-string(get(field)).
  • Graduated: MapLibre step on to-number(get(field)).

Colors apply to fill, line, and circle paint where the geometry type allows.

↑