@nika-js/onlymap 0.9.1 → 0.10.0

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 (79) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +26 -2
  3. package/dist/{basemap-DL0mk9Bf.js → basemap-9lXclX9H.js} +3882 -3980
  4. package/dist/cartograph/elements/om-frame.d.ts +67 -1
  5. package/dist/cartograph/georef.d.ts +18 -4
  6. package/dist/cartograph/schema.d.ts +11 -0
  7. package/dist/cartograph.js +1480 -1311
  8. package/dist/cartograph.standalone.js +1808 -1615
  9. package/dist/{cityjson-D_V5GY8b.js → cityjson-k-z1r6c0.js} +1 -1
  10. package/dist/{crs-DsDQ4Q4i.js → crs-BzE_KP4M.js} +25 -2
  11. package/dist/{crs-Ciu7Xs7a.js → crs-ChglCB3O.js} +39 -16
  12. package/dist/elements/om-map.d.ts +10 -0
  13. package/dist/{geoparquet-DJxZA0if.js → geoparquet-DFDZDBun.js} +10 -10
  14. package/dist/globe-view-D9wjfL0T.js +104 -0
  15. package/dist/hillshade-C2BQr6pd.js +298 -0
  16. package/dist/{hillshade-shader-n_zManfZ.js → hillshade-shader-DI2uLSNU.js} +15 -10
  17. package/dist/hillshade-shader.d.ts +18 -2
  18. package/dist/hillshade.d.ts +30 -0
  19. package/dist/{ifc-Dc-TdSJr.js → ifc-DXwePQRv.js} +131 -131
  20. package/dist/{index-CvuDsvnk.js → index-4Tvlt0iO.js} +47 -47
  21. package/dist/{index-BjcPjICh.js → index-Bn66l3KG.js} +59 -59
  22. package/dist/index-BuXrMq5D.js +322 -0
  23. package/dist/index-CNRbZHkK.js +459 -0
  24. package/dist/{index-DdTZSuAb.js → index-CkovmN47.js} +106 -106
  25. package/dist/index-CmuOizAF.js +641 -0
  26. package/dist/index-CvT5QHBS.js +65 -0
  27. package/dist/{index-vLXZuog4.js → index-DnVHKI61.js} +1 -1
  28. package/dist/{index-oY3XHIux.js → index-JjyDEqAS.js} +18178 -16943
  29. package/dist/index.d.ts +4 -0
  30. package/dist/layer-registry.d.ts +27 -0
  31. package/dist/{lerc-Bph62dCb.js → lerc-C1mQ_Kqq.js} +1 -1
  32. package/dist/onlymap.standalone.js +48211 -45574
  33. package/dist/onlymapjs.js +77 -74
  34. package/dist/parse-manifest.d.ts +6 -0
  35. package/dist/plane-camera.d.ts +59 -0
  36. package/dist/plane-layers.d.ts +56 -0
  37. package/dist/plane-tiles.d.ts +99 -0
  38. package/dist/plane-tileset.d.ts +31 -0
  39. package/dist/plane-warp.d.ts +91 -0
  40. package/dist/post-process-effect-DfslKPM6.js +197 -0
  41. package/dist/programmatic.d.ts +16 -1
  42. package/dist/projection.d.ts +118 -0
  43. package/dist/{raster-D-eTzCE3.js → raster-D2NzdjZE.js} +4 -4
  44. package/dist/{raster-pipeline-BlOnMPJe.js → raster-pipeline-qnD1icOv.js} +4 -3
  45. package/dist/runtime-core.d.ts +140 -1
  46. package/dist/serialize/clip.d.ts +50 -0
  47. package/dist/serialize/declutter.d.ts +44 -0
  48. package/dist/serialize/emit.d.ts +60 -0
  49. package/dist/serialize/index.d.ts +64 -0
  50. package/dist/serialize/strategy.d.ts +30 -0
  51. package/dist/serialize/style.d.ts +77 -0
  52. package/dist/snapshot.d.ts +46 -0
  53. package/dist/surface-anchor.d.ts +6 -0
  54. package/dist/text-on-path-Dm7vtNqt.js +146 -0
  55. package/dist/text-on-path.d.ts +157 -0
  56. package/dist/transform/buffer.d.ts +63 -0
  57. package/dist/transform/contour.d.ts +37 -0
  58. package/dist/transform/dot-density.d.ts +19 -0
  59. package/dist/transform/field.d.ts +80 -0
  60. package/dist/transform/geometry.d.ts +20 -0
  61. package/dist/transform/index.d.ts +29 -0
  62. package/dist/transform/simplify.d.ts +10 -0
  63. package/dist/transform/smooth.d.ts +12 -0
  64. package/dist/transform-stage.d.ts +92 -0
  65. package/dist/version.d.ts +1 -1
  66. package/dist/{zarr-BGDoEtFb.js → zarr-D5e5agMG.js} +2 -2
  67. package/docs/cartograph.md +12 -4
  68. package/docs/cartography.md +328 -0
  69. package/docs/design/arrows.md +182 -0
  70. package/docs/design/carto-substrate.md +1055 -0
  71. package/docs/design/extensions.md +250 -0
  72. package/llms.txt +2 -1
  73. package/onlymapjs.attributes.json +18 -0
  74. package/onlymapjs.html-data.json +169 -19
  75. package/package.json +1 -1
  76. package/skills/onlymapjs/SKILL.md +6 -2
  77. package/skills/onlymapjs/references/syntax.md +22 -2
  78. package/dist/hillshade-DR3TxO1a.js +0 -186
  79. package/dist/index-DO_w0tqR.js +0 -514
