@nika-js/onlymap 0.8.4 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +56 -3
  3. package/dist/{LercDecode.es-BKustV-1.js → LercDecode.es-IEPCRZOv.js} +1 -1
  4. package/dist/{basemap-B0SwrOqQ.js → basemap-DL0mk9Bf.js} +780 -780
  5. package/dist/dem-decode.d.ts +58 -0
  6. package/dist/elements/om-map.d.ts +12 -0
  7. package/dist/{geoparquet-C5E6N6G0.js → geoparquet-DJxZA0if.js} +1 -1
  8. package/dist/hillshade-DR3TxO1a.js +186 -0
  9. package/dist/hillshade-apron-Bem3DWyJ.js +40 -0
  10. package/dist/hillshade-apron.d.ts +54 -0
  11. package/dist/hillshade-shader-n_zManfZ.js +160 -0
  12. package/dist/hillshade-shader.d.ts +152 -0
  13. package/dist/hillshade.d.ts +133 -0
  14. package/dist/html-data.d.ts +2 -2
  15. package/dist/{index-BLIjrGOE.js → index-BjcPjICh.js} +28 -28
  16. package/dist/{index-xUVMTGZG.js → index-CvuDsvnk.js} +23 -23
  17. package/dist/index-DO_w0tqR.js +514 -0
  18. package/dist/{index-BnQDfKfE.js → index-DdTZSuAb.js} +1 -1
  19. package/dist/{index-D5Fqn_eZ.js → index-oY3XHIux.js} +13145 -12484
  20. package/dist/{index-CaM1C93G.js → index-vLXZuog4.js} +1 -1
  21. package/dist/index.d.ts +3 -0
  22. package/dist/lerc-Bph62dCb.js +22 -0
  23. package/dist/onlymap.standalone.js +28919 -27259
  24. package/dist/onlymapjs.js +95 -92
  25. package/dist/post-process/catalogue.d.ts +61 -0
  26. package/dist/post-process/compile.d.ts +37 -0
  27. package/dist/post-process/index.d.ts +71 -0
  28. package/dist/post-process/ops.d.ts +22 -0
  29. package/dist/post-process/presets.d.ts +33 -0
  30. package/dist/post-process/validate.d.ts +8 -0
  31. package/dist/programmatic.d.ts +11 -0
  32. package/dist/{raster-B_wekCHv.js → raster-D-eTzCE3.js} +609 -499
  33. package/dist/raster-hillshade.d.ts +119 -0
  34. package/dist/{raster-pipeline-Dn2fkLYx.js → raster-pipeline-BlOnMPJe.js} +510 -484
  35. package/dist/raster-pipeline.d.ts +10 -0
  36. package/dist/raster.d.ts +5 -0
  37. package/dist/runtime-core.d.ts +39 -1
  38. package/dist/terrain-heightfield.d.ts +0 -16
  39. package/dist/terrain-sample.d.ts +0 -13
  40. package/dist/version.d.ts +1 -1
  41. package/dist/volumetrics.d.ts +7 -0
  42. package/dist/{zarr-Dan2ab-l.js → zarr-BGDoEtFb.js} +2 -2
  43. package/docs/cartograph.md +2 -2
  44. package/docs/design/hillshade.md +290 -0
  45. package/docs/effects.md +208 -0
  46. package/docs/hillshade.md +203 -0
  47. package/llms.txt +3 -1
  48. package/onlymapjs.attributes.json +27 -2
  49. package/onlymapjs.html-data.json +207 -6
  50. package/package.json +13 -9
  51. package/skills/onlymapjs/SKILL.md +4 -2
  52. package/skills/onlymapjs/references/syntax.md +17 -2
  53. package/dist/lerc-TxsFLMlC.js +0 -30
