@nika-js/onlymap 0.10.2 → 0.10.4

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 (31) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{basemap-tBj0LERd.js → basemap-CEk-fwwQ.js} +2 -2
  3. package/dist/{geoparquet-CBJW5XwY.js → geoparquet-aBafoHei.js} +1 -1
  4. package/dist/{globe-view-3AKRpYIV.js → globe-view-CPzn74yH.js} +1 -1
  5. package/dist/{hillshade-CN9mKpQa.js → hillshade-fonIyeOe.js} +1 -1
  6. package/dist/html-data.d.ts +4 -3
  7. package/dist/{index-BeJbVyAr.js → index-6uyOjvvx.js} +1 -1
  8. package/dist/{index-CEmaQNfr.js → index-BOXzqzVq.js} +1 -1
  9. package/dist/{index-DwrJ4Tco.js → index-BYOHopZU.js} +1 -1
  10. package/dist/{index-UaAM3SbL.js → index-BlwNB2Fo.js} +3 -3
  11. package/dist/{index-CgaBNCVC.js → index-CIiSsOZG.js} +1 -1
  12. package/dist/{index-BFfQG-Ht.js → index-CW9LiA0Z.js} +2 -2
  13. package/dist/{index-vkIEL1Jf.js → index-FP1-ImsV.js} +3 -3
  14. package/dist/{index-6t601Plg.js → index-XlX-ORox.js} +8713 -8648
  15. package/dist/{index-C5K9K8Fz.js → index-irwJUTjX.js} +1 -1
  16. package/dist/{lerc-D9aqC4Y4.js → lerc-B_m7L7RH.js} +1 -1
  17. package/dist/onlymap.standalone.js +14452 -14387
  18. package/dist/onlymapjs.js +1 -1
  19. package/dist/plane-layers.d.ts +22 -0
  20. package/dist/{post-process-effect-qnYbdo-D.js → post-process-effect-D-uTiLdK.js} +1 -1
  21. package/dist/{raster-cox_VW7j.js → raster-D3o26cuQ.js} +3 -3
  22. package/dist/{raster-pipeline-CB5CLYy-.js → raster-pipeline-1u0HyuNs.js} +1 -1
  23. package/dist/{text-on-path-C3pSnfna.js → text-on-path-DCS_Eg0_.js} +1 -1
  24. package/dist/version.d.ts +1 -1
  25. package/dist/widget-types.d.ts +15 -0
  26. package/dist/{zarr-0zMHITia.js → zarr-CVVmWsbf.js} +2 -2
  27. package/docs/cartograph.md +2 -2
  28. package/llms.txt +1 -1
  29. package/package.json +1 -1
  30. package/skills/onlymapjs/SKILL.md +1 -1
  31. package/skills/onlymapjs/references/syntax.md +3 -2
package/CHANGELOG.md CHANGED
@@ -8,6 +8,19 @@ Note: npm collapsed a few closely-spaced releases — the GPX/FlatGeobuf (0.5.4)
8
8
  and GeoParquet (0.5.5) work shipped to npm together as **0.5.6**, so npm's
9
9
  version list jumps 0.5.3 → 0.5.6. Each logical version is listed here regardless.
10
10
 