@@ -0,0 +1,250 @@
1
+ # Layer extensions — design
2
+
3
+ Mounting deck's unused extensions behind curated attributes: **label decluttering**,
4
+ **pattern fills**, **geofence masking**, **parallel offset lines**.
5
+
6
+ **Versions are assigned at release, not here.** An earlier draft of this line pinned
7
+ 0.11.0 and went stale before anything was built; the phases below are independently
8
+ shippable and each lands as a minor while pre-1.0.
9
+
10
+ **Deconflicted with the cartographic substrate** (`carto-substrate.md` §13), which
11
+ touches this design in four places: the rasterise trigger is decided by effect *type*
12
+ rather than by who installed the effect, so `CollisionFilterExtension`'s self-installed
13
+ effect must not force a map frame to rasterise on export (§13.1); the CPU declutter
14
+ pass in the vector serializer and this design's GPU decluttering are two algorithms for
15
+ one job, and the GPU one is authoritative wherever it runs (§13.2); S3's pattern-scale
16
+ question is the same millimetres-on-paper question the substrate asks of geometry, and
17
+ both read one declared reference scale (§13.3); and a mask layer serializes to a
18
+ `<clipPath>`, not to artwork (§13.4). Label candidate positions and leader lines are a
19
+ non-goal here and belong to the placement pass, which owns them for both designs
20
+ (§13.6).
21
+
22
+ Everything below was verified against the pinned deck (**9.3.5**) in `node_modules`,
23
+ not from memory. Sources are cited so the next reader can re-check rather than
24
+ re-litigate.
25
+
26
+ ---
27
+
28
+ ## Verified: what already works in our favour
29
+
30
+ 1. **Every extension carries a static `defaultProps`** in exactly the shape
31
+ `deriveSchemaFromDeckClass` (`src/layer-registry.ts`) already walks —
32
+ `CollisionFilterExtension` declares `getCollisionPriority, collisionEnabled,
33
+ collisionGroup, collisionTestProps`; `FillStyleExtension` seven; `MaskExtension`
34
+ three. Attribute derivation, validation and IntelliSense come along for free.
35
+ 2. **Extension props reach sublayers automatically.** `LayerExtension.getSubLayerProps`
36
+ (deck `lib/layer-extension.js`) forwards every key in the extension's `defaultProps`
37
+ to sublayers, wrapping `type: 'accessor'` props in `getSubLayerAccessor` and
38
+ carrying their update triggers. `getCollisionPriority` therefore reaches
39
+ `TextLayer`'s character sublayers with no plumbing from us.
40
+ 3. **Composite layers propagate `extensions`** (deck `lib/composite-layer.js:126`), and
41
+ `FillStyleExtension.isEnabled` excludes path-tesselator layers — so a
42
+ `GeoJsonLayer`'s polygon sublayer patterns while its line sublayers correctly skip it.
43
+ 4. **Fresh instances every reconcile are free.** `diffExtensions` (deck
44
+ `lifecycle/props.js:201`) compares with `.equals()` — constructor identity plus a
45
+ shallow `opts` compare — so no shader churn. This is already the pattern at
46
+ `src/attribute-resolution.ts:278`, which pushes `new PathStyleExtension({dash:true})`.
47
+ 5. **The aliasing trap is already guarded.** `cloneDefault` exists precisely because
48
+ deck's `extensions: []` default was being shared by reference across every layer of
49
+ a type (see its comment in `src/attribute-resolution.ts`).
50
+ 6. **`operation` is already authorable.** It sits on `Layer.defaultProps` as `'draw'`,
51
+ so the derive walk exposes it — `MaskExtension`'s prerequisite needs no new surface.
52
+
53
+ ## Verified: the surprises
54
+
55
+ These are the reasons this document exists. Each changes the design or the plan.
56
+
57
+ ### S1 — collision installs a map-level Effect by itself
58
+
59
+ `CollisionFilterExtension.initializeState` calls
60
+ `this.context.deck?._addDefaultEffect(new CollisionFilterEffect())`. Deck keeps
61
+ `_defaultEffects` **separate** from `props.effects` and resolves
62
+ `userEffects.concat(defaultEffects)` (`lib/effect-manager.js`), deduping by
63
+ `effect.id` (`'collision-filter-effect'`).
64
+
65
+ Consequences:
66
+ - **No conflict** with `buildEffects()` / `setEffects()` — our array is untouched, and
67
+ repeated layer initialisation cannot accumulate duplicates.
68
+ - **But `setEffects([])` no longer means "no effects".** `docs/effects.md` currently
69
+ says `[]` "renders no effects at all"; with a decluttering layer present a
70
+ collision effect still runs. The sentence needs qualifying, and a test should pin it.
71
+ - The collision effect declares `useInPicking: true`, and the extension's
72
+ `getNeedsPickingBuffer()` returns true whenever collision is on — so label layers
73
+ allocate picking buffers whether or not they are `pickable`.
74
+
75
+ ### S2 — decluttering is resolution-dependent, and capture changes the resolution
76
+
77
+ `collision-filter-effect.js` sizes its framebuffer from
78
+ `device.canvasContext.getPixelSize()` divided by a hardcoded `DOWNSCALE = 2`. Our
79
+ capture path sets `useDevicePixels: ratio` (`src/runtime-core.ts:1394`), which is
80
+ exactly what `getPixelSize()` reports.
81
+
82
+ So a label of *w* CSS pixels occupies `w·r/2` collision-map pixels: **half a pixel per
83
+ CSS pixel at r=1, two at r=4**. The rasterised footprints that decide overlap are
84
+ four times finer on a 300 dpi plate than on screen, so **the print can keep labels the
85
+ preview dropped**. Same family as the pixel-keyed grain bug `<om-effect>` fixed with
86
+ millimetres, and it must be measured before the API is designed around it — see
87
+ Phase 0. `DOWNSCALE` is not configurable from outside deck.
88
+
89
+ ### S3 — fill patterns are glued to the ground, not to the paper
90
+
91
+ The pattern shader sets `fill_uv = geometry.position.xy` in **common space**, and
92
+ deck documents `getFillPatternScale`: *"If the pattern is 24 x 24 pixels, scale 1
93
+ roughly yields 24 **meters**."* Patterns are anchored in world coordinates and grow
94
+ on the screen as you zoom in.
95
+
96
+ That is the opposite of the contract `<om-effect>` established, where every spatial
97
+ knob is millimetres on paper and survives a change of resolution. A paper-constant
98
+ hachure therefore needs `getFillPatternScale` **derived from the current zoom and the
99
+ sheet scale**, not authored as a constant. This is a design decision, not a defect —
100
+ but authoring raw metres would produce a pattern that silently changes size between
101
+ the screen and the sheet.
102
+
103
+ ### S4 — only one of the three takes constructor options
104
+
105
+ `new FillStyleExtension({pattern: true})` — and `pattern` defaults to **false**, so an
106
+ extension mounted without opts silently does nothing. `CollisionFilterExtension` and
107
+ `MaskExtension` take no options at all (verified: constructor arity 0, `opts`
108
+ undefined).
109
+
110
+ Constructor options are **not** in `defaultProps`, so they are invisible to the derive
111
+ walk. This is the concrete gap that a generic `<om-extension>` passthrough would have
112
+ to solve, and the reason the curated route goes first.
113
+
114
+ ### S5 — two object-typed props derive as strings
115
+
116
+ The derive walk maps a spec with no `type` key, or `type: 'object'`, to
117
+ `coerceType = "string"`. That mis-types exactly two props we need:
118
+ `collisionTestProps` (`{}`, no `type`) and `fillPatternMapping` (`{type: 'object'}`).
119
+
120
+ Fix with **curated overrides**, not by widening the walk: making plain-object defaults
121
+ derive as `json` would silently reclassify props across every bundled layer type.
122
+
123
+ ### S6 — a mask layer is invisible but not `visible: false`
124
+
125
+ Masks cap at four (`mask-effect.js`: *"Too many mask layers. The max supported is 4"*).
126
+ More importantly, a mask layer carries `operation: "mask"` and draws nothing, yet its
127
+ `visible` stays `true` — and `src/cartograph/legend.ts:106` skips entries only on
128
+ `visible === false`. **A mask would appear in the printed legend and in the layers
129
+ widget as a togglable entry.** Both need an `operation` check.
130
+
131
+ ### S7 — collision and mask are coupled inside deck
132
+
133
+ `collision-filter-effect.js` reads `preRenderStats['mask-effect']?.didRender` to decide
134
+ whether to re-run, beside deck's own comment: *"TODO: better dependency system for
135
+ Effects"*. Shipping both lands on that seam, so they should not ship in the same phase.
136
+
137
+ ### S8 — the pattern atlas is an async fetch
138
+
139
+ `fillPatternAtlas` is an async image prop and `fillPatternMapping` an async object.
140
+ A standalone cartograph is one file that opens by double-click with no server, so a
141
+ shipped atlas must inline as a `data:` URI or patterns vanish offline.
142
+
143
+ ---
144
+
145
+ ## Decisions these facts settle
146
+
147
+ - **Curated attributes, not a generic passthrough** — unchanged, and S4 is the
148
+ concrete reason. Implement each by merging the extension's *derived* schema rather
149
+ than hand-listing props (fact 1), so the machinery a future `<om-extension>` needs
150
+ gets built as a side effect and the passthrough stays a separate, later decision.
151
+ - **Collision and mask ship in different phases** (S7).
152
+ - **Patterns are authored in millimetres on paper**, with the world-space scale derived
153
+ (S3) — consistent with `<om-effect>`.
154
+ - **Phase 0 exists** because S2 could change the API: if decluttering diverges between
155
+ preview and plate, that is a contract problem, not a polish item.
156
+
157
+ ## Phases
158
+
159
+ ### Phase 0 — measure, before any API (half a day)
160
+
161
+ Answer three questions with a real GPU, not reasoning:
162
+
163
+ 1. **Capture divergence (S2).** Render a dense label set, count survivors at
164
+ `useDevicePixels` 1, 2 and 4. If the set differs, decide the mitigation *now*:
165
+ document it, or render the preview at the capture ratio, or expose the ratio a
166
+ sheet was designed at.
167
+ 2. **World copies.** The effect tests `viewports[0]` only; check labels in repeated
168
+ world copies (`repeat: true`) near the antimeridian — the seam that bit us before.
169
+ 3. **Cost.** Picking-buffer allocation (S1) on a large label layer, measured.
170
+
171
+ Deliverable: numbers in this document, and a go/no-go on the collision API shape.
172
+
173
+ ### Phase 1 — the extension seam + decluttering
174
+
175
+ The seam: declare an extension on a layer, merge its derived schema into that layer's
176
+ prop surface, mount the instance through the `cloneDefault`-guarded `extensions` array.
177
+ Curated overrides for `collisionTestProps` (S5).
178
+
179
+ Authoring: a `declutter` attribute plus `get-label-priority`. `collisionTestProps`
180
+ should default to the documented sizing bump rather than being left to the author —
181
+ the prop exists so a label reserves more room than it draws, and getting it wrong
182
+ looks like "decluttering doesn't work" rather than an error.
183
+
184
+ Validation: `get-label-priority` without `declutter` is silently inert — an error with
185
+ a fix string, in the `<om-effect>` validator's idiom.
186
+
187
+ Docs: qualify the `setEffects([])` sentence in `docs/effects.md` (S1).
188
+
189
+ ### Phase 2 — masking
190
+
191
+ `mask="<layer-id>"` plus `mask-inverted`. Requires the `operation` fix in
192
+ `src/cartograph/legend.ts` and the layers widget (S6), and a structured error when
193
+ `maskId` names a layer that is missing or not `operation="mask"` — deck silently
194
+ disables masking in both cases. Validate the four-mask cap with a real message.
195
+
196
+ Visual targets: relief clipped to land at the coastline; a study area at full
197
+ saturation with everything outside knocked back.
198
+
199
+ ### Phase 3 — pattern fills
200
+
201
+ `new FillStyleExtension({pattern: true})` (S4), a shipped monochrome atlas —
202
+ hachures, dot screens, cross-hatch, stipple — inlined as a `data:` URI (S8), with
203
+ `fillPatternMask` left at its default so each feature's own fill colour tints the
204
+ texture. `fill-pattern="hachure-45"` names an entry; `fill-pattern-size="1.5mm"`
205
+ resolves to `getFillPatternScale` against the current zoom (S3).
206
+
207
+ This phase has a design cost the others don't: someone has to draw the atlas, and it
208
+ is the thing that most changes how a sheet looks.
209
+
210
+ Pairs with the cartograph's colour-vision lint, which can currently only report that
211
+ two categories are indistinguishable — patterns are the fix it has no way to suggest.
212
+
213
+ ### Phase 4 — offset lines
214
+
215
+ `get-offset` on the already-mounted `PathStyleExtension` (only `dash` and
216
+ `dash-justified` are exposed today, `src/attribute-resolution.ts:117`). Road casings,
217
+ divided carriageways, boundaries drawn inside the line. Cheapest phase by a wide margin.
218
+
219
+ ### Phase 5 — surfaces and release
220
+
221
+ Example pages, `docs/`, README, skill + `llms.txt`, `html-data.ts` regeneration,
222
+ `dev/build-public.ts` + `npm run test:public`, architecture traceability, CHANGELOG,
223
+ downstream pins.
224
+
225
+ ## Acceptance criteria
226
+
227
+ - [ ] Dense labels declutter by authored priority, and the survivor set at capture
228
+ resolution is either identical to the preview or the difference is documented
229
+ with a stated mitigation (Phase 0).
230
+ - [ ] A layer masked to another's geometry clips at the boundary; the mask layer
231
+ appears in neither the derived legend nor the layers widget.
232
+ - [ ] A pattern fill holds the same **paper** size across a zoom change and a
233
+ 300 dpi capture.
234
+ - [ ] Patterns survive in a standalone cartograph opened offline.
235
+ - [ ] Extension props are authored through derived schemas, not hand-listed — adding a
236
+ future extension is a registration, not a port.
237
+ - [ ] Every silently-inert combination reports a validator error with a fix.
238
+ - [ ] Bundle: eager growth measured and stated (`@deck.gl/extensions` is already in the
239
+ eager graph via `attribute-resolution.ts`, so this is tree-shake delta, not a new
240
+ dependency).
241
+
242
+ ## Non-goals
243
+
244
+ - **A generic `<om-extension>` passthrough** — a separate decision, deliberately left
245
+ open; S4 is the work it would have to do first.
246
+ - **Label candidate positions and leader lines** — real cartographic wins, but placement
247
+ logic, not extension work. Follow-up.
248
+ - **Text on a curve** — a composite layer placing per-glyph `TextLayer` entries along a
249
+ path. Feasible in deck; unrelated to this ticket.
250
+ - **`BrushingExtension`** — an interaction effect with no print equivalent.
package/llms.txt CHANGED
@@ -36,6 +36,7 @@ Programmatic/native bridge rule: `MapController.setLayers()` accepts normal func
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
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.
39
+ - CARTOGRAPHY (projections, geometry transforms, vector export): `crs="EPSG:5070"` on `<om-map>` puts the WHOLE renderer in that projection's plane — parallels curve, an equal-area projection is genuinely equal-area. Web Mercator and plate carree need nothing; national grids and UTM zones resolve through proj4, loaded only when a map asks; anything else takes `crs-def="+proj=…"` or `OmMap.registerCrs(code, defOrFunctions)`. THE AUTHORED CAMERA STAYS GEOGRAPHIC: `center` is lng/lat and `zoom` means what it always meant, so stories, `seek()` and `getCamera()` are unchanged, and clicks report lng/lat rather than plane metres (a projected metre in a geodesic formula returns a confident wrong distance). Limits are validation ERRORS with fixes, never silent no-ops: no MapLibre basemap (use `basemap="none"`), no `terrain`, no `pitch`/`bearing` (the view is planimetric), no H3/S2/geohash/quadkey layers (deck builds their geometry from a token, inside the layer — convert the cells to polygons), and the CRS is fixed for the map's life. RELIEF WORKS on a projected sheet both ways: a DEM of your own has no projection tie, and the keyless `HillshadeLayer` re-indexes its Mercator tiles from the plane's own geography and draws them as subdivided warped meshes (sub-pixel — 0.40 output px for Albers at z=3, falling as 1/N^2). `sun-datum="sheet"` (default) keeps apparent light constant across the plate; `"geographic"` is physically true; the swing is 34 degrees across a CONUS sheet and the attribute is inert in Mercator (the validator says so). GEOMETRY TRANSFORMS: `<om-transform type="simplify|smooth|dot-density|buffer|contour">` as CHILDREN of an `<om-layer>`, applied in document order, in the DATA stage — so deck, `anchor="surface"`, the legend and the vector exporter all see the same geometry. Spatial knobs are MILLIMETRES ON PAPER resolved against a declared `reference-scale="1:50000"` (a cartograph frame supplies its own); a millimetre with no scale is an error naming the fix, because geometry runs once at ingest and cannot be re-resolved per frame the way an effect's uniforms can. Ground units (`tolerance="50m"`) need no scale. `simplify` is Douglas-Peucker measured on the GROUND, not in degrees. `smooth` is Chaikin, 1 pass removes the straight-segment look. `dot-density field="population" per="1000"` is seeded, so a recorded story and a live map place the same dots. `buffer distance="0.9mm" repeat="5" fade` is the engraved shoreline of an old chart: N bands are N thresholds of ONE signed distance field, so five cost what one costs and the output CANNOT self-intersect (no polygon arithmetic ever happens); each band carries `_band` and `_bandOpacity`, outermost first. It is an ORNAMENT with a measured half-cell bound (0.042mm at 300dpi), NOT an analytic setback — asking for the latter is an error naming PostGIS. `contour src="terrarium" bounds="[w,s,e,n]" interval="100m"` marches isolines off a DEM (not deck's ContourLayer, which contours point density); it SOURCES geometry onto a layer with no data, its extent is DECLARED rather than taken from the camera, each line carries `elevation` and `index` (true every fifth line), and the interval is a ground height — `interval="2mm"` is an error. Columnar layers are out of scope and say so. VECTOR EXPORT: `await map.snapshot({format: "svg"})` returns SVG TEXT (`as:"blob"` for a file) — polygons/paths as `<path>`, labels as real `<text>` after a deterministic CPU decluttering pass, and anything whose appearance is pixels as a placed raster `<image>`; consecutive raster layers merge into one band and a vector layer between them keeps them apart. A print finish treats the FINISHED frame, so a sheet carrying one exports as a single band at `effectDpi` (default 600, changes the band's pixel dimensions not its scaling) and reports it through `onNotice`; a decluttering layer does NOT trigger that (the test is a real post-process pass, not "deck has effects"). FREEZE: `await frame.freeze({format: "svg"})` turns a cartograph frame static with an inline `<svg>`, placed by the same `crs`+`corners` — a frozen sheet opens with no runtime, no network and nothing defining its custom elements. Deep reference: docs/cartography.md.
39
40
  - 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.
