Placement
Each object in layers[] may include:
style(required for interoperability): single-symbol paint and shared layer paint. Used whensymbologyis absent ortypeis"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
| Field | Type | Notes |
|---|---|---|
fillColor, strokeColor, pointColor | int | ARGB (0xAARRGGBB) |
fillOpacity | number | 0–1, polygon fill |
strokeOpacity | number | 0–1, lines and outlines |
opacity | number | Optional alias for strokeOpacity |
strokeWidth | number | Line width |
pointSize | number | Circle radius for points |
hasFill, hasStroke, hasPoint | boolean | Which paint roles apply |
symbology object
| Field | Type | Notes |
|---|---|---|
type | string | single | categorized | graduated |
field | string | Feature property name |
colorScheme | string | e.g. pastel |
classes | number | Graduated class count hint |
mode | string | equalInterval, quantile, naturalBreaks, fixedInterval |
fixedInterval | number | When mode is fixedInterval |
rampStart, rampEnd | string | #RRGGBB |
categories | array | { value, label?, color }; value may be __other__ |
breaks | number[] | Graduated upper bounds |
classColors | string[] | #RRGGBB per class |
Export should include materialized categories or breaks + classColors so consumers can render without re-classifying.
Rendering
- Categorized: MapLibre
matchonto-string(get(field)). - Graduated: MapLibre
steponto-number(get(field)).
Colors apply to fill, line, and circle paint where the geometry type allows.