11
+ ## 0.10.4 — 2026-09-25
12
+
13
+ ### Fixed
14
+ - **Labels and lines on a projected map land where their data says.** On a map with a `crs`, a layer that read coordinates through an accessor over GeoJSON — `get-path="d.geometry.coordinates"`, the documented way to run a river's name along the river — had those coordinates converted into the projection **twice**. The Mississippi's first vertex came out 12 000 km west and 19 900 km north of where it belongs, so labels sprawled across the sheet while the land drawn from the very same file sat correctly. Only projected maps were affected, and only when the data was GeoJSON: the same layer over flat rows was always right, which is why the library's own atlas plate never showed it.
15
+
16
+ ## 0.10.3 — 2026-09-25
17
+
18
+ ### Fixed
19
+ - **Three authoring mistakes that used to pass validation and then draw nothing.** A generated map can now be told what is wrong with it instead of quietly rendering the wrong picture:
20
+ - **Labels along a line, on GeoJSON data.** `get-path` has to resolve to a list of coordinates. On GeoJSON that is `get-path="d.geometry.coordinates"`; writing `get-path="$geometry"` hands the layer the geometry object instead and every label vanishes. This is now an error when the data is inline, a warning when it is a URL (the shape cannot be known until it loads), and both name the form that works. It is also documented now, which it was not on any surface.
21
+ - **A millimetre stroke width.** `line-width-units="millimeters"` reads like a cartographer's unit but is not one — there are only `meters`, `pixels` and `common`, so widths silently fell back. Now an error that says which to pick. (Millimetres on paper remain correct for `<om-transform>`, which has a reference scale to resolve them against.)
22
+ - **A widget type that does not exist.** A misspelled or invented `type` rendered nothing at all and said nothing. Now an error listing the real types — and pointing out that a north arrow, scale bar, legend frame or graticule on a print sheet is a cartograph element, not a map widget.
23
+
11
24
  ## 0.10.2 — 2026-09-25
12
25
 
13
26
  ### Fixed
@@ -1,5 +1,5 @@
1
- import { aJ as Y_, N as Bu, H as Pd, k as K_, aK as J_, aL as Q_, D as Xf, Z as ey } from "./index-6t601Plg.js";
2
- import { a as ty } from "./globe-view-3AKRpYIV.js";
1
+ import { aJ as Y_, N as Bu, H as Pd, k as K_, aK as J_, aL as Q_, D as Xf, Z as ey } from "./index-XlX-ORox.js";
2
+ import { a as ty } from "./globe-view-CPzn74yH.js";
3
3
  var Ou = { exports: {} };
4
4
  /**
5
5
  * MapLibre GL JS
@@ -1,4 +1,4 @@
1
- import { a4 as p, a5 as d } from "./index-6t601Plg.js";
1
+ import { a4 as p, a5 as d } from "./index-XlX-ORox.js";
2
2
  function g(t) {
3
3
  if (t == null) return !0;
4
4
  const e = t, n = e.id?.code;
@@ -1,4 +1,4 @@
1
- import { d as L, j as x, a6 as A, a7 as E, a8 as d, a9 as h, aa as u, ab as z, p as V, W as Z, G as D } from "./index-6t601Plg.js";
1
+ import { d as L, j as x, a6 as A, a7 as E, a8 as d, a9 as h, aa as u, ab as z, p as V, W as Z, G as D } from "./index-XlX-ORox.js";
2
2
  const c = Math.PI / 180, G = 180 / Math.PI;
3
3
  function w(l, t = 0) {
4
4
  const a = Math.min(180, l) * c;
@@ -1,4 +1,4 @@
1
- import { al as P, am as T, an as N, ao as Z, c as B, ap as E, aq as C, ar as b, as as D, at as I, au as O } from "./index-6t601Plg.js";
1
+ import { al as P, am as T, an as N, ao as Z, c as B, ap as E, aq as C, ar as b, as as D, at as I, au as O } from "./index-XlX-ORox.js";
2
2
  import { N as _, c as H } from "./hillshade-apron-Bem3DWyJ.js";
3
3
  import { p as $, h as j, m as A, a as U } from "./hillshade-shader-DI2uLSNU.js";
4
4
  function R(t, e, o) {
@@ -16,8 +16,10 @@ interface TagData {
16
16
  }
17
17
  /** Hand-authored action list — validated against hasAction() in html-data.test.ts. */
18
18
  export declare const BUILTIN_ACTIONS: readonly ["toggle-layer", "set-pickable", "zoom-in", "zoom-out", "filter-layer", "highlight-feature", "fade", "pulse", "populate", "trace", "story-play", "story-pause", "story-seek", "fly-to", "zoom-to-feature", "show-overlay", "hide-overlay", "show-tooltip", "hide-tooltip", "draw-mode", "draw-commit", "draw-cancel", "draw-delete", "draw-clear", "draw-config", "draw-save", "export-region-3d", "measure-mode", "measure-clear", "measure-units", "set-basemap", "set-effect", "set-lighting", "set-terrain", "set-clip-box", "clip-box-edit", "set-widgets-visible", "undo", "redo", "warm-tiles"];
19
- /** Hand-authored widget types — validated against the widget registry in html-data.test.ts. */
20
- export declare const BUILTIN_WIDGETS: readonly ["legend", "layer-switcher", "zoom-controls", "scale-bar", "attribution", "filter", "vega-lite", "dynamic-chart", "player", "draw", "measure", "basemap-switcher", "lighting", "effects", "clip-box", "undo-redo", "widgets-toggle", "time-slider", "ifc-browser", "ifc-legend", "feature-inspector", "ifc-inspector", "ifc-loader", "ifc-clash"];
19
+ /** Hand-authored widget types — validated against the widget registry in html-data.test.ts.
20
+ * Declared in `widget-types.ts` so the runtime validator can use it without
21
+ * pulling this 42 KB table into the bundle. */
22
+ export { BUILTIN_WIDGETS } from "./widget-types";
21
23
  export declare function buildHtmlCustomData(): {
22
24
  version: number;
23
25
  tags: TagData[];
@@ -36,4 +38,3 @@ export declare function buildLayerAttributeContract(): {
36
38
  universal: string[];
37
39
  layers: Record<string, string[]>;
38
40
  };
39
- export {};
@@ -1,4 +1,4 @@
1
- import { aB as tt, aC as et, aD as j, at as nt, au as ot, aE as B, aF as rt, aG as U, aq as st, ar as _, aH as C, aI as it } from "./index-6t601Plg.js";
1
+ import { aB as tt, aC as et, aD as j, at as nt, au as ot, aE as B, aF as rt, aG as U, aq as st, ar as _, aH as C, aI as it } from "./index-XlX-ORox.js";
2
2
  const J = Math.PI / 180, T = tt * J;
3
3
  function Q(t, r) {
4
4
  const n = Math.max(Math.cos(r * J), 1e-6);
@@ -1,4 +1,4 @@
1
- import { aA as B } from "./index-6t601Plg.js";
1
+ import { aA as B } from "./index-XlX-ORox.js";
2
2
  const V = /* @__PURE__ */ new Set([
3
3
  "GeoJsonLayer",
4
4
  "PolygonLayer",
@@ -1,4 +1,4 @@
1
- import { bv as _t, bw as Ct } from "./index-6t601Plg.js";
1
+ import { bv as _t, bw as Ct } from "./index-XlX-ORox.js";
2
2
  function Yt(e, r, t = 2, i, o = "xy") {
3
3
  const s = r && r.length, l = s ? r[0] * t : e.length;
4
4
  let c = Ut(e, 0, l, t, !0, i && i[0], o);
@@ -1,6 +1,6 @@
1
- import { A as t, a as o, b as i, C as l, c as p, d as n, D as _, e as c, f as g, F as h, L as m, g as L, h as y, i as f, j as w, M as S, k as V, O as b, l as C, m as E, P as I, T as P, n as T, o as M, U as d, V as A, p as O, q as u, W as N, r as k, s as x, t as D, u as G, G as R, v as j, w as W, x as q, y as v, z, B as F, E as U, H as Y, I as B, J as H, K as J, N as K, Q, R as X, S as Z, X as $, Y as aa, Z as sa, _ as ea, $ as ra, a0 as ta, a1 as oa, a2 as ia } from "./index-6t601Plg.js";
2
- import { P as s } from "./post-process-effect-qnYbdo-D.js";
3
- import { G as pa, a as na } from "./globe-view-3AKRpYIV.js";
1
+ import { A as t, a as o, b as i, C as l, c as p, d as n, D as _, e as c, f as g, F as h, L as m, g as L, h as y, i as f, j as w, M as S, k as V, O as b, l as C, m as E, P as I, T as P, n as T, o as M, U as d, V as A, p as O, q as u, W as N, r as k, s as x, t as D, u as G, G as R, v as j, w as W, x as q, y as v, z, B as F, E as U, H as Y, I as B, J as H, K as J, N as K, Q, R as X, S as Z, X as $, Y as aa, Z as sa, _ as ea, $ as ra, a0 as ta, a1 as oa, a2 as ia } from "./index-XlX-ORox.js";
2
+ import { P as s } from "./post-process-effect-D-uTiLdK.js";
3
+ import { G as pa, a as na } from "./globe-view-CPzn74yH.js";
4
4
  export {
5
5
  t as AmbientLight,
6
6
  o as Attribute,
@@ -1,4 +1,4 @@
1
- import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-6t601Plg.js";
1
+ import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-XlX-ORox.js";
2
2
  import { w as gs, t as Hs, f as Ws, m as Qs } from "./mgrs-BY9bIvp4.js";
3
3
  import { c as Xs } from "./convert-arrow-schema-DrAihRf9.js";
4
4
  import { y as Ys, A as bt, a as Ks, z as Vs, R as Zs } from "./recordbatch-Bpc0uxFn.js";
@@ -1,5 +1,5 @@
1
- import { aM as R, aN as S, aO as E, aP as N, aQ as h, aR as w, aS as W, aT as O, aU as x, aV as I, aW as B, aX as _, aY as P, aZ as k, a_ as $, a$ as z, b0 as C, b1 as F, b2 as v, b3 as M, b4 as p, b5 as U } from "./index-6t601Plg.js";
2
- import { b6 as $e, b7 as ze, b8 as Ce, b9 as ve, ba as Me, bb as Ue, bc as je, bd as De, be as qe, bf as Je, bg as Ve, bh as Ge, bi as He, bj as Qe, bk as Xe, bl as Ye, bm as Ze, bn as Ke, bo as et, bp as tt, bq as nt, br as rt, bs as at, bt as st, bu as ot } from "./index-6t601Plg.js";
1
+ import { aM as R, aN as S, aO as E, aP as N, aQ as h, aR as w, aS as W, aT as O, aU as x, aV as I, aW as B, aX as _, aY as P, aZ as k, a_ as $, a$ as z, b0 as C, b1 as F, b2 as v, b3 as M, b4 as p, b5 as U } from "./index-XlX-ORox.js";
2
+ import { b6 as $e, b7 as ze, b8 as Ce, b9 as ve, ba as Me, bb as Ue, bc as je, bd as De, be as qe, bf as Je, bg as Ve, bh as Ge, bi as He, bj as Qe, bk as Xe, bl as Ye, bm as Ze, bn as Ke, bo as et, bp as tt, bq as nt, br as rt, bs as at, bt as st, bu as ot } from "./index-XlX-ORox.js";
3
3
  import { g as j, i as D } from "./table-accessors-CYWTzpQI.js";
4
4
  async function q(t, e, n = {}, r = {}) {
5
5
  const a = R(t), s = S.getWorkerFarm(n), { source: o } = n, c = { name: a, source: o };
@@ -1,6 +1,6 @@
1
- import { ac as j, ad as S, ae as A, af as M, ag as L } from "./index-6t601Plg.js";
2
- import { ah as H, ai as V, aj as X, ak as K } from "./index-6t601Plg.js";
3
- import { P as h } from "./post-process-effect-qnYbdo-D.js";
1
+ import { ac as j, ad as S, ae as A, af as M, ag as L } from "./index-XlX-ORox.js";
2
+ import { ah as H, ai as V, aj as X, ak as K } from "./index-XlX-ORox.js";
3
+ import { P as h } from "./post-process-effect-D-uTiLdK.js";
4
4
  const O = `
5
5
  float omfx_lum(vec3 c) { return dot(c, vec3(0.299, 0.587, 0.114)); }
6
6
  float omfx_hash(vec2 p) { return fract(sin(dot(p, vec2(12.9898, 78.233))) * 43758.5453); }