40
41
  - 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`).
41
42
  - `<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.
@@ -72,7 +73,7 @@ If the target is an Expo/React Native MOBILE app, use the separate `@nika-js/onl
72
73
  ## Docs
73
74
 
74
75
  - [README](README.md): thesis, authoring overview, build/run commands
75
- - [Docs](docs/): consumer guides for testing, live data, stories, routing & tracking, React, and 3D assets
76
+ - [Docs](docs/): consumer guides for testing, live data, stories, routing & tracking, React, 3D assets, shaded relief, and cartography (projections, geometry transforms, vector export)
76
77
  - [Examples](examples/index.html): complete reviewed manifests covering widgets, overlays, basemaps, columnar data, drawing, 3D, stories, and live-data patterns
77
78
 
78
79
  ## Verification loop
@@ -704,6 +704,7 @@
704
704
  "snap",
705
705
  "src",
706
706
  "sun-azimuth",
707
+ "sun-datum",
707
708
  "sun-elevation",
708
709
  "sun-weight",
709
710
  "visible",
@@ -1443,6 +1444,23 @@
1443
1444
  "word-break",
1444
1445
  "wrap-longitude"
1445
1446
  ],
1447
+ "TextOnPathLayer": [
1448
+ "clip",
1449
+ "color",
1450
+ "font-family",
1451
+ "font-weight",
1452
+ "get-color",
1453
+ "get-path",
1454
+ "get-size",
1455
+ "get-text",
1456
+ "letter-spacing",
1457
+ "max-labels",
1458
+ "offset",
1459
+ "opacity",
1460
+ "placement",
1461
+ "snap",
1462
+ "visible"
1463
+ ],
1446
1464
  "Tile3DLayer": [
1447
1465
  "auto-highlight",
1448
1466
  "clip",
@@ -29,6 +29,10 @@
29
29
  "name": "min-zoom",
30
30
  "description": "Floor how far the user can zoom OUT. Applied to the controller, so a zoom-out past it is refused rather than clamped back. Absent = the renderer's default (0)."
31
31
  },
32
+ {
33
+ "name": "reference-scale",
34
+ "description": "The scale millimetre-authored <om-transform> knobs resolve against — \"1:50000\", or the ground metres one millimetre of paper stands for (\"50m\"). A cartograph frame supplies its own; a live map has no sheet to ask, so millimetre knobs are a validation error without this."
35
+ },
32
36
  {
33
37
  "name": "basemap",
34
38
  "description": "Basemap: a registered preset name, \"maplibre\" (demo style), a style URL, or \"none\" (standalone canvas).",
@@ -579,6 +583,9 @@
579
583
  {
580
584
  "name": "TextLayer"
581
585
  },
586
+ {
587
+ "name": "TextOnPathLayer"
588
+ },
582
589
  {
583
590
  "name": "Tile3DLayer"
584
591
  },
@@ -1056,7 +1063,7 @@
1056
1063
  },
1057
1064
  {
1058
1065
  "name": "get-text",
1059
- "description": "Accessor for deck.gl getText — expression language: $field, scale(), formatDate(), arithmetic. Valid on: GeoJsonLayer, MVTLayer, PopupLayer, TextLayer."
1066
+ "description": "Accessor for deck.gl getText — expression language: $field, scale(), formatDate(), arithmetic. Valid on: GeoJsonLayer, MVTLayer, PopupLayer, TextLayer, TextOnPathLayer."
1060
1067
  },
1061
1068
  {
1062
1069
  "name": "get-text-angle",
@@ -1136,11 +1143,11 @@
1136
1143
  },
1137
1144
  {
1138
1145
  "name": "get-color",
1139
- "description": "Accessor for deck.gl getColor — expression language: $field, scale(), formatDate(), arithmetic. Valid on: IconLayer, LineLayer, PathLayer, PointCloudLayer, PopupLayer, ScenegraphLayer, SimpleMeshLayer, TextLayer, TripsLayer."
1146
+ "description": "Accessor for deck.gl getColor — expression language: $field, scale(), formatDate(), arithmetic. Valid on: IconLayer, LineLayer, PathLayer, PointCloudLayer, PopupLayer, ScenegraphLayer, SimpleMeshLayer, TextLayer, TextOnPathLayer, TripsLayer."
1140
1147
  },
1141
1148
  {
1142
1149
  "name": "get-size",
1143
- "description": "Accessor for deck.gl getSize — expression language: $field, scale(), formatDate(), arithmetic. Valid on: IconLayer, PopupLayer, TextLayer."
1150
+ "description": "Accessor for deck.gl getSize — expression language: $field, scale(), formatDate(), arithmetic. Valid on: IconLayer, PopupLayer, TextLayer, TextOnPathLayer."
1144
1151
  },
1145
1152
  {
1146
1153
  "name": "layout",
@@ -1458,6 +1465,10 @@
1458
1465
  "name": "decoder",
1459
1466
  "description": "deck.gl decoder. Valid on: HillshadeLayer."
1460
1467
  },
1468
+ {
1469
+ "name": "sun-datum",
1470
+ "description": "deck.gl sunDatum. Valid on: HillshadeLayer."
1471
+ },
1461
1472
  {
1462
1473
  "name": "blend",
1463
1474
  "description": "deck.gl blend. Valid on: HillshadeLayer."
@@ -1466,6 +1477,34 @@
1466
1477
  "name": "zoom-offset",
1467
1478
  "description": "deck.gl zoomOffset. Valid on: HillshadeLayer, MVTLayer, TerrainLayer, TileLayer."
1468
1479
  },
1480
+ {
1481
+ "name": "get-path",
1482
+ "description": "Accessor for deck.gl getPath — expression language: $field, scale(), formatDate(), arithmetic. Valid on: PathLayer, TextOnPathLayer, TripsLayer."
1483
+ },
1484
+ {
1485
+ "name": "font-family",
1486
+ "description": "deck.gl fontFamily. Valid on: TextLayer, TextOnPathLayer."
1487
+ },
1488
+ {
1489
+ "name": "font-weight",
1490
+ "description": "deck.gl fontWeight. Valid on: TextLayer, TextOnPathLayer."
1491
+ },
1492
+ {
1493
+ "name": "letter-spacing",
1494
+ "description": "deck.gl letterSpacing. Valid on: TextOnPathLayer."
1495
+ },
1496
+ {
1497
+ "name": "offset",
1498
+ "description": "deck.gl offset. Valid on: ColumnLayer, GridCellLayer, TextOnPathLayer."
1499
+ },
1500
+ {
1501
+ "name": "placement",
1502
+ "description": "deck.gl placement. Valid on: TextOnPathLayer."
1503
+ },
1504
+ {
1505
+ "name": "max-labels",
1506
+ "description": "deck.gl maxLabels. Valid on: TextOnPathLayer."
1507
+ },
1469
1508
  {
1470
1509
  "name": "get-source-position",
1471
1510
  "description": "Accessor for deck.gl getSourcePosition — expression language: $field, scale(), formatDate(), arithmetic. Valid on: ArcLayer, GreatCircleLayer, LineLayer."
@@ -1534,10 +1573,6 @@
1534
1573
  "name": "angle",
1535
1574
  "description": "deck.gl angle. Valid on: ColumnLayer, GridCellLayer."
1536
1575
  },
1537
- {
1538
- "name": "offset",
1539
- "description": "deck.gl offset. Valid on: ColumnLayer, GridCellLayer."
1540
- },
1541
1576
  {
1542
1577
  "name": "coverage",
1543
1578
  "description": "deck.gl coverage. Valid on: ColumnLayer, GridCellLayer, GridLayer, H3HexagonLayer, HexagonLayer."
@@ -1582,10 +1617,6 @@
1582
1617
  "name": "_path-type",
1583
1618
  "description": "deck.gl _pathType. Valid on: PathLayer, TripsLayer."
1584
1619
  },
1585
- {
1586
- "name": "get-path",
1587
- "description": "Accessor for deck.gl getPath — expression language: $field, scale(), formatDate(), arithmetic. Valid on: PathLayer, TripsLayer."
1588
- },
1589
1620
  {
1590
1621
  "name": "get-normal",
1591
1622
  "description": "Accessor for deck.gl getNormal — expression language: $field, scale(), formatDate(), arithmetic. Valid on: PointCloudLayer."
@@ -1626,14 +1657,6 @@
1626
1657
  "name": "character-set",
1627
1658
  "description": "deck.gl characterSet. Valid on: TextLayer."
1628
1659
  },
1629
- {
1630
- "name": "font-family",
1631
- "description": "deck.gl fontFamily. Valid on: TextLayer."
1632
- },
1633
- {
1634
- "name": "font-weight",
1635
- "description": "deck.gl fontWeight. Valid on: TextLayer."
1636
- },
1637
1660
  {
1638
1661
  "name": "line-height",
1639
1662
  "description": "deck.gl lineHeight. Valid on: TextLayer."
@@ -1928,6 +1951,133 @@
1928
1951
  }
1929
1952
  ]
1930
1953
  },
1954
+ {
1955
+ "name": "om-transform",
1956
+ "description": "A geometry transform on its parent <om-layer>'s line or polygon data — geometry the source doesn't contain. Runs in the data stage, so deck, anchor=\"surface\", the legend and the vector export all see the same shape. Document order is chain order. Spatial knobs are millimetres on paper, resolved against <om-map reference-scale>; ground units (m, km, ft) need no scale.",
1957
+ "attributes": [
1958
+ {
1959
+ "name": "type",
1960
+ "description": "Which transform.",
1961
+ "values": [
1962
+ {
1963
+ "name": "simplify"
1964
+ },
1965
+ {
1966
+ "name": "smooth"
1967
+ },
1968
+ {
1969
+ "name": "dot-density"
1970
+ },
1971
+ {
1972
+ "name": "buffer"
1973
+ },
1974
+ {
1975
+ "name": "contour"
1976
+ }
1977
+ ]
1978
+ },
1979
+ {
1980
+ "name": "tolerance",
1981
+ "description": "simplify: Douglas-Peucker tolerance, e.g. \"0.15mm\" (paper) or \"50m\" (ground). No vertex moves further than this."
1982
+ },
1983
+ {
1984
+ "name": "iterations",
1985
+ "description": "smooth: Chaikin corner-cutting passes, 0-6. One removes the straight-segment look; past three the shape stops being the shape.",
1986
+ "values": [
1987
+ {
1988
+ "name": "1"
1989
+ },
1990
+ {
1991
+ "name": "2"
1992
+ },
1993
+ {
1994
+ "name": "3"
1995
+ }
1996
+ ]
1997
+ },
1998
+ {
1999
+ "name": "distance",
2000
+ "description": "buffer: band width, e.g. \"1.2mm\" (paper) or \"500m\" (ground). Negative buffers inward. A cartographic ornament — grid-accurate, not an exact setback."
2001
+ },
2002
+ {
2003
+ "name": "repeat",
2004
+ "description": "buffer: how many bands, 1-12. Each is another threshold of ONE distance field, so five bands cost no more than one. Five with fade is the engraved shoreline of an old chart."
2005
+ },
2006
+ {
2007
+ "name": "fade",
2008
+ "description": "buffer: fade the bands' opacity outward, as a _bandOpacity property each feature carries. Needs repeat> 1."
2009
+ },
2010
+ {
2011
+ "name": "quality",
2012
+ "description": "buffer: cells across one band width (default 8). The whole error budget is one cell; raising it costs memory quadratically for accuracy linearly."
2013
+ },
2014
+ {
2015
+ "name": "letter-spacing",
2016
+ "description": "TextOnPathLayer: extra tracking between glyphs, in pixels. Letter-spaced names are a cartographic convention — an ocean or a range is conventionally tracked out across its own extent."
2017
+ },
2018
+ {
2019
+ "name": "placement",
2020
+ "description": "TextOnPathLayer: where along the line the label sits.",
2021
+ "values": [
2022
+ {
2023
+ "name": "start"
2024
+ },
2025
+ {
2026
+ "name": "middle"
2027
+ },
2028
+ {
2029
+ "name": "end"
2030
+ }
2031
+ ]
2032
+ },
2033
+ {
2034
+ "name": "max-labels",
2035
+ "description": "TextOnPathLayer: ceiling on emitted glyphs, so one enormous label set cannot wedge a frame."
2036
+ },
2037
+ {
2038
+ "name": "src",
2039
+ "description": "contour: DEM source — a terrain preset (\"terrarium\") or a {z}/{x}/{y} template."
2040
+ },
2041
+ {
2042
+ "name": "bounds",
2043
+ "description": "contour: the extent to contour, \"[west,south,east,north]\". DECLARED, not taken from the camera — a transform runs once at ingest, and a camera changes on every pan."
2044
+ },
2045
+ {
2046
+ "name": "interval",
2047
+ "description": "contour: vertical spacing between lines, e.g. \"100m\". A ground height, never paper millimetres — an elevation is not on the page."
2048
+ },
2049
+ {
2050
+ "name": "zoom",
2051
+ "description": "contour: DEM tile zoom (default 10). Higher is sharper and quadratically more tiles."
2052
+ },
2053
+ {
2054
+ "name": "decoder",
2055
+ "description": "contour: elevation encoding for a raw tile URL — \"terrarium\" or \"mapbox-rgb\". Implied by a preset."
2056
+ },
2057
+ {
2058
+ "name": "field",
2059
+ "description": "dot-density: the row property holding the count to scatter."
2060
+ },
2061
+ {
2062
+ "name": "per",
2063
+ "description": "dot-density: units of that field per dot, e.g. per=\"1000\" for one dot per thousand people."
2064
+ },
2065
+ {
2066
+ "name": "seed",
2067
+ "description": "dot-density: scatter seed. Fixed by default, so a recorded story and a live map place the same dots."
2068
+ },
2069
+ {
2070
+ "name": "max",
2071
+ "description": "dot-density: ceiling on dots per feature (default 20000), so one bad row cannot emit a million points."
2072
+ }
2073
+ ],
2074
+ "references": [
2075
+ {
2076
+ "name": "README",
2077
+ "url": "https://github.com/NikaGeospatial/onlymapjs/blob/main/README.md"
2078
+ }
2079
+ ]
2080
+ },
1931
2081
  {
1932
2082
  "name": "om-overlay",
1933
2083
  "description": "Rich HTML anchored to the map: a static coordinate, the current selection, or a feature's own geometry.",