@@ -0,0 +1,208 @@
1
+ # Post-process effects — `<om-effect>`
2
+
3
+ > **Available in 0.9.0.** `<om-effect>` children of `<om-map>` **are** deck.gl's
4
+ > `effects` array. Document order is pipeline order, exactly as it is for
5
+ > `<om-layer>`.
6
+
7
+ A post-process pass runs over the *finished* frame: deck draws the map, then each
8
+ effect treats the resulting picture. That makes it the right tool for a **look** —
9
+ a printed finish, a duotone plate, a night treatment — and the wrong tool for
10
+ anything that needs to know about features, which belongs in a layer's accessors.
11
+
12
+ ```html
13
+ <om-map center="[-98.5, 39.5]" zoom="4" basemap="none">
14
+ <om-layer id="land" type="GeoJsonLayer" data="./countries.geojson" color="#2a3142"></om-layer>
15
+ <om-effect preset="vintage"></om-effect>
16
+ </om-map>
17
+ ```
18
+
19
+ Runnable: [`dev/examples/features/styling/apply-a-print-finish.html`](../dev/examples/features/styling/apply-a-print-finish.html).
20
+
21
+ ## Three lanes, one per element
22
+
23
+ Each `<om-effect>` picks exactly one:
24
+
25
+ | Lane | Looks like | Use it when |
26
+ |---|---|---|
27
+ | Preset | `<om-effect preset="vintage">` | You want a finish and not a shader |
28
+ | Op + knobs | `<om-effect op="grain" amount="0.1" size="0.2mm">` | You want to compose or tune |
29
+ | Inline module | `<om-effect><script type="application/json">{…}</script></om-effect>` | You want raw GLSL |
30
+
31
+ The inline lane is the **1:1 deck surface** — deck gives you
32
+ `PostProcessEffect(module, props)` over an ordered array, and that is exactly what
33
+ is passed through, untouched. The other two lanes are convenience over it.
34
+
35
+ The module rides an `application/json` script on purpose: that is the one script
36
+ type a cartograph's adoption sanitiser keeps, so an effect survives into a print
37
+ sheet.
38
+
39
+ ## Presets
40
+
41
+ `vintage`, `engraved`, `night`, `blueprint`, `riso`, `newsprint`, `muted`.
42
+
43
+ A preset is **a saved op list and nothing more**. Override a single knob with
44
+ `<op>-<param>`, the same shape `lighting-sun-azimuth` has:
45
+
46
+ ```html
47
+ <om-effect preset="vintage" grain-amount="0.02"></om-effect>
48
+ ```
49
+
50
+ To stop using the preset as a black box, eject it:
51
+
52
+ ```js
53
+ OmMap.expandPreset("vintage")
54
+ // → '<om-effect op="tint" paper="#efe4c8" ink="#2b1b10" …></om-effect>…'
55
+ ```
56
+
57
+ That string is the markup the preset stands for — paste it in place of the
58
+ `preset` attribute and tune the ops directly. (The validator's own fix strings
59
+ point you here when you misspell an override.)
60
+
61
+ ## Ops
62
+
63
+ `kind` decides cost, not quality — see [Passes](#passes-and-cost).
64
+
65
+ ### Pointwise (fuse together, one pass for any number of them)
66
+
67
+ | Op | Knobs (default) |
68
+ |---|---|
69
+ | `tint` | `paper` (#f3eee2), `ink` (#1a1612), `amount` (1), `keep-color` (1) |
70
+ | `levels` | `brightness` (0), `contrast` (1), `gamma` (1) |
71
+ | `saturation` | `amount` (1 — 0 greyscale, >1 boosted) |
72
+ | `posterize` | `levels` (6 — steps per channel) |
73
+ | `vignette` | `amount` (0.4), `radius` (0.65), `softness` (0.45) |
74
+ | `grain` | `amount` (0.06), `size` (0.12mm), `seed` (1), `mono` (1) |
75
+
76
+ ### Neighbourhood (each costs its own pass — they sample their surroundings)
77
+
78
+ | Op | Knobs (default) |
79
+ |---|---|
80
+ | `edges` | `amount` (0.5), `width` (0.08mm), `color` (#1a1612) |
81
+ | `blur` | `radius` (0.2mm) |
82
+ | `sharpen` | `amount` (0.5), `radius` (0.1mm) |
83
+ | `halftone` | `cell` (0.6mm), `angle` (15deg), `amount` (1), `paper` (#ffffff) |
84
+
85
+ ## Millimetres, not pixels
86
+
87
+ Every knob that describes a **size** is in millimetres, and a bare `px` value is a
88
+ validation error rather than a silent trap.
89
+
90
+ The reason is print. A grain keyed to device pixels is one device pixel at every
91
+ resolution — so on a 4× plate it renders four times finer than on screen, and the
92
+ look you approved quietly disappears exactly where it matters most. Millimetres
93
+ resolve against the live pixel density through a `pxPerMm` uniform, so a capture at
94
+ 600 dpi re-points one number and keeps the same physical grain.
95
+
96
+ ```html
97
+ <om-effect op="grain" size="0.12mm"></om-effect> <!-- 0.12mm on screen AND on paper -->
98
+ ```
99
+
100
+ Angles take `deg`. Unitless numbers are accepted for lengths and read as mm.
101
+
102
+ > **Resolution floor.** A cell smaller than one device pixel cannot be drawn, so
103
+ > very fine values clamp. At 1× (~3.8 px/mm) anything under ~0.26mm is at the
104
+ > floor; at 2× it is ~0.13mm. If a look must hold its exact physical size across
105
+ > display scales, keep spatial knobs above those values.
106
+
107
+ ## Passes and cost
108
+
109
+ Consecutive **pointwise** ops compile into one fragment function and therefore one
110
+ GPU pass. A ten-knob colour chain costs a single pass. Only a **neighbourhood** op
111
+ starts a new one.
112
+
113
+ ```html
114
+ <!-- ONE pass -->
115
+ <om-effect op="tint" ink="#102030"></om-effect>
116
+ <om-effect op="levels" contrast="1.2"></om-effect>
117
+ <om-effect op="grain" amount="0.08"></om-effect>
118
+
119
+ <!-- THREE passes: the halftone breaks the run -->
120
+ <om-effect op="tint" ink="#102030"></om-effect>
121
+ <om-effect op="halftone" cell="0.5mm"></om-effect>
122
+ <om-effect op="grain" amount="0.08"></om-effect>
123
+ ```
124
+
125
+ Knobs stay uniforms rather than being baked into the shader, so a widget or a
126
+ story step can move one without recompiling anything.
127
+
128
+ ## Inline shader modules
129
+
130
+ ```html
131
+ <om-effect uniforms='{"strength": 0.4}'>
132
+ <script type="application/json">
133
+ {
134
+ "name": "myEffect",
135
+ "fs": "vec4 myEffect_filter(vec4 color, vec2 texSize, vec2 texCoord) { … }",
136
+ "passes": [{ "filter": "myEffect_filter" }]
137
+ }
138
+ </script>
139
+ </om-effect>
140
+ ```
141
+
142
+ Requirements: `name` (string), `fs` (string), and a non-empty `passes` array. Each
143
+ pass names a function that `fs` **must actually declare** — deck compiles a missing
144
+ one to an empty shader that draws nothing while reporting success, so the validator
145
+ checks it for you.
146
+
147
+ A module's `name` is its identity. If you edit the shader, change the name too, or
148
+ the renderer may keep the previous program.
149
+
150
+ ## Changing effects at runtime
151
+
152
+ ```html
153
+ <om-behavior on="click" action="set-effect" preset="night"></om-behavior>
154
+ ```
155
+
156
+ `set-effect {preset}` writes one `<om-effect preset>` child — a plain document
157
+ mutation, so **undo/redo** see it like any other edit. Knob overrides ride as
158
+ `<op>-<param>` keys: `{ preset: "vintage", "grain-amount": 0.02 }`.
159
+ `{ preset: "none" }` removes it. A hand-composed op chain is left alone.
160
+
161
+ For a switcher your users can see, `<om-widget type="effects">` renders one radio
162
+ per preset plus **Off**, and emits exactly that action:
163
+
164
+ ```html
165
+ <om-widget type="effects" position="top-right" title="Finish"></om-widget>
166
+ ```
167
+
168
+ The widget holds no state. It writes the document and reads it back, so a hand
169
+ edit, an undo, or an agent changing the preset moves the radio too — the same
170
+ contract `<om-widget type="lighting">` follows.
171
+
172
+ > **Not story-rewindable yet.** A story step can apply a finish, but seeking back
173
+ > will not remove it: story rewind restores `<om-map>` attributes, and this action
174
+ > adds a child element. Element-level capture is a follow-up.
175
+
176
+ Programmatically, `MapController.setEffects(effects | null)` takes deck `Effect`
177
+ instances directly and outranks the document's chain while set; `null` hands the
178
+ chain back, and `[]` renders no effects at all.
179
+
180
+ ## What the validator catches
181
+
182
+ `OmMap.validate` (and `<om-map validate>`) reports, each with a fix:
183
+
184
+ - an unknown `preset` or `op`;
185
+ - a knob that op does not have, and an override aimed at an op the preset lacks;
186
+ - a **pixel** value in a spatial knob;
187
+ - an inline module whose `passes` name a function its `fs` never declares;
188
+ - an `<om-effect>` that is not a direct child of `<om-map>` — nested deeper it is
189
+ never applied;
190
+ - more than one lane on one element.
191
+
192
+ It also **warns** when the map has a MapLibre basemap: a pass runs over deck's own
193
+ framebuffer, so the basemap composites underneath and stays untreated. Use
194
+ `basemap="none"` and draw the base as layers when the finish should cover
195
+ everything.
196
+
197
+ ## Bundle cost
198
+
199
+ None, unless you use it. Op metadata (for validation, IntelliSense and preset
200
+ expansion) lives in the core bundle; the GLSL is a separate chunk fetched only when
201
+ a map actually has an effect. A map with no `<om-effect>` never downloads the
202
+ shader library — pinned by a browser test.
203
+
204
+ ## Not in 0.9.0
205
+
206
+ `lut` — a colour lookup image, the highest-leverage op and the most data-first. It
207
+ needs texture bindings, async asset loading and device lifecycle, so it gets its own
208
+ release rather than being crammed into this one.
@@ -0,0 +1,203 @@
1
+ # Shaded relief — `HillshadeLayer`
2
+
3
+ > **Available in 0.9.1.** `<om-layer type="HillshadeLayer">` shades a DEM on
4
+ > the GPU. It is a layer, so it obeys document order, lands in `snapshot()`,
5
+ > and sits under `<om-effect>`.
6
+
7
+ ```html
8
+ <om-map center="[7.65, 45.98]" zoom="9" basemap="none">
9
+ <om-layer id="relief" type="HillshadeLayer" src="terrarium"
10
+ sun-azimuth="315" sun-elevation="45"></om-layer>
11
+ </om-map>
12
+ ```
13
+
14
+ That is the whole minimum: keyless global tiles, no data of your own, and it
15
+ works at pitch 0 on a flat sheet.
16
+
17
+ Runnable: [`dev/examples/features/styling/shade-the-terrain.html`](../dev/examples/features/styling/shade-the-terrain.html).
18
+
19
+ ## Why this is a layer and not `terrain=`
20
+
21
+ `terrain="terrarium"` means a **3D surface**. It replaces the active basemap,
22
+ changes what the camera means, and is meaningless at pitch 0.
23
+
24
+ Shaded relief is the other thing: a **flat raster** that composes underneath
25
+ your data like any other layer. Same DEM decoders, different rendering
26
+ contract. Folding them together would make both harder to explain.
27
+
28
+ Being a layer also buys the property that matters most for print. A layer
29
+ draws inside deck's own framebuffer, so relief is captured by `snapshot()` and
30
+ **treated by `<om-effect>`**. A MapLibre basemap composites *beneath* deck and
31
+ stays untouched by a print finish — relief that behaved that way would be
32
+ worth very little on a sheet you intend to print.
33
+
34
+ ## Sources
35
+
36
+ `src` takes a registered terrain preset or a raw tile template.
37
+
38
+ | `src` | |
39
+ |---|---|
40
+ | `terrarium` | AWS Open Data, keyless, global |
41
+ | `mapterhorn` | keyless, global |
42
+ | `https://…/{z}/{x}/{y}.png` | your own tiles — needs `decoder` |
43
+
44
+ ```html
45
+ <om-layer id="relief" type="HillshadeLayer"
46
+ src="https://example.com/dem/{z}/{x}/{y}.png"
47
+ decoder="mapbox-rgb"></om-layer>
48
+ ```
49
+
50
+ `decoder` is `terrarium`, `mapbox-rgb`, or `{rScaler, gScaler, bScaler, offset}`
51
+ JSON — the same vocabulary `terrain-decoder` uses. A raw template with no
52
+ decoder is a validation warning rather than a guess, because reading
53
+ Mapbox-encoded heights as terrarium produces smooth, plausible relief that is
54
+ wrong by a factor of about 25.
55
+
56
+ **`src` is required**, even though the default source needs no key. Every
57
+ keyless default in this library is still named by the author —
58
+ `basemap="positron"`, `terrain="terrarium"` — because keyless means *no key and
59
+ no account*, not *no attribute*. An element that reaches a public tile host
60
+ with nothing written on it is a network call the markup does not show.
61
+
62
+ > DEM tiles must be PNG or lossless WebP. Heights live in the RGB bytes, so a
63
+ > lossy codec invents terrain; a lossy source logs one warning per host.
64
+
65
+ ## The sun is a list
66
+
67
+ ```html
68
+ <om-layer id="relief" type="HillshadeLayer" src="terrarium"
69
+ sun-azimuth="315 45 135" sun-weight="3 1 1"></om-layer>
70
+ ```
71
+
72
+ `sun-azimuth` takes **one to four** azimuths, ° clockwise from north. One is
73
+ the single light every slippy map already ships. Two to four blended is
74
+ Swiss-style relief, which fills the dead black a single light leaves on
75
+ away-facing slopes. `sun-weight` gives one weight per azimuth (equal if
76
+ omitted); the weights are normalized for you.
77
+
78
+ There is deliberately **no `multi-directional` boolean**. A shorthand must
79
+ never reach capability the tier below it cannot express — the same rule that
80
+ makes an `<om-effect>` preset nothing but a saved op list. Multi-directional
81
+ relief also wants its azimuths *chosen for the terrain*, which is a tuning
82
+ job rather than a toggle.
83
+
84
+ Azimuth and elevation use `scene-lighting`'s convention exactly, so
85
+ `sun-azimuth` here and `lighting-sun-azimuth` on the map mean the same number.
86
+ They are **not** coupled: a 3D scene light silently driving a 2D raster is the
87
+ kind of thing that is impossible to debug from markup.
88
+
89
+ ## Knobs
90
+
91
+ | Attribute | Default | |
92
+ |---|---|---|
93
+ | `src` | *(required)* | preset name or `{z}/{x}/{y}` template |
94
+ | `decoder` | `terrarium` | required with a raw template |
95
+ | `sun-azimuth` | `315` | 1–4 azimuths, ° clockwise from north |
96
+ | `sun-weight` | equal | one weight per azimuth |
97
+ | `sun-elevation` | `45` | ° above the horizon, exclusive of 0 and 90 |
98
+ | `z-factor` | `1` | vertical exaggeration |
99
+ | `blend` | `normal` | or `multiply` |
100
+ | `opacity` | `1` | |
101
+ | `max-zoom` | the preset's | the provider's real tileset cap |
102
+ | `zoom-offset` | `0` | sharper relief than the view asks for |
103
+
104
+ Every illumination knob is a **uniform**. Moving the sun, deepening the relief
105
+ or changing the blend rebuilds no tile and fetches nothing.
106
+
107
+ ## Composing with your data
108
+
109
+ By default relief draws as its own greyscale image, so it works as the base of
110
+ a sheet. Put it first and it sits under everything:
111
+
112
+ ```html
113
+ <om-layer id="relief" type="HillshadeLayer" src="terrarium"></om-layer>
114
+ <om-layer id="parks" type="GeoJsonLayer" data="./parks.geojson" color="#93c47d"></om-layer>
115
+ ```
116
+
117
+ With fills above it, `blend="multiply"` makes relief read **through** them
118
+ rather than greying them out — the terrain shows in the parks' own green
119
+ instead of flattening it:
120
+
121
+ ```html
122
+ <om-layer id="parks" type="GeoJsonLayer" data="./parks.geojson" color="#93c47d"></om-layer>
123
+ <om-layer id="relief" type="HillshadeLayer" src="terrarium" blend="multiply" opacity="0.6"></om-layer>
124
+ ```
125
+
126
+ `multiply` needs something beneath it: multiplying against an empty sheet
127
+ draws nothing, which is why `normal` is the default.
128
+
129
+ ## What it gets right
130
+
131
+ **No tile seams.** A hillshade is a derivative, so a fragment at a tile edge
132
+ needs a neighbour that lives in a different tile. Clamping there instead
133
+ collapses the gradient and draws a pale grid over the whole world — the most
134
+ recognisable way a hand-rolled hillshade looks broken. Each tile is decoded
135
+ with a one-pixel apron taken from its eight neighbours, so there is no edge
136
+ case in the shader at all. The neighbours are nearly free, because a
137
+ neighbour is almost always a tile the map is drawing anyway.
138
+
139
+ **Latitude.** Web Mercator's ground metres per pixel fall off with cos φ, so a
140
+ fixed step flattens relief toward the equator and exaggerates it toward the
141
+ poles. The correction is applied per fragment, not per tile.
142
+
143
+ **Print resolution.** The DEM tile zoom follows the capture pixel ratio, so a
144
+ 300 dpi plate renders relief at plate resolution instead of upscaling the
145
+ screen image. This is the same class of problem the millimetre knobs solve for
146
+ `<om-effect>`.
147
+
148
+ **Exaggeration is display-only.** `terrain-exaggeration` scales the *rendered*
149
+ 3D surface; this layer never reads through it, so relief and a measured
150
+ elevation always agree about the ground.
151
+
152
+ ## Relief from your own DEM
153
+
154
+ `shading="hillshade"` on a `COGLayer` or `ZarrLayer` shades the raster you
155
+ already have, using the same illumination attributes:
156
+
157
+ ```html
158
+ <om-layer id="dem" type="COGLayer" src="./dem.tif"
159
+ shading="hillshade" sun-azimuth="315 45 135" z-factor="1.4"></om-layer>
160
+ ```
161
+
162
+ Runnable: [`dev/examples/features/rasters/shade-your-own-dem.html`](../dev/examples/features/rasters/shade-your-own-dem.html).
163
+
164
+ Pair it with a colormap and you get the thing this entry point exists for — a
165
+ **hypsometric tint with relief through it, as one layer rather than two**:
166
+
167
+ ```html
168
+ <om-layer id="dem" type="COGLayer" src="./dem.tif"
169
+ colormap="terrain" shading="hillshade"></om-layer>
170
+ ```
171
+
172
+ Relief runs last in the styling chain, after the colormap, so it *multiplies*
173
+ onto the tint rather than replacing it. Without a colormap there is nothing to
174
+ tint, so relief is drawn on its own.
175
+
176
+ It reads **one band as elevation** — the first selected band. A `bands` triple
177
+ is a false-colour composite, where "the elevation band" is not a question with
178
+ an answer, and the validator says so.
179
+
180
+ Ground scale comes from the file's own geotransform and CRS, so it is right
181
+ whether your DEM is in UTM metres, state-plane feet or degrees. A geographic
182
+ (lng/lat) source is the interesting case: its pixel is **not square on the
183
+ ground**, because a degree of longitude shrinks with latitude while a degree of
184
+ latitude does not. That correction is applied for you.
185
+
186
+ > **`identify="off"` does not save memory here.** Relief reads neighbouring
187
+ > pixels on the CPU to keep tile edges seamless, so the decode is retained even
188
+ > with that flag set. The validator points it out rather than letting the flag
189
+ > look like it worked. Drop `shading` if you need the memory back.
190
+
191
+ ## Bundle cost
192
+
193
+ None, unless you use it. The schema (for validation and IntelliSense) is in
194
+ the core bundle; the layer, the tile loader and the GLSL are a separate chunk
195
+ fetched only when a map actually has relief — pinned by a browser test.
196
+
197
+ ## Not implemented yet
198
+
199
+ - **Slope and aspect as queryable values.** Deliberately out of scope: this
200
+ feature ships rendered texture, never an analytic product. The boundary is
201
+ queryability, not the arithmetic.
202
+ - **Sky-view factor / ambient occlusion relief**, a heavier multi-sample
203
+ technique worth revisiting only if blended azimuths prove insufficient.
package/llms.txt CHANGED
@@ -35,15 +35,17 @@ Programmatic/native bridge rule: `MapController.setLayers()` accepts normal func
35
35
 
36
36
  - `<om-map center="[lng, lat]" zoom="11" pitch="55" bearing="20" basemap="positron">` — the root. Give it a height (`om-map { display:block; height:100vh }` with `html,body{height:100%}`, or a sized container) — a custom element is display:inline by default and collapses to zero size; with none set, the library falls back to display:block + a 400px floor so a bare map still shows (any height you DO set wins over the floor, including one below 400px), and a collapsed map logs a console warning. A map hidden on purpose (`hidden`, or inside a `display:none` panel) stays hidden and does not warn. `basemap` accepts a free preset (`liberty`, `bright`, `positron`, `dark-matter`, `voyager`, `osm` — no keys; or `maptiler-streets`/`maptiler-dataviz`/`maptiler-satellite` with `basemap-key="…"` or `OmMap.configureBasemap({ maptilerKey })`), `maplibre` (bare demo style), a style URL (e.g. a MapTiler-customized style; any scheme fetch supports, including desktop asset protocols like Tauri's, query strings fine), or `none` (standalone canvas). The attribute is LIVE — writing it switches the basemap in place (camera + layers survive); the `set-basemap {basemap}` action and `<om-widget type="basemap-switcher" options="positron dark-matter osm">` do the same. Register more via `OmMap.registerBasemap(name, { style })`. Required provider attribution renders automatically (`attribution="false"` opts out). `pitch`/`bearing` tilt the initial camera (use for 3D content). Terrain: `terrain="terrarium"` (keyless AWS DEM; also `mapterhorn` — keyless, CARTO Positron drape by default — `maptiler-terrain` with a key, a raw `{z}/{x}/{y}` DEM URL + `terrain-decoder="terrarium|mapbox-rgb|<JSON>"`, or `off`) raises a 3D surface — geographic layers DRAPE onto it automatically (per-layer `terrain="drape|offset|off"` overrides; 3D-model layers sit ON it), `terrain-exaggeration` scales relief, `terrain-texture` drapes imagery; terrain REPLACES an active basemap while on (restored when off); `set-terrain` action, `terrain` watch token, `OmMap.registerTerrain(name, {...})` for more sources. a georeferenced BIM model REQUIRES the map to author `terrain` explicitly — any value including an explicit `terrain="off"` (flat-ground siting); a model that resolves real elevation (IfcMapConversion + OrthogonalHeight) on a map with no `terrain` attribute raises an ERROR through the validation channel at load time (the library never writes attributes for you — no auto-terrain). Scene lighting for 3D content: `lighting="daylight|studio|flat|custom"` (absent = deck defaults) with `lighting-ambient`/`lighting-sun`/`lighting-sun-azimuth`/`lighting-sun-elevation`/`lighting-camera` overrides and `lighting-sun-date` (ISO/epoch — solar-position sun computed at the map center, wins over azimuth/elevation); attribute-backed (undoable, live-editable), story-steppable via the `set-lighting {lighting, sunAzimuth, ...}` action (`lighting="default"` removes the attribute set; a bare preset is a clean reset — stale overrides clear), native UI via `<om-widget type="lighting">` (preset radios + tuning sliders), widget watch token `lighting`. Clip box (issue #34): `clip-box-min="[lng,lat,elev]"` + `clip-box-max="[lng,lat,elev]"` cut a real axis-aligned 3D box through the scene — every layer clipped by default (per-layer `clip="off"` opts out), `clip-box-invert` shows outside instead of inside, `clip-box-highlight` dims clipped-out geometry instead of discarding it; works on ANY layer including georeferenced Tile3DLayer/BIMLayer content; attribute-backed (undoable) via `set-clip-box {min, max, invert?, highlight?}` (`{clear:true}` removes it), native UI `<om-widget type="clip-box">`; v1 axis-aligned only. XY snapping (issue #34 Part A): `snap="vertex edge midpoint"` + `snap-tolerance="12"` (px, default 12) refines a click/hover to the nearest vertex/edge/edge-midpoint of whichever feature deck ALREADY picked under the cursor — not a spatial index, only that one feature's own geometry is searched, on the CPU, when snapping is on. Applies to every layer by default (`snap="off"` on any `<om-layer>` opts it out, mirroring `clip="off"`) and to a `BIMLayer`'s own edge/crease overlay (its real wall corners/edges, converted from the model's local mesh coordinates to real `[lng,lat]` automatically) — the raw triangle MESH itself is not yet a snap target. Vertex beats midpoint beats edge on range conflicts; hold Space to place a point nearby without snapping. GeoJsonLayer extrudes polygons declaratively: `extruded get-elevation="$height"` (+ `wireframe`). `widgets-hidden` attribute (or the `set-widgets-visible {visible}` action / `<om-widget type="widgets-toggle">` button) hides every widget WITHOUT destroying state — attribution never hides (license); transient (not an undo step) but story-steppable, so a step can clear chrome for a cinematic take. Slots auto-dim while an open `<om-overlay>` popup covers them (position stability over the popup dodging; `widgets-dim="off"` disables). `validate` attribute enables live validation + on-page error panel. Include a `map-id="<random UUID>"` on complete pages (identifies the map artifact for usage telemetry — not a visitor id; the page author deletes it to opt out); `telemetry="off"` disables usage telemetry + library-error reporting for the map (global: `OmMap.configureTelemetry({ disabled: true })`; schema: docs/telemetry.md). Free plan limits (HOSTED http(s) pages only — a dev context (localhost, file://, any non-web scheme) lifts every cap while the attribution badge stays; the exemption is technical convenience, not a license grant — commercial deployment incl. packaged apps still requires a key): 5 layers, 25k rows per layer — layers past a limit don't render and validation says why; a `license-key="om_live_…"` attribute (publishable, origin-restricted) or `OmMap.configureLicense(key)` lifts limits and removes the corner badge — removal is a PERMISSION, not a requirement: `keep-badge` (or `OmMap.setKeepBadge(true)`) keeps the badge on a paid plan, rendering the credit WITHOUT the "free for non-commercial use" sentence (which would be false there); no effect on the free plan, where the badge is the license condition. When a user's map exceeds free limits, say so and point at the validation message rather than silently restructuring their data. Events on the element: `om-map-ready` (boot complete; `await mapEl.ready` is the promise twin), `om-validation-error`, `om-view-changed` (camera settled after a move, debounced; `detail = {longitude, latitude, zoom, pitch, bearing, origin}` where `origin` is `"user"` for gesture bursts vs `"programmatic"` for API/story moves — the camera-persistence hook, and the echo-suppression signal when syncing camera state to an app store), `om-map-point` (`detail = {coordinate: [lng,lat]|null, kind}` — every click/hover map coordinate incl. empty-map clicks, for custom capture tools beyond the draw widget), `om-tileset-load` (`detail = {layerId, tileset}` — a Tile3DLayer's live deck Tileset3D, for tools needing the real tileset like region export), `om-tiles-warmed` (`detail = {tilesets, viewports, ms, timedOut}` — a `warm-tiles` pass finished; see the story bullet), `om-route-resolved` (`detail = {layerId, route}` — a Route layer resolved, direct geometry or provider round-trip; `route` carries the normalized geometry/distanceMeters/durationSec/legs/bounds — how a page reads a provider-computed route without re-fetching, re-fired on every re-resolve). `MapController` mirrors these as `onViewChange`/`onMapPoint`/`onTilesetLoad`/`onRouteResolved` options. `await mapEl.snapshot()` returns a canvas-only PNG dataURL of the scene (basemap + layers at device pixels; `{as:"blob"}` for files) — DOM widgets/overlays/attribution are NOT captured, so exports must render provider credits themselves.
37
37
  - `<om-layer id="..." type="ScatterplotLayer" data="./points.json">` — any deck.gl layer class by `type` (39 layer types total: 32 bundled deck.gl core/geo/aggregation/mesh layers, plus the native `COGLayer`/`ZarrLayer` raster types, `ImageOverlay` for georeferenced drone JPEGs, `BIMLayer` for BIM source files, and `Route`/`Tracking` for routing/live-tracking — see the dedicated bullet below), plus `PopupLayer` (WebGL badges/labels at scale: `layout="badge|pin-label|card"`, `min-zoom`/`max-zoom`). Every type's full attribute list ships in the package's `onlymapjs.html-data.json` — consult it instead of guessing attribute names or reading the minified dist. TextLayer's default font atlas covers ASCII only: set `character-set` when label text carries other glyphs (`—`, `·`, accents) or deck warns and renders them blank. External layer classes register via `OmMap.registerLayer({type, deckClass, props})` — build them on `@nika-js/onlymap/deck` (the bundled `CompositeLayer`/`TileLayer`/… re-exports), never a separately-installed deck.gl (different class hierarchy, breaks in the renderer); function-valued props ride the subclass's `static defaultProps`; register at module top level BEFORE the manifest mounts (see docs/custom-layers.md). Data: `data` URL (JSON, GeoJSON, CSV/TSV `.csv` — parsed to typed columns — Shapefile `.shp` (+`.dbf` attributes) and KML `.kml` as GeoJSON features, GPX `.gpx` (waypoints/tracks/routes → features tagged `_gpxKind`; a `#waypoints`/`#tracks`/`#routes` URL fragment selects one part), FlatGeobuf `.fgb` (cloud-native binary vector, whole-file decode), GeoParquet `.parquet`/`.geoparquet` (cloud-native columnar vector — all-Point files stay columnar like Arrow, lines/polygons become GeoJSON features; requires the file's `geo` metadata with WKB geometry, and CRS84/EPSG:4326 — a projected CRS is a loud error telling you to reproject, not a silent misplacement; snappy/gzip/zstd row-group compression handled), CityJSON `.city.json` / CityJSONSeq `.city.jsonl` (semantic 3D city models — 3DBAG, PLATEAU — decoded to one of two shapes by the `data` URL, no CityJSON layer type: default → extruded footprints, `type="GeoJsonLayer" extruded get-elevation="$roof_height"`; `?om-surfaces=1` → one row PER FACE at its own real per-vertex height so a pitched LoD2.2 roof actually looks pitched, `type="SolidPolygonLayer" get-polygon="$polygon" full3d` (`extruded` stays at its ordinary `false` default) (flat-shaded — deck.gl only lights the `extruded` shader path — each row also carrying `surface_type`: RoofSurface/WallSurface/GroundSurface, and `fill_color`: a ninja-viewer-style default color per surface_type/cityobject_type, verified against cityjson-threejs-loader's own default palette — `get-fill-color` on `SolidPolygonLayer` reads it automatically when left unauthored, no color attribute required, and an authored `get-fill-color` still overrides it); derived properties (both modes) `roof_height` (area-weighted mean roof height above ground), `eaves_height`, `ridge_height`, `ground_height`, `roof_area`, `surface_count`, `lod`, `cityobject_id`, `cityobject_type`, `parent_id` win over same-named source attributes, plus surfaces-mode-only `polygon`/`outline`/`surface_type`/`fill_color` (`outline` is the face's outer ring flattened and closed — bind a companion `type="PathLayer" get-path="$outline"` layer to it for visible face edges, since surfaces mode is flat-shaded and `SolidPolygonLayer`'s own `wireframe` prop is a no-op when unextruded — always pair one, matching `filter-field`/`filter-range` to the fill layer), and a parent Building's attributes are inherited by its BuildingPart rows; national grids NL/CH/DE/JP/AT/SG reproject automatically including axis order, other EPSG codes fail with an error naming the code; highest LoD wins, pin one with `?om-lod=1.2` (combine as `?om-lod=1.2&om-surfaces=1`, cached independently); `.city.jsonl` fills in as it downloads in either mode — see docs/3d-assets.md), or Arrow IPC `.arrow`/`.feather` — large point datasets stay columnar, GeoArrow line/polygon geometry becomes GeoJSON features, zstd-compressed IPC is handled; other formats plug in via `OmMap.registerFormat({match, parse})`; data URLs accept any scheme the runtime's fetch supports — desktop webviews (Tauri, Electron) pass asset-protocol URLs straight in), inline `<script type="application/json">` (row arrays or column-oriented `{"columns": {"lon": [...], "lat": [...]}}`; must be a DIRECT child of the `<om-layer>`, and when present it wins — omit the `data` attribute), or `wss://` streaming (`key="mmsi"` upserts entities in place, `flush="250ms"` coalesces bursts, `source="name"` selects a `OmMap.registerSource` decoder plugin), or a polled REST snapshot (`refresh="5s"` re-fetches and replaces — for live endpoints that return the full current state). TILED layers: a `{z}/{x}/{y}` `data` template is deck's tile URL for `TileLayer`/`MVTLayer` (NOT rows) — passed through to deck verbatim, never fetched/parsed, so `<om-layer type="TileLayer" data="…/{z}/{x}/{y}.png">` works (raster gets a built-in BitmapLayer sublayer) and `type="MVTLayer" data="…/{z}/{x}/{y}.pbf"` self-renders vector tiles with `get-*` accessors applying to each decoded feature's properties; a tiled layer has no local rows so `ctx.data`/`ctx.stats`/`filter-*` don't apply. Authenticated endpoints: call `OmMap.configureData({ headers: {...} })` in a script — never put tokens in attributes. `$field` accessors work identically on all of them — never write column-index code yourself. One columnar restriction: the `js` full-JS opt-in is not allowed on Arrow/columnar layers (validation will tell you; use `$field` accessors instead). For 3D models use `type="ScenegraphLayer"` with `scenegraph="./model.glb"` (required) and `get-orientation="[0, $heading, 90]"` — the roll of 90 stands Y-up glTF models upright; `color`/`get-color` tint the model as a shader multiply over its own baked texture (default opaque white = no tint; `get-color` is `$field`-driven like other `*Color` accessors, so a fleet recolors by data without swapping model files); see docs/3d-assets.md. 3D Tiles use `type="Tile3DLayer"` with `tileset="…/tileset.json"` (NOT `data`). Any pickable layer can opt into deck's DEPTH-pick pass with `pickable="3d"` instead of a bare `pickable` (issue #34) — the resolved click/hover coordinate then carries a real elevation (`{{z}}` in overlay/tooltip templates, `ctx.selection.coordinate`) instead of the ray∩ground-plane guess, so a click on a building face lands ON the face rather than on the ground behind it; `terrain` sets this on itself. For BIM/photogrammetry, `pickable` alone picks a whole TILE — add `pick-features` to pick an individual ELEMENT (a wall, a window, one IFC product), and the `selection` then carries that element's `featureId`/`properties`/`class` from the tile's own `EXT_mesh_features` + `EXT_structural_metadata` (`feature-id-property` selects the ID set, default `_FEATURE_ID_0`). `feature-styles` recolours/fades/highlights by feature ID — an array indexed BY id of `{color: [r,g,b], strength: 0-1, opacity: 0-1}`, live-settable, uploaded as a small lookup texture (no refetch). Use `strength` below 1 to tint rather than replace, or the model's own texture is hidden. Isolate/hide/ghost are DECLARATIVE and mirror the vector `filter-field`/`filter-categories` pair — `feature-filter-field="component"` names the metadata field, then `isolate-features='["Clock"]'` / `hide-features='["Windows","Skylight"]'` / `ghost-features='["Wall"]'` take JSON value lists matched against the tile's property table (`ghost-opacity` tunes the fade, default 0.18). `isolate-features` is EXCLUSIVE (anything unlisted is hidden); hiding is a shader discard so a hidden element also stops being pickable and whatever is behind it becomes selectable. They compose ONTO `feature-styles` (style table supplies colour, these supply visibility), and being attributes they are undoable and story-steppable — prefer them over computing a style table in page JS. Multi-material/multi-primitive models fan out correctly (glTF allows one material per primitive, so real IFC exports are usually many primitives); only genuinely instanced i3dm tiles stay tile-granularity. Limits to state rather than discover: texture-backed IDs — how photogrammetry classification ships — require `load-options='{"gltf":{"loadBuffers":true,"loadImages":true},"image":{"type":"data"}}'`, and omitting `image.type` makes the tileset take MINUTES to appear (loaders.gl otherwise reads the whole ID texture back through a canvas once per vertex); and `opacity` below 1 currently blanks the model. BIM WIDGETS (all need a `pick-features` layer): `<om-widget type="ifc-browser" layer="clinic" fields="ifcClass material container spatialPath" scale-fields="netVolume" rows="7">` groups the model by a property-table field, counts each value, and gives every row I/H/G buttons that WRITE `isolate-features`/`hide-features`/`ghost-features` (so it is a UI over the attributes — undoable and story-steppable; I is MULTI-SELECT, isolating the union of every pressed row or tree node, since `isolate-features` is a list and the layer matches it as a set) while keeping the companion outline layer's `filter-categories` in step; that same select also offers whichever TREES the file supports — Spatial (`spatialPath`), Type (`typePath`), System (`systemPath`) and Classification (`classificationPath`, built by walking `ReferencedSource`) — each expandable with counts aggregated upward and the same I/H/G on every node, so isolating a storey or a system or a CCS code reaches every element under it. Spatial is NOT privileged (on a real Danish project the classification tree covered 3,415 elements to spatial's 660). A tree is not a separate mode, just a group-by on a hierarchy column — LIST it in `fields` to offer it, or set `field="spatialPath"` to open on it — and `loadIfc` emits a hierarchy column ONLY when the file populates it, so a tree that would render empty is never offered; trees appear automatically when available (no need to list them in `fields`) and `field="spatialPath"` opens straight onto one. ONE browser per layer: `feature-filter-field` and the isolate/hide/ghost attributes are single-valued, so two instances on one layer clobber each other. The widget was renamed from `ifc-legend` (still registered as a deprecated alias) because it is a model browser, not a legend. non-physical classes (IfcSpace, IfcOpeningElement) are hidden unless `show-non-physical`, and `no-color` removes the colour select. `<om-widget type="feature-inspector" fields="ifcClass material container netVolume">` (renamed from `ifc-inspector`, kept as an alias) shows the picked element's properties. `<om-widget type="ifc-loader" layer="ifc" federate>` is a drop zone that parses `.ifc` files IN THE BROWSER and builds both layers itself; `federate` accepts SEVERAL models into one co-registered scene (one drop zone, one layer per model, each with a visibility toggle) rather than one widget per discipline, matching how coordination tools append models; a model that turns out to be georeferenced is AUTO-PLACED (its own coordinates/heading/scale written onto the layers the WIDGET created, camera flown there) — but the widget NEVER writes `<om-map>`'s own scene attributes (`basemap`, `terrain`): those are author-owned, and a georeferenced model on a map with neither raises a structured "no spatial context" warning instead of switching one on. COLOUR BY PROPERTY instead of hand-computing a `feature-styles` table: `feature-color-by` (categorical, `feature-palette` overrides the built-in cycle) or `feature-color-scale` (graduated over a numeric field), with `feature-color-strength` (default 0.85) controlling how hard the colour mixes over the model's own material. Setting NEITHER is the default and is meaningful — the model renders in its own IFC surface colours. A graduated ramp needs the field populated: Revit IFC2x3 exports often carry no `IfcElementQuantity`, so every `netVolume` is 0 and the ramp is flat. Widget scripts read the decoded property table with `ctx.features(layerId)` (undefined until the first tile carrying one lands) and re-render on the `features` watch token. `<om-widget type="ifc-clash" layers="arch mep" tolerance="0">` is the CLASH OVERLAY over two co-registered model layers: it flags element pairs whose bounding boxes interpenetrate, colours both sides via `feature-styles`, and flies to the centre of each overlap. v1 is an axis-aligned box test — fast and serverless, but it over-reports anything diagonal and says nothing about which clashes matter; zones/spaces/openings/proxies and same-class-same-name pairs are excluded as noise. The header carries an overlay on/off switch; an isolation mode select (None/Dim/Hide) sits above the results list and applies once a row is selected (with nothing selected, nothing is hidden), and clicking a row FOCUSES that clash (chosen pair at full strength, every other clashing element dropped to a faint tint, camera flown to the overlap centre) — without that, everything is highlighted and nothing is. Results are GROUPED by the side-A element with a count (one wall crossing four ducts is one row), and the two model selects appear only when more than two models are loaded. It CHECKS co-registration (matching `site-origin`) and says so when it fails, because two mis-registered models report zero clashes exactly like two clean ones. Persisting/sharing results is BCF's job and is out of scope. `<om-layer type="BIMLayer" src="./model.ifc">` is the declarative counterpart to `ifc-loader`/`loadIfc`: point it at a BIM source file (an .ifc today) and it runs the loader itself the moment src resolves — no pre-baked tileset, no site-origin/site-heading/site-scale (the file's own georeference is read and applied automatically; not wired up yet: an authored site-origin on a BIMLayer does not override it), and no separate PathLayer for the outline overlay (added automatically). `pick-features` defaults ON (unlike a plain Tile3DLayer); feature-filter-field/feature-styles/isolate-hide-ghost/feature-color-by/ghost-opacity all work unchanged, since BIMLayer forwards them to a real Tile3DLayer it builds internally. Known gap: the outline overlay does not yet follow isolate/hide/ghost the way the mesh does. Reach for BIMLayer when the model is fixed and known ahead of time; reach for ifc-loader when a visitor picks the file or several models need to federate. IN-BROWSER IFC: `loadIfc(bytes)` parses an `.ifc` with web-ifc (WASM, MPL-2.0, CDN-fetched on first use — NOT a package dependency; `configureIfc({wasmPath})` self-hosts) and returns `{tilesetUrl, edgesUrl, loadOptions, features (rows carry `ifcClass`/`name`/`material`/`container`/`netVolume`/`spatialPath`/`typePath`/`systemPath`/`classificationPath` — hierarchy columns joined by U+001F that the model trees navigate, each emitted only when the file populates it), lonLat, georeferenced, heading, scale, originSource, headingSource, stats, timings, bounds, revoke()}`; the output IS a tileset so picking/styling/`site-*`/isolate-hide-ghost work unchanged. CALL `revoke()` when swapping models — blob URLs are held by the document. FEDERATION: pass the first model's returned `origin` as `LoadIfcOptions.origin` for every later model of the same building, or each is centred on its own bounding box and they drift apart — a clash pass then finds nothing, which looks identical to a clean model. `ifc-loader` shares one origin AND one placement (`site-origin`/`site-heading`/`site-scale`) per map automatically — discipline files routinely declare IfcSite coordinates kilometres apart for the same building, so the first model loaded decides where it goes and the rest follow (`independent` opts out). Every element also carries a tile-local bounding box in the property table (`bboxMinE`/`bboxMinN`/`bboxMinU`/`bboxMaxE`/`bboxMaxN`/`bboxMaxU`). POSITION is read from the file preferring the trustworthy route: `IfcMapConversion` (a surveyed placement into a named projected CRS) WINS over `IfcSite.RefLatitude`/`RefLongitude`, which is very often an authoring default; `originSource` reports which was used, and anything other than `"map-conversion"` raises a structured `"warning"` through the same validation channel other `om-layer` errors use (the on-page panel with `validate` set, `om-validation-error`'s `detail.warnings`) for both `BIMLayer` and `ifc-loader`, once per layer — it never flips `valid` false, only flags the position may be off by tens of metres with no rotation correction applied; override with `site-origin`/`site-heading` or a proper `IfcMapConversion`. Un-projecting a map conversion is supported for WGS84 UTM zones (EPSG:326xx/327xx) and DECLINED with a warning for anything else — a guessed projection lands the model in another country while looking plausible. Eastings/northings are in the target CRS unit, frequently MILLIMETRES. Reading a file correctly and the model being somewhere sensible are SEPARATE problems: all three prepared samples declare placeholders (clinic on Revit's Boston default, which is a 1630 graveyard; duplex on a Chicago city-centre point; bridge — which does carry a real IfcMapConversion — into the mid-Pacific). `headingSource` distinguishes "map-conversion"/"true-north" (read) from "assumed" (file was silent) — report the assumption, never let it read as a measurement. `<om-map>` reads camera attributes ONCE at init, so `setAttribute("center", …)` after mount moves nothing: use `map.flyTo(lonLat, zoom)`. GEOREFERENCING is declarative on `Tile3DLayer` and `PathLayer`: `site-origin="[lng, lat]"` (or `[lng, lat, elevation]`) OVERRIDES the position baked into a tileset's root transform, `site-heading` is a bearing in degrees CLOCKWISE from true north (on its own it rotates the model where it stands), `site-scale` is a uniform multiplier; rotation and scale pivot on the model's own anchor, not the tileset origin. An IFC model is a PAIR of layers — the mesh tileset plus a `PathLayer` outline overlay whose paths are local east/north/up METRES — and both need the same three values or the building separates from its own edges. Never trust a model's declared position without looking at it: authoring tools ship a default project location that is indistinguishable from a survey (the buildingSMART Medical-Dental Clinic sample carries Revit's Boston default, the Duplex a Chicago city-centre point, so both land on occupied downtown blocks at an arbitrary rotation), `IfcMapConversion` is absent from most IFC2x3 exports, and `TrueNorth` is routinely unset. Editing `site-*` on a live Tile3DLayer reloads the tileset (deck.gl only reloads on a URL change); the PathLayer updates as a uniform. GeoTIFF/COG rasters use `type="COGLayer"` with `src="./dem.tif"` (NOT `data` — rasters stream tiles by Range request, they are not parsed rows). COG v2 surface (0.7.0): `bands` selects 1-based bands — one (`bands="4"`, colormap-eligible) or an `[r,g,b]` triple (`bands="[8,4,3]"`, false-color composite); band switches NEVER refetch (the decode is retained; textures re-upload from memory). `min`/`max` set the rescale window — a number broadcasts, a triple pairs per-band with a `bands` triple; `rescale="auto"` reads the window from GDAL statistics tags (coarsest-overview sample fallback, with a warning that the window is data-derived); non-8-bit sources with NO styling attrs auto-stretch automatically now (the "my COG is blank" fix — a dev notice reports the derived window; author min/max for stable styling). `colormap` picks a bundled ramp for single-band sources (gray, viridis, plasma, inferno, magma, cividis, rdylgn, rdbu, spectral, terrain, jet, turbo, ylorrd), `reverse` flips it, `stretch="log|sqrt"` and `gamma="1.8"` shape the display curve, `nodata` overrides the source sentinel (renders transparent). Plain 8-bit RGB COGs need no styling attributes; paletted GeoTIFFs render via their embedded color table and emit a classes legend when few palette entries are used. Every styling change is a GPU uniform (no refetch); the legend derives automatically (authored or auto window). PIXEL IDENTIFY: clicks/hovers over a COGLayer with no vector feature carry the pixel's per-band values through the ordinary selection — overlays/tooltips interpolate `{{value}}`, `{{values}}`, `{{band_1}}`…; `identify="off"` opts out (drops the CPU-retained decode — recommended for memory-tight WebViews; band switches on that layer then refetch tiles instead of re-uploading from memory). Source failures (CORS-refused Range requests, non-COG plain GeoTIFFs, out-of-range bands) surface as structured validation errors with fix strings instead of a silent blank layer. Sources should be Cloud-Optimized (`gdal_translate -of COG`; plain GeoTIFFs render with a warning, re-reading the full image per view).
38
+ - SHADED RELIEF: `<om-layer id="relief" type="HillshadeLayer" src="terrarium">` shades a DEM on the GPU. It is a LAYER, not a mode of `terrain=` — `terrain=` raises a 3D surface, replaces the basemap and means nothing at pitch 0, while relief is a flat raster that composes under your data AND, being inside deck's framebuffer, is captured by `snapshot()` and treated by `<om-effect>` (a MapLibre basemap would not be). `src` is REQUIRED and takes a registered terrain preset (`terrarium`, `mapterhorn` — both keyless and global) or a raw `{z}/{x}/{y}` template plus `decoder="terrarium|mapbox-rgb"|{rScaler,gScaler,bScaler,offset}` JSON; a raw template with no `decoder` is a validation warning, because reading mapbox-encoded heights as terrarium yields smooth plausible relief that is ~25x wrong. Keyless means no key, not no attribute — name the source the way `basemap="positron"` and `terrain="terrarium"` are named. THE SUN IS A LIST: `sun-azimuth="315 45 135"` blends one to four lights (° clockwise from north, `scene-lighting`'s convention — same numbers as `lighting-sun-azimuth`, but NOT coupled to it), `sun-weight="3 1 1"` weights them (normalized for you, equal if omitted). There is deliberately no `multi-directional` boolean: a shorthand must never reach capability the tier below cannot express, and the azimuths want choosing for the terrain. Other knobs: `sun-elevation` (default 45, must be strictly between 0 and 90), `z-factor` (vertical exaggeration), `blend="normal|multiply"` (multiply lets relief read UNDER fills rather than greying them — it needs something beneath it, which is why normal is the default), `opacity`, `max-zoom`, `zoom-offset`. Every illumination knob is a UNIFORM: moving the sun rebuilds no tile and fetches nothing. Correctness the author does not have to think about: tile edges are seamless (each tile is decoded with a one-pixel apron from its eight neighbours — clamping instead collapses the derivative and draws a pale grid over the world), latitude is corrected PER FRAGMENT (Web Mercator metres-per-pixel falls off with cos-phi), tile zoom follows the capture pixel ratio so a 300 dpi plate is not upscaled screen relief, and `terrain-exaggeration` is never read through (display transform vs true ground). DEM tiles must be PNG or LOSSLESS WebP — heights live in the RGB bytes, so a lossy codec invents terrain (one warning per host). The layer + GLSL are a lazy chunk: a map with no relief downloads none of it. SECOND ENTRY POINT — YOUR OWN DEM: `shading="hillshade"` on a `COGLayer`/`ZarrLayer` shades that raster in place with the same `sun-azimuth`/`sun-weight`/`sun-elevation`/`z-factor` attributes. Relief runs LAST in the styling chain, so it MULTIPLIES onto a `colormap` instead of replacing it — `colormap="terrain" shading="hillshade"` is a hypsometric tint with relief through it as ONE layer, not two; with no colormap, relief is drawn alone. It reads ONE band as elevation (the first selected), so a `bands` triple warns. Ground scale comes from the file's own geotransform + CRS units, so UTM metres, state-plane feet and degrees all work — a geographic source is ANISOTROPIC (a longitude degree shrinks with cos-phi, a latitude degree does not) and that is corrected per fragment. CAVEAT: `identify="off"` cannot free memory while shading is on, because the seamless-edge apron reads neighbouring pixels on the CPU — the validator flags the combination rather than letting the flag look like it worked. Deep reference: docs/hillshade.md. Slope/aspect as queryable VALUES stays deliberately out of scope — this ships rendered texture, never an analytic product.
38
39
  - Geotagged drone JPEGs are the library-owned `ImageOverlay` type, not row `data` and not a raw `BitmapLayer`: `<om-layer type="ImageOverlay" src="./photo.jpg" georeference="exif">`. It reads GPS/relative altitude/camera/focal length plus DJI gimbal metadata through the configured fetch policy, waits before `ready`, bakes yaw/roll, and computes visualization-grade flat-ground bounds. Unknown cameras need `sensor-width-mm` + `sensor-height-mm` (and `focal-length-mm` when EXIF lacks it). For collaborative/saved maps call `OmMap.resolveImageOverlay(fileOrUrl)`, upload its returned `image`, then reconstruct using `src` + the returned explicit `bounds` (no EXIF fetch). Use `COGLayer` for large orthomosaics; see docs/image-overlays.md.
39
40
  - Chunked N-dimensional Zarr / GeoZarr rasters (climate/weather grids, datacubes) are the library-owned `ZarrLayer` type (built on `@developmentseed/deck.gl-zarr` + zarrita, a lazy chunk): `<om-layer type="ZarrLayer" src="./x.zarr" variable="temp" select="time=0" colormap="viridis" min="…" max="…">`. `src` not `data` (chunks stream through the layer's reader, never parsed rows). Pick the `variable` and pin EVERY non-spatial dimension in `select` ("init_time=0, lead_time=0, ensemble_member=0"); the two spatial dims are handled for you (a 2-D array needs no select). A GeoZarr-compliant store georeferences itself; a plain Zarr needs manual `bounds="[w,s,e,n]"` + `crs="EPSG:4326"` + `spatial-dims="<yName> <xName>"` (bounds without crs+spatial-dims is a validation error). `min`/`max`/`colormap`/`nodata` and the auto legend reuse the exact COGLayer raster pipeline. Beware store chunking: a dataset chunked coarsely over non-spatial dims (e.g. all forecast steps in one chunk) decodes far more than the pinned frame needs. `src` may be any absolute URL (`https://…/store.zarr`) — an external/remote store works with no server setup (a static host serves Zarr's extensionless chunk keys natively), but zarrita fetches it directly from the browser so the store MUST send CORS headers (`Access-Control-Allow-Origin`), and it must be PUBLIC — authenticated stores are not yet supported (ZarrLayer uses zarrita's own fetch, not `OmMap.configureData`).
40
41
  - `<om-widget type="legend|layer-switcher|basemap-switcher|lighting|clip-box|zoom-controls|undo-redo|scale-bar|attribution|filter|vega-lite|dynamic-chart|measure" position="bottom-end">` — static UI panels. `position` takes one of 8 managed slots (logical, RTL-aware: `top-start|top-center|top-end|center-start|center-end|bottom-start|bottom-center|bottom-end`; legacy corners `top-left` etc. alias) — same-slot widgets stack with flush edges and a shared gap (never overlap); provider attribution joins `bottom-end` and the license badge joins `bottom-start` as in-flow members, so required chrome never covers a widget; `order="1"` orders within a slot; adjacent compact button widgets (zoom-controls, undo-redo, widgets-toggle) auto-merge into ONE control group with dividers (`cluster="false"` opts a widget out); `position="manual"` renders a plain block you place with your own CSS (even outside the map). At narrow map widths managed widgets auto-fold into one accessible drawer per map side — at ≤640px when some row (top/center/bottom) has widgets on more than one of its slots, and only at ≤416px when every occupied row is one-sided (a lone legend at center-start keeps the row to itself and survives narrower maps); `fold="never"` exempts an essential widget, `widgets-fold="off"` opts the map out, `--om-widget-fold-breakpoint` changes the threshold. Layout tokens on `<om-map>`: `widget-style="gap:10 opacity:0.9 inset:16"` (keys inset/gap/inset-x/-y/gap-x/-y/opacity/radius/size, px except opacity) or the `--om-widget-inset-x/-y/-gap-x/-gap-y/-opacity/-radius/-fold-breakpoint` custom properties. Built-ins are themeable from page CSS via custom properties (they inherit through the shadow root): `om-map { --om-widget-bg: #111827; --om-widget-fg: #f9fafb; }` — full set: `--om-widget-bg/-fg/-muted/-border/-hover-bg/-accent`; scope to a single widget with an `om-widget[type=legend]` selector instead. `measure` is a geodesic ruler: `modes="distance area volume"` (default `distance area`), `units="metric|imperial|nautical"` — click the map to place points, live per-segment + total labels render on the map, and it dispatches an `om-measure` event; it reuses the draw capture stack (measure/draw mutually exclusive) and its geometry is ephemeral (never saved, not an undo step) — see the dedicated `measure`/`volume` bullet above for the full event shape and the `profile`/`density`/`swell`/`shrink`/`deadband` volume-mode attributes. `scale-bar` now takes the same `units`. `dynamic-chart` is the same Vega-Lite rendering as `vega-lite` but fed by a live DOM event instead of a layer: `on="<event-name>"` (required) + `series-field="<name>"` (default `series`) reads `event.detail[seriesField]` as `data.values` and re-embeds on every event where it's a present array, at a fixed `width`; omitting the field on a later event freezes the chart with no separate pause API — built for a feature (a drawn line's elevation profile) that computes its own series live and has no layer to bind to. No `type` + HTML + `<script type="om/widget">` = custom widget with `ctx` (`ctx.layers`, `ctx.data(id)`, `ctx.dataInViewport(id)`, `ctx.stats(id, field)`, `ctx.viewport`, `ctx.selection`, `ctx.emit(action, payload)`), `this.watch = ['data:<layerId>', 'viewport', 'selection', 'layers', 'history', 'basemap']` (`layers` also fires on visibility/filter changes; `basemap` on basemap switches; `history` on undo/redo availability), `this.$(sel)`, `vegaEmbed`/`d3` as globals.
41
42
  - Custom-widget event emission (the #1 custom-widget bug — a widget that renders but does nothing): a widget DRIVES the map ONLY by EMITTING a registered action; it never mutates the map or dispatches its own `CustomEvent`. Two ways: (1) declarative `data-emit="<action>"` + `data-*` payload keys on an element (fires on click, or change for form controls whose `.value` is auto-added; `data-*` values are STRINGS — use `ctx.emit` for numeric/array payloads like a slider's range); (2) `ctx.emit(action, payload)` for typed payloads, wired INSIDE `render` (so `ctx` is in scope) by assigning `.oninput`/`.onclick` — e.g. a day slider: `this.render = (ctx) => { this.$("#day").oninput = e => ctx.emit("filter-layer", { layer: "quakes", field: "day", range: [+e.target.value, +e.target.value] }); }`. Actions + payloads: `filter-layer {layer, field?, range:[min,max]}`, `toggle-layer {layer, visible?}`, `fly-to {center:[lng,lat], zoom?, duration?}`, `zoom-to-feature {layer, featureId}`, `set-basemap {basemap}`, `highlight-feature {layer, featureId}`, `show-overlay`/`hide-overlay {target}`, `story-play`/`story-pause`/`story-seek {story, t?}`, `undo`/`redo`, `zoom-in`/`zoom-out`, `set-widgets-visible {visible}`; register more with `OmMap.registerAction(name, handler)`. NEVER inline `onclick=`/`oninput=` — `ctx` isn't a global and CSP blocks them, so it silently fires nothing (validation errors on it). For a plain value/time slider prefer the built-in `<om-widget type="filter" layer=… field=…>` — it wires `filter-layer` for you; hand-author only for bespoke UI.
42
43
  - `<om-overlay id="..." anchor-from="selection">` — rich geo-anchored HTML (≤ ~20 per map). Anchors: `anchor="[lng, lat]"` (static), `anchor-from="selection"` (follows picks), or `anchor-layer="regions" anchor-feature-id="mission"` (anchored to a feature's own geometry — bbox center — no coordinates in markup; `{{field}}` interpolates that feature's attributes). Selection-anchored overlays scope with `layer="…"` (one layer's picks only) and `selection-type="click"|"hover"` (one pick type only) — a click-opened popup should ALWAYS set `selection-type="click"`, else merely hovering any pickable feature drags it there and re-templates it against the hovered object; with it, hover is inert and a click on empty space still dismisses. `{{field}}` interpolates the picked feature HTML-escaped; `{{{field}}}` is raw (avoid); `{{z}}` is the pick's ELEVATION in meters, present only when a `pickable="3d"` layer ran deck's depth pass for that pick (absent — not `0` — otherwise, so "no elevation" is distinguishable from sea level). `clip-to-map` (opt-in) hides the overlay when its own BOX would spill past the map viewport rather than only when its anchor leaves — for small transient tips that track the cursor; an overhanging absolutely-positioned box inflates the page's scrollable overflow and the scrollbar -> map resize -> reprojection loop shows as view jitter. For labels on many features use `PopupLayer`, not overlays. STYLING: overlay content renders inside a shadow root (style isolation, like widgets) — page stylesheets/classes do NOT reach it; use inline `style="…"` on the content or a `<style>` element INSIDE the overlay (children move into the shadow root wholesale, so it applies there); inheritable props + CSS custom properties pierce.
43
- - `<om-behavior on="click|hover|drag|load|data-loaded" layer="..." action="...">` — declarative interaction. Built-in actions: `show-overlay`, `hide-overlay`, `show-tooltip`, `hide-tooltip`, `toggle-layer`, `set-pickable` (`{layer, pickable: true|false|"3d"}` — runtime picking/popup toggle, story-capturable; the per-layer popup on/off switch a viewer-facing export needs), `filter-layer`, `highlight-feature`, `zoom-to-feature`, `set-basemap`, `undo`, `redo`; scene/tool actions `set-lighting`, `set-terrain`, `set-clip-box` (`{min,max,invert?,highlight?}` / `{clear:true}`), `clip-box-edit` (`{editing}`), `export-region-3d` (`{target?, format?:"glb"|"b3dm"}` — what the draw widget's `export-3d` button emits), the draw actions `draw-mode` (`{target?:"sketch", mode:"point"|"line"|"polygon"|null}` — null exits drawing), `draw-commit`, `draw-cancel`, `draw-delete` (removes the last shape), `draw-clear`, `draw-config` (`{target?, autosave?, fillColor?, lineColor?}`) and `draw-save` (`{target?, format?:"download"|"file-system"|"both"}`) — every one of these drives the same store a `data="draw:<target>"` layer reads, so a custom toolbar can replace `<om-widget type="draw">` entirely; and the measure actions `measure-mode` (`{mode:"distance"|"area"|"volume"|null}`), `measure-units`, `measure-clear`, `measure-config` (`{profile?, baseSurface?, density?, swell?, shrink?, deadband?}`), `measure-flat-target-plane` (`{flat}`). One payload contract everywhere: `{ layer, target, feature, featureId, coordinate }`.
44
+ - `<om-behavior on="click|hover|drag|load|data-loaded" layer="..." action="...">` — declarative interaction. Built-in actions: `show-overlay`, `hide-overlay`, `show-tooltip`, `hide-tooltip`, `toggle-layer`, `set-pickable` (`{layer, pickable: true|false|"3d"}` — runtime picking/popup toggle, story-capturable; the per-layer popup on/off switch a viewer-facing export needs), `filter-layer`, `highlight-feature`, `zoom-to-feature`, `set-basemap`, `undo`, `redo`; scene/tool actions `set-lighting`, `set-effect` (`{preset}` — swap a post-process finish; see the effects bullet), `set-terrain`, `set-clip-box` (`{min,max,invert?,highlight?}` / `{clear:true}`), `clip-box-edit` (`{editing}`), `export-region-3d` (`{target?, format?:"glb"|"b3dm"}` — what the draw widget's `export-3d` button emits), the draw actions `draw-mode` (`{target?:"sketch", mode:"point"|"line"|"polygon"|null}` — null exits drawing), `draw-commit`, `draw-cancel`, `draw-delete` (removes the last shape), `draw-clear`, `draw-config` (`{target?, autosave?, fillColor?, lineColor?}`) and `draw-save` (`{target?, format?:"download"|"file-system"|"both"}`) — every one of these drives the same store a `data="draw:<target>"` layer reads, so a custom toolbar can replace `<om-widget type="draw">` entirely; and the measure actions `measure-mode` (`{mode:"distance"|"area"|"volume"|null}`), `measure-units`, `measure-clear`, `measure-config` (`{profile?, baseSurface?, density?, swell?, shrink?, deadband?}`), `measure-flat-target-plane` (`{flat}`). One payload contract everywhere: `{ layer, target, feature, featureId, coordinate }`.
44
45
  - Undo/redo is built in: user-facing manifest changes (layer toggles, filter changes, basemap switches, element add/remove, drawn sketches) are recorded automatically — the manifest is the state. `<om-widget type="undo-redo">` renders the buttons; Cmd/Ctrl-Z, Shift-Cmd/Ctrl-Z, and Ctrl-Y work on any map (text inputs keep their native undo). Camera moves, hover effects, and story playback are deliberately NOT undo steps. Widget scripts: `ctx.history.canUndo/canRedo` with watch token `history`; `ctx.emit("undo")`/`ctx.emit("redo")`.
45
46
  - `<om-fallback>` — static no-JS fallback, direct child of `<om-map>` (one per map, no attributes, plain HTML content — links allowed). Shown ONLY where scripts never run (chat-app/email file previews — iOS QuickLook renders HTML attachments with JS off — file managers, sandboxed webviews); hidden automatically once the map boots. GOOD PRACTICE: include one on every complete page, especially pages that may be shared as a file. To PRODUCE a shareable single file, `npx @nika-js/onlymap export map.html` embeds every relative data/src/scenegraph URL as a data: URL (format detection preserved — the original extension rides a #name.ext fragment), pins relative library refs to the CDN, adds a generic om-fallback when missing, and warns when embedded data is heavy (>1 MB per file / >5 MB total) or when a source cannot be embedded (shapefile sidecars, COG Range streams, Zarr directories, {z}/{x}/{y} templates — those need hosting) ("This interactive map requires JavaScript — open this file in a web browser", plus a hosted-version link when one exists). Without one, the stylesheet shows a generic text-only banner. The gate is pure CSS (`om-map:not(:defined)` in onlymapjs.css) refined by the `scripting` media feature on 2023+ engines: with scripting DISABLED the fallback shows instantly; with scripting ENABLED it never flashes during a slow load and only surfaces after a ~4s grace with load-failure wording (blocked/unreachable bundle). The CSS must load without JS — a real `<link rel="stylesheet">` or inlined `<style>` on no-build pages; a bundler-emitted stylesheet is fine in npm projects.
46
47
  - PRINT LAYOUTS (`@nika-js/onlymap/cartograph`, separate lazy entry — the core bundle does not grow): `<om-cartograph size="A3" orientation="landscape">` is a standalone page measured in MILLIMETRES carrying `<om-frame>`s (live `<om-map>` with the frame's own camera, or `mode="static"` georeferenced rasters placed by `crs`+`corners`) plus cartographic furniture: `<om-legend for="...">` (rows DERIVED from the live map's own symbology incl. classified breaks; author literal `<om-legend-row>`s with `derived="false"`), `<om-scalebar>` (metric|imperial|nautical), `<om-north>`, `<om-graticule>` (4326/3857/UTM), `<om-shape>`, `<om-image>`, `<om-text>` with `{{title}}`/`{{date}}`/`{{frame.<id>.scale}}`/`{{atlas.<field>}}` tokens. `overview-of="<frame-id>"` draws a locator inset's footprint. A live frame georeferences whatever its map shows: zoomed out past the whole world, the map wraps inside the frame like any web map (the graticule labels each copy, the scale bar measures its own row) — the frame never limits or changes the camera, and once the map inside it settles after a pan/rotate/tilt the frame's georeference follows the map's own view, so north arrow, scale bar, graticule, locator and `{{frame.<id>.scale}}` describe what is on screen (and a freeze captures that view). `max-pitch` and `min-zoom` on `<om-map>` exist as author-set controls for kiosk-style maps and are never applied automatically. `<om-atlas for="<frame-id>" layer="<layer-id>">` renders one page per feature (sequentially through ONE live map — WebGL context limits make cloned pages fail at scale) and exports a ZIP. Print via `page.print()` or `?print=1` (true page size via @page; live frames swap to print-DPI captures first), PNG via `renderCartograph(page, {dpi})` or `?export=png&dpi=300`. `bleed`/`crop-marks`/`safe-zone` (screen-only guide)/`flatten` are press-shop attributes; `cvd="deuteranopia|protanopia|tritanopia|achromatopsia"` simulates colour-vision deficiencies page-wide and `lintLegendColours()` flags collapsing palettes. Free plan: a small foot credit is injected — suppressed by any authored `om-text` crediting OnlyMap, or by a paid key on a live frame's map. Deep reference: docs/cartograph.md.
48
+ - POST-PROCESS EFFECTS: `<om-effect>` children of `<om-map>` ARE deck's `effects` array — document order is pipeline order. Three lanes, exactly one per element: `preset="vintage|engraved|night|blueprint|riso|newsprint|muted"` (a named finish; override one knob with `<op>-<param>`, e.g. `grain-amount="0.02"`, or get the preset as markup from `OmMap.expandPreset(name)`); `op="tint|levels|saturation|posterize|vignette|grain|edges|blur|sharpen|halftone"` with that op's knobs as attributes; or an inline `<script type="application/json">` luma ShaderModule passed to deck untouched (raw GLSL, multi-pass). Spatial knobs are MILLIMETRES (`size="0.12mm"`) and resolve against the live pixel density, so a look keeps its physical size at print DPI — a pixel value is a validation error. Consecutive pointwise ops compile into ONE pass; only neighbourhood ops (edges/blur/sharpen/halftone) cost a pass each. A preset is literally a saved op list. `set-effect {preset}` swaps it live by writing the document, and `<om-widget type="effects">` renders that as preset radios plus Off, mirroring the document rather than holding state (undoable; NOT story-rewindable yet — a step can apply it, but `seek()` back will not remove it, because rewind restores `<om-map>` attributes and this adds a child element). Programmatic twin: `MapController.setEffects(effects | null)` hands deck `Effect` instances directly and outranks the document's chain while set. Deep reference: docs/effects.md. CAVEAT: a pass runs over deck's framebuffer, so with a MapLibre basemap the basemap underneath is untouched — the validator warns and suggests `basemap="none"` with the base drawn as layers.
47
49
  - Animation: `transition="get-fill-color 800ms, get-radius 400ms"` on a layer GPU-animates prop changes (also smooths streaming updates via `get-position`). Camera: the `fly-to` action takes `center`/`zoom`/`pitch`/`bearing`/`duration` (e.g. `duration="2s"`) — use it in behaviors or `data-emit` buttons; `zoom-to-feature` also accepts `duration`.
48
50
  - Pull-model frame rendering (external video frameworks such as Remotion): mark the map `data-om-recording` (the determinism switch — instant camera, no transitions/gesture interrupts, byte-stable `snapshot()`), then per frame `story.seek(t, {interpolateCamera: true})` + `await mapEl.whenSettled()` + capture; the same frame is byte-identical across processes and orderings. Story effect verbs (fade/pulse/trace/populate) evaluate as pure functions of story time under the switch — a seek landing mid-trace renders the half-drawn outline; only effects dispatched OUTSIDE a story (behaviors, ctx.emit) snap to their end state. `onlymapjs record` remains the built-in push-model path; `@nika-js/onlymap-remotion` packages the pull-model path for Remotion.
49
51
  - Travel-map animation: a `trace` story step takes `follow` (camera rides the drawing tip along the path) and `easing="linear|ease-in|ease-out|ease-in-out"`; combine with a TripsLayer route + pins toggled by later steps, and export with `npx onlymapjs record`.
@@ -190,10 +190,15 @@
190
190
  "opacity",
191
191
  "rescale",
192
192
  "reverse",
193
+ "shading",
193
194
  "snap",
194
195
  "src",
195
196
  "stretch",
196
- "visible"
197
+ "sun-azimuth",
198
+ "sun-elevation",
199
+ "sun-weight",
200
+ "visible",
201
+ "z-factor"
197
202
  ],
198
203
  "ColumnLayer": [
199
204
  "angle",
@@ -690,6 +695,21 @@
690
695
  "visible",
691
696
  "wrap-longitude"
692
697
  ],
698
+ "HillshadeLayer": [
699
+ "blend",
700
+ "clip",
701
+ "decoder",
702
+ "max-zoom",
703
+ "opacity",
704
+ "snap",
705
+ "src",
706
+ "sun-azimuth",
707
+ "sun-elevation",
708
+ "sun-weight",
709
+ "visible",
710
+ "z-factor",
711
+ "zoom-offset"
712
+ ],
693
713
  "IconLayer": [
694
714
  "alpha-cutoff",
695
715
  "auto-highlight",
@@ -1581,12 +1601,17 @@
1581
1601
  "opacity",
1582
1602
  "reverse",
1583
1603
  "select",
1604
+ "shading",
1584
1605
  "snap",
1585
1606
  "spatial-dims",
1586
1607
  "src",
1587
1608
  "stretch",
1609
+ "sun-azimuth",
1610
+ "sun-elevation",
1611
+ "sun-weight",
1588
1612
  "variable",
1589
- "visible"
1613
+ "visible",
1614
+ "z-factor"
1590
1615
  ]
1591
1616
  }
1592
1617
  }