@nika-js/onlymap 0.12.0 → 0.12.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 (27) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/{basemap-CtDse0mW.js → basemap-BK25o5OE.js} +2 -2
  3. package/dist/{geoparquet-BTHYX1ET.js → geoparquet-CLydPm2f.js} +1 -1
  4. package/dist/{globe-view-KrKNOmVs.js → globe-view-ChuX60M5.js} +1 -1
  5. package/dist/{hillshade-CijRdYyU.js → hillshade-DD8WFrvf.js} +1 -1
  6. package/dist/{index-B_Vhebf7.js → index-BHRpKnGi.js} +1 -1
  7. package/dist/{index-DMc81n9B.js → index-Bs69fn8a.js} +18 -18
  8. package/dist/{index-Bfocr1_A.js → index-C2CKUsom.js} +1 -1
  9. package/dist/{index-A45DtXly.js → index-CMKrghNb.js} +2 -2
  10. package/dist/{index-BPa2CC8T.js → index-CdAf0bLj.js} +1 -1
  11. package/dist/{index-DoGY-Vgi.js → index-CgVFHEdM.js} +3 -3
  12. package/dist/{index-21KGElDr.js → index-CvrH6mbS.js} +3 -3
  13. package/dist/{index-eHYe06mM.js → index-DIzzRLKr.js} +1 -1
  14. package/dist/{index-DS6VUGi6.js → index-Dvwr1Y3o.js} +1 -1
  15. package/dist/{lerc-DjrPALEj.js → lerc-mAijS40k.js} +1 -1
  16. package/dist/onlymap.standalone.js +1 -1
  17. package/dist/onlymapjs.js +1 -1
  18. package/dist/{post-process-effect-Be1qa2DD.js → post-process-effect-rwFDi8di.js} +1 -1
  19. package/dist/{raster-zC3qXBrs.js → raster-CXIqf83L.js} +3 -3
  20. package/dist/{raster-pipeline-DspBYxwc.js → raster-pipeline-CfSg2Re7.js} +1 -1
  21. package/dist/{text-on-path-D0_URrD2.js → text-on-path-B08PekFz.js} +1 -1
  22. package/dist/version.d.ts +1 -1
  23. package/dist/{zarr-DopOhzfY.js → zarr-CUn2udOc.js} +2 -2
  24. package/docs/cartograph.md +2 -2
  25. package/package.json +1 -1
  26. package/skills/onlymapjs/SKILL.md +1 -1
  27. package/skills/onlymapjs/references/syntax.md +2 -2
package/CHANGELOG.md CHANGED
@@ -8,6 +8,26 @@ 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.12.1 — 2026-10-12
12
+
13
+ ### Fixed
14
+ - **The library reports its own version correctly.** 0.12.0 identified itself as 0.11.11 — to anything that reads the runtime version, and in its usage reports — and its package shipped without the 0.12.0 changelog entry. Both are right in 0.12.1; nothing else changes.
15
+
16
+ ## 0.12.0 — 2026-10-09
17
+
18
+ ### Added
19
+ - **Data in any coordinate system lands in the right place.** Files in a national grid, State Plane or UTM zone — eastings and northings in metres — are converted to longitude/latitude as they load, instead of drawing in the ocean. A file that names its own system needs nothing: a shapefile's `.prj`, a FlatGeobuf or GeoParquet header, or a GeoJSON `crs` member is read automatically. For a CSV, or to override the file, declare it on the layer: `<om-layer crs="EPSG:27700">`. Common grids and every UTM zone are built in; any other EPSG code is looked up at epsg.io once (`OmMap.configureCrs({ online: false })` turns that off). GeoParquet in a local grid now loads instead of being refused. Coordinates that cannot be degrees, with no system named, are reported rather than drawn somewhere wrong.
20
+ - **Satellite and other image tiles on a projected map.** On a map drawn in a real projection (`crs="EPSG:27700"` on `<om-map>`), an image `TileLayer` (`…/{z}/{x}/{y}.png`, `.jpg`, `.webp`) is now warped into the projection and lands within a pixel of where it belongs — so a projected map can have a satellite or OpenStreetMap backdrop. `basemap="satellite"` itself stays a validation error there, and its fix is that imagery written as a layer, plus its credit line.
21
+ - **A globe (preview).** `projection="globe"` on a map with a basemap draws the Earth as a sphere you can spin; zoom in and it becomes the ordinary flat map. Layers, data and the camera are written exactly as before, it switches live (the attribute, the `set-projection` action, `MapController.setProjection`, or React's `projection` prop), overlays on the far side hide, and a click in space reports no coordinate. A globe is drawn flat-on and north-up, and text, icon, arc and heatmap-style layers cannot draw on it yet — validation says so, with a fix.
22
+ - **Two new examples:** map British National Grid data on a satellite map and on a map drawn in the grid itself, and spin a satellite globe with great-circle routes.
23
+
24
+ ### Fixed
25
+ - **Relief on a projected map sits where it belongs.** It was drawn a few pixels south of its true position at low zoom.
26
+ - **A mouse-wheel zoom on a map with a basemap now reports itself as the user's move.** `om-view-changed` said `"programmatic"` for it, so apps (and linked maps) that only follow user moves missed it.
27
+ - **A fixed-position `<om-overlay>` on a map with a basemap shows as soon as the map loads**, instead of staying hidden until the first pan.
28
+ - **The live validation report now includes the map's own checks** — basemap, projection and widget-placement problems on `<om-map>` itself appeared in the static validator but were left out of the on-page panel and `getDiagnostics()`.
29
+ - **No more "renders nothing" warning for a widget that holds its own HTML.** An `<om-widget>` with no `type` but its own content renders that content; only an empty one is flagged.
30
+
11
31
  ## 0.11.11 — 2026-10-08
12
32
 
13
33
  ### Fixed
@@ -1,5 +1,5 @@
1
- import { aK as Y_, N as Ou, H as Id, k as K_, aL as J_, aM as Q_, D as Yf, Z as ey, aN as ty } from "./index-DMc81n9B.js";
2
- import { a as iy } from "./globe-view-KrKNOmVs.js";
1
+ import { aK as Y_, N as Ou, H as Id, k as K_, aL as J_, aM as Q_, D as Yf, Z as ey, aN as ty } from "./index-Bs69fn8a.js";
2
+ import { a as iy } from "./globe-view-ChuX60M5.js";
3
3
  const ry = /* @__PURE__ */ new Set(["tile.openstreetmap.org", "a.tile.openstreetmap.org", "b.tile.openstreetmap.org", "c.tile.openstreetmap.org"]);
4
4
  function ny(Ie) {
5
5
  let Q;
@@ -1,4 +1,4 @@
1
- import { ae as i, af as m, ag as p } from "./index-DMc81n9B.js";
1
+ import { ae as i, af as m, ag as p } from "./index-Bs69fn8a.js";
2
2
  function y(e) {
3
3
  if (e == null) return !0;
4
4
  const t = e, o = t.id?.code;
@@ -1,4 +1,4 @@
1
- import { d as L, j as x, ah as A, ai as E, aj as d, ak as u, al as h, am as z, p as V, W as Z, G as D } from "./index-DMc81n9B.js";
1
+ import { d as L, j as x, ah as A, ai as E, aj as d, ak as u, al as h, am as z, p as V, W as Z, G as D } from "./index-Bs69fn8a.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 { c as F, a3 as M, a4 as T, a5 as H, a6 as $, a7 as B, a8 as x, a9 as E, aa as _, ab as D, ac as O } from "./index-DMc81n9B.js";
1
+ import { c as F, a3 as M, a4 as T, a5 as H, a6 as $, a7 as B, a8 as x, a9 as E, aa as _, ab as D, ac as O } from "./index-Bs69fn8a.js";
2
2
  import { N as C, c as N } from "./hillshade-apron-Bem3DWyJ.js";
3
3
  import { p as P, h as R, m as Z, a as U } from "./hillshade-shader-DI2uLSNU.js";
4
4
  const A = 64, g = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- import { bx as _t, by as Ct } from "./index-DMc81n9B.js";
1
+ import { bx as _t, by as Ct } from "./index-Bs69fn8a.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);
@@ -31563,7 +31563,7 @@ const fne = {
31563
31563
  }, hne = {
31564
31564
  match: (t, e) => ["csv", "tsv"].includes(xo(t) ?? "") || /text\/(csv|tab-separated-values)/i.test(e ?? ""),
31565
31565
  parse: async (t) => {
31566
- const [e, i, n] = await Promise.all([t.text(), import("./index-BPa2CC8T.js"), import("./index-A45DtXly.js")]), r = await n.parse(e, i.CSVLoader, { csv: { shape: "object-row-table" } });
31566
+ const [e, i, n] = await Promise.all([t.text(), import("./index-CdAf0bLj.js"), import("./index-CMKrghNb.js")]), r = await n.parse(e, i.CSVLoader, { csv: { shape: "object-row-table" } });
31567
31567
  return dne(r.data) ?? r.data;
31568
31568
  }
31569
31569
  };
@@ -31585,7 +31585,7 @@ const Ane = {
31585
31585
  parse: async (t, e) => {
31586
31586
  t.body?.cancel().catch(() => {
31587
31587
  });
31588
- const [i, n] = await Promise.all([import("./index-A45DtXly.js"), import("./index-Bfocr1_A.js")]), r = t.url || e, s = /* @__PURE__ */ new Map(), o = (S) => {
31588
+ const [i, n] = await Promise.all([import("./index-CMKrghNb.js"), import("./index-C2CKUsom.js")]), r = t.url || e, s = /* @__PURE__ */ new Map(), o = (S) => {
31589
31589
  const E = String(S);
31590
31590
  let I = s.get(E);
31591
31591
  return I || (I = OO(E), s.set(E, I)), I.then((P) => P.clone());
@@ -31600,13 +31600,13 @@ const Ane = {
31600
31600
  }, pne = {
31601
31601
  match: (t, e) => xo(t) === "kml" || /application\/vnd\.google-earth\.kml/i.test(e ?? ""),
31602
31602
  parse: async (t) => {
31603
- const [e, i, n] = await Promise.all([t.text(), import("./index-A45DtXly.js"), import("./index-B_Vhebf7.js")]);
31603
+ const [e, i, n] = await Promise.all([t.text(), import("./index-CMKrghNb.js"), import("./index-BHRpKnGi.js")]);
31604
31604
  return Ql(await i.parse(e, n.KMLLoader));
31605
31605
  }
31606
31606
  }, gne = /* @__PURE__ */ new Set(["waypoint", "track", "route"]), mne = {
31607
31607
  match: (t, e) => xo(t) === "gpx" || /application\/gpx\+xml/i.test(e ?? ""),
31608
31608
  parse: async (t, e) => {
31609
- const [i, n, r] = await Promise.all([t.text(), import("./index-A45DtXly.js"), import("./index-B_Vhebf7.js")]), o = ((await n.parse(i, r.GPXLoader)).features ?? []).map((l) => {
31609
+ const [i, n, r] = await Promise.all([t.text(), import("./index-CMKrghNb.js"), import("./index-BHRpKnGi.js")]), o = ((await n.parse(i, r.GPXLoader)).features ?? []).map((l) => {
31610
31610
  const u = l.properties?._gpxType, h = u === "trk" ? "track" : u === "rte" ? "route" : "waypoint";
31611
31611
  return { ...l, properties: { ...l.properties, _gpxKind: h } };
31612
31612
  }), a = e.split("#")[1]?.toLowerCase().replace(/s$/, "");
@@ -31645,7 +31645,7 @@ const Ane = {
31645
31645
  t.arrayBuffer(),
31646
31646
  import("./index-BYbMtNVH.js"),
31647
31647
  import("./index-CgPV7QlM.js"),
31648
- import("./geoparquet-BTHYX1ET.js")
31648
+ import("./geoparquet-CLydPm2f.js")
31649
31649
  ]), o = new Uint8Array(i);
31650
31650
  if (o.length < 8 || o[0] !== 80 || o[1] !== 65 || o[2] !== 82 || o[3] !== 49)
31651
31651
  throw new Error(`data="${e}": not a Parquet file (missing PAR1 magic bytes).`);
@@ -70255,7 +70255,7 @@ un({
70255
70255
  type: "COGLayer",
70256
70256
  carriesRasterWindow: !0,
70257
70257
  carriesRasterIdentify: !0,
70258
- loadClass: () => import("./raster-zC3qXBrs.js").then((t) => t.r).then((t) => t.OmCOGLayer),
70258
+ loadClass: () => import("./raster-CXIqf83L.js").then((t) => t.r).then((t) => t.OmCOGLayer),
70259
70259
  props: [
70260
70260
  { attr: "src", kind: "scalar", deckProp: "geotiff", type: "string", required: !0 },
70261
70261
  // COG v2 (issue #13): 1-based band selection — a single band (colormap-
@@ -70291,7 +70291,7 @@ un({
70291
70291
  });
70292
70292
  un({
70293
70293
  type: "ZarrLayer",
70294
- loadClass: () => import("./zarr-DopOhzfY.js").then((t) => t.OmZarrLayer),
70294
+ loadClass: () => import("./zarr-CUn2udOc.js").then((t) => t.OmZarrLayer),
70295
70295
  props: [
70296
70296
  { attr: "src", kind: "scalar", deckProp: "src", type: "string", required: !0 },
70297
70297
  { attr: "variable", kind: "scalar", deckProp: "variable", type: "string" },
@@ -70323,7 +70323,7 @@ un({
70323
70323
  });
70324
70324
  un({
70325
70325
  type: "HillshadeLayer",
70326
- loadClass: () => import("./hillshade-CijRdYyU.js").then((t) => t.OmHillshadeLayer),
70326
+ loadClass: () => import("./hillshade-DD8WFrvf.js").then((t) => t.OmHillshadeLayer),
70327
70327
  warpsInPlane: !0,
70328
70328
  props: [
70329
70329
  { attr: "src", kind: "scalar", deckProp: "src", type: "string", required: !0 },
@@ -70353,7 +70353,7 @@ un({
70353
70353
  });
70354
70354
  un({
70355
70355
  type: "TextOnPathLayer",
70356
- loadClass: () => import("./text-on-path-D0_URrD2.js").then((t) => t.OmTextOnPathLayer),
70356
+ loadClass: () => import("./text-on-path-B08PekFz.js").then((t) => t.OmTextOnPathLayer),
70357
70357
  props: [
70358
70358
  { attr: "get-path", kind: "accessor", deckProp: "getPath", type: "string" },
70359
70359
  { attr: "get-text", kind: "accessor", deckProp: "getText", type: "string" },
@@ -83738,7 +83738,7 @@ class W5 {
83738
83738
  `[onlymapjs] basemap="${e}" (Mapbox GL) is not implemented yet in this version — falling back to standalone (no basemap). Use a maplibre-* basemap instead (no token required).`
83739
83739
  );
83740
83740
  else {
83741
- this.mode = "basemap", this.basemapAttr = e, import("./basemap-CtDse0mW.js").then(({ MapLibreBasemapAdapter: s }) => {
83741
+ this.mode = "basemap", this.basemapAttr = e, import("./basemap-BK25o5OE.js").then(({ MapLibreBasemapAdapter: s }) => {
83742
83742
  this.destroyed || i !== this.rendererGeneration || (this.basemap = new s(
83743
83743
  this.parent,
83744
83744
  // this.basemapAttr, not the captured param: a style switch that
@@ -84051,7 +84051,7 @@ class W5 {
84051
84051
  this.postProcess = null, this.applyEffects();
84052
84052
  return;
84053
84053
  }
84054
- import("./index-21KGElDr.js").then(({ buildPostProcessEffects: i }) => {
84054
+ import("./index-CvrH6mbS.js").then(({ buildPostProcessEffects: i }) => {
84055
84055
  this.destroyed || this.effectsIR !== e || (this.postProcess = i(e, this.pixelsPerMm()), this.applyEffects());
84056
84056
  });
84057
84057
  }
@@ -84493,7 +84493,7 @@ class W5 {
84493
84493
  * than the export failing.
84494
84494
  */
84495
84495
  async captureBand(e, i) {
84496
- const { bandScaleFor: n } = await import("./index-eHYe06mM.js"), r = n(i);
84496
+ const { bandScaleFor: n } = await import("./index-DIzzRLKr.js"), r = n(i);
84497
84497
  return this.withCapturePixelRatio(r, async () => {
84498
84498
  this.bandIsolation = e ? new Set(e) : null;
84499
84499
  try {
@@ -84515,7 +84515,7 @@ class W5 {
84515
84515
  async resolvedPostProcessPass() {
84516
84516
  const e = this.buildEffects();
84517
84517
  if (e.length === 0) return { present: !1 };
84518
- const { PostProcessEffect: i } = await import("./index-DoGY-Vgi.js");
84518
+ const { PostProcessEffect: i } = await import("./index-CgVFHEdM.js");
84519
84519
  for (const n of e)
84520
84520
  if (n instanceof i) {
84521
84521
  const r = n;
@@ -85026,7 +85026,7 @@ class W5 {
85026
85026
  const { width: n, height: r } = i, s = (v) => {
85027
85027
  const _ = i.project([v[0], v[1]]);
85028
85028
  return [_[0], _[1]];
85029
- }, o = i.unproject([n / 2, r / 2]), a = i.unproject([n / 2 + 1, r / 2]), l = Math.max(_a([o[0], o[1]], [a[0], a[1]]), 1e-9), u = await this.resolvedPostProcessPass(), { serializeToSvg: h } = await import("./index-eHYe06mM.js"), m = await h(this.lastIRs, {
85029
+ }, o = i.unproject([n / 2, r / 2]), a = i.unproject([n / 2 + 1, r / 2]), l = Math.max(_a([o[0], o[1]], [a[0], a[1]]), 1e-9), u = await this.resolvedPostProcessPass(), { serializeToSvg: h } = await import("./index-DIzzRLKr.js"), m = await h(this.lastIRs, {
85030
85030
  width: n,
85031
85031
  height: r,
85032
85032
  project: s,
@@ -85768,7 +85768,7 @@ function Q5(t, e, i, n, r, s) {
85768
85768
  if (u) return u;
85769
85769
  const h = `${r}|${l}#${o.length}`;
85770
85770
  if (!ub.has(h)) {
85771
- const m = import("./index-DS6VUGi6.js").then(async ({ runTransforms: v }) => {
85771
+ const m = import("./index-Dvwr1Y3o.js").then(async ({ runTransforms: v }) => {
85772
85772
  bB(a, l, await v(o, e, i, n, r));
85773
85773
  }).catch((v) => {
85774
85774
  console.error(`[onlymapjs] ${r} failed to load the geometry transforms:`, v), bB(a, l, t);
@@ -86016,7 +86016,7 @@ function rV({ layerIRs: t, core: e, mapEl: i, selection: n, history: r, featureT
86016
86016
  }
86017
86017
  };
86018
86018
  }
86019
- const sV = "0.11.11", ePe = "https://om-api.nika.eco/v1/t", co = { endpoint: ePe };
86019
+ const sV = "0.12.1", ePe = "https://om-api.nika.eco/v1/t", co = { endpoint: ePe };
86020
86020
  function tPe(t) {
86021
86021
  for (const e of Object.keys(t))
86022
86022
  co[e] = t[e];
@@ -89526,7 +89526,7 @@ class bBe extends Eo {
89526
89526
  this.core?.setEffects([]);
89527
89527
  return;
89528
89528
  }
89529
- import("./index-21KGElDr.js").then(({ parseEffectEls: i }) => {
89529
+ import("./index-CvrH6mbS.js").then(({ parseEffectEls: i }) => {
89530
89530
  !this.core || !this.isConnected || this.core.setEffects(i(this));
89531
89531
  });
89532
89532
  }
@@ -91442,7 +91442,7 @@ async function ZLe(t) {
91442
91442
  e(t);
91443
91443
  }
91444
91444
  async function aLe() {
91445
- return import("./raster-zC3qXBrs.js").then((t) => t.r);
91445
+ return import("./raster-CXIqf83L.js").then((t) => t.r);
91446
91446
  }
91447
91447
  const XLe = {
91448
91448
  registerLayer: un,
@@ -1,4 +1,4 @@
1
- import { bD as Bt, bP as Xt, bQ as Yt, bR as Us } from "./index-DMc81n9B.js";
1
+ import { bD as Bt, bP as Xt, bQ as Yt, bR as Us } from "./index-Bs69fn8a.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 { aO as R, aP as S, aQ as E, aR as W, aS as h, aT as w, aU as N, aV as O, aW as x, aX as I, aY as B, aZ as _, a_ as P, a$ as k, b0 as $, b1 as z, b2 as v, b3 as F, b4 as C, b5 as U, b6 as p, b7 as M } from "./index-DMc81n9B.js";
2
- import { b8 as $e, b9 as ze, ba as ve, bb as Ce, bc as Ue, bd as Me, be as je, bf as De, bg as qe, bh as Je, bi as Ve, bj as Ge, bk as He, bl as Qe, bm as Xe, bn as Ye, bo as Ze, bp as Ke, bq as et, br as tt, bs as nt, bt as rt, bu as at, bv as st, bw as ot } from "./index-DMc81n9B.js";
1
+ import { aO as R, aP as S, aQ as E, aR as W, aS as h, aT as w, aU as N, aV as O, aW as x, aX as I, aY as B, aZ as _, a_ as P, a$ as k, b0 as $, b1 as z, b2 as v, b3 as F, b4 as C, b5 as U, b6 as p, b7 as M } from "./index-Bs69fn8a.js";
2
+ import { b8 as $e, b9 as ze, ba as ve, bb as Ce, bc as Ue, bd as Me, be as je, bf as De, bg as qe, bh as Je, bi as Ve, bj as Ge, bk as He, bl as Qe, bm as Xe, bn as Ye, bo as Ze, bp as Ke, bq as et, br as tt, bs as nt, bt as rt, bu as at, bv as st, bw as ot } from "./index-Bs69fn8a.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,4 +1,4 @@
1
- import { bz as Be, bA as le, bB as ce, bC as De, bD as Oe, bE as ke } from "./index-DMc81n9B.js";
1
+ import { bz as Be, bA as le, bB as ce, bC as De, bD as Oe, bE as ke } from "./index-Bs69fn8a.js";
2
2
  import { y as ve, a as he, z as G, R as J, A as ue, C as Fe, F as je, n as xe, S as Ie, E as Ne } from "./recordbatch-Bpc0uxFn.js";
3
3
  import { g as V, a as fe, b as Le, c as Ue, d as Me, e as qe, m as Ve } from "./table-accessors-CYWTzpQI.js";
4
4
  import { c as $e } from "./convert-arrow-schema-DrAihRf9.js";
@@ -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-DMc81n9B.js";
2
- import { P as s } from "./post-process-effect-Be1qa2DD.js";
3
- import { G as pa, a as na } from "./globe-view-KrKNOmVs.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-Bs69fn8a.js";
2
+ import { P as s } from "./post-process-effect-rwFDi8di.js";
3
+ import { G as pa, a as na } from "./globe-view-ChuX60M5.js";
4
4
  export {
5
5
  t as AmbientLight,
6
6
  o as Attribute,
@@ -1,6 +1,6 @@
1
- import { an as j, ao as S, ap as A, aq as M, ar as L } from "./index-DMc81n9B.js";
2
- import { as as H, at as V, au as X, av as K } from "./index-DMc81n9B.js";
3
- import { P as h } from "./post-process-effect-Be1qa2DD.js";
1
+ import { an as j, ao as S, ap as A, aq as M, ar as L } from "./index-Bs69fn8a.js";
2
+ import { as as H, at as V, au as X, av as K } from "./index-Bs69fn8a.js";
3
+ import { P as h } from "./post-process-effect-rwFDi8di.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); }
@@ -1,4 +1,4 @@
1
- import { aB as B } from "./index-DMc81n9B.js";
1
+ import { aB as B } from "./index-Bs69fn8a.js";
2
2
  const V = /* @__PURE__ */ new Set([
3
3
  "GeoJsonLayer",
4
4
  "PolygonLayer",
@@ -1,4 +1,4 @@
1
- import { aC as tt, aD as et, aE as q, ab as nt, ac as ot, aF as C, aG as rt, aH as U, a7 as st, a8 as _, aI as L, aJ as it } from "./index-DMc81n9B.js";
1
+ import { aC as tt, aD as et, aE as q, ab as nt, ac as ot, aF as C, aG as rt, aH as U, a7 as st, a8 as _, aI as L, aJ as it } from "./index-Bs69fn8a.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 { C as o, D as s } from "./raster-zC3qXBrs.js";
1
+ import { C as o, D as s } from "./raster-CXIqf83L.js";
2
2
  var t;
3
3
  (function(e) {
4
4
  e[e.None = 0] = "None", e[e.Deflate = 1] = "Deflate", e[e.Zstd = 2] = "Zstd";
@@ -98651,7 +98651,7 @@ function GmA({ layerIRs: e, core: A, mapEl: t, selection: i, history: r, feature
98651
98651
  }
98652
98652
  };
98653
98653
  }
98654
- const kmA = "0.11.11", Zye = "https://om-api.nika.eco/v1/t", tE = { endpoint: Zye };
98654
+ const kmA = "0.12.1", Zye = "https://om-api.nika.eco/v1/t", tE = { endpoint: Zye };
98655
98655
  function Xye(e) {
98656
98656
  for (const A of Object.keys(e))
98657
98657
  tE[A] = e[A];
package/dist/onlymapjs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bS as e, bT as r, bU as t, aa as c, C as o, bV as i, c as d, bW as n, bX as l, bY as S, bZ as g, as as E, b_ as L, b$ as T, c0 as _, c1 as p, c2 as A, c3 as m, c4 as I, c5 as D, L as u, g as M, c6 as y, c7 as f, c8 as b, c9 as O, ca as P, bG as C, cb as R, a3 as N, cc as F, aC as h, cd as v, W as B, ce as x, aB as G, cf as U, cg as W, ch as w, ci as Y, cj as X, ck as k, cl as H, cm as K, cn as V, co as j, cp as z, cq as J, cr as q, cs as Z, ct as $, cu as Q, cv as aa, av as sa, cw as ea, cx as ra, cy as ta, cz as ca, cA as oa, cB as ia, cC as da, cD as na, cE as la, cF as Sa, cG as ga, cH as Ea, a7 as La, cI as Ta, cJ as _a, ap as pa, cK as Aa, cL as ma, cM as Ia, cN as Da, cO as ua, cP as Ma, cQ as ya, cR as fa, cS as ba, cT as Oa, cU as Pa, cV as Ca, cW as Ra, cX as Na, cY as Fa, cZ as ha, c_ as va, c$ as Ba, d0 as xa, d1 as Ga, d2 as Ua, d3 as Wa, d4 as wa, d5 as Ya, d6 as Xa, d7 as ka, d8 as Ha, d9 as Ka, da as Va, db as ja, aD as za, dc as Ja, dd as qa, de as Za, df as $a, dg as Qa, dh as as, di as ss, dj as es, dk as rs, dl as ts, dm as cs, dn as os, dp as is, dq as ds, dr as ns, ds as ls, dt as Ss } from "./index-DMc81n9B.js";
1
+ import { bS as e, bT as r, bU as t, aa as c, C as o, bV as i, c as d, bW as n, bX as l, bY as S, bZ as g, as as E, b_ as L, b$ as T, c0 as _, c1 as p, c2 as A, c3 as m, c4 as I, c5 as D, L as u, g as M, c6 as y, c7 as f, c8 as b, c9 as O, ca as P, bG as C, cb as R, a3 as N, cc as F, aC as h, cd as v, W as B, ce as x, aB as G, cf as U, cg as W, ch as w, ci as Y, cj as X, ck as k, cl as H, cm as K, cn as V, co as j, cp as z, cq as J, cr as q, cs as Z, ct as $, cu as Q, cv as aa, av as sa, cw as ea, cx as ra, cy as ta, cz as ca, cA as oa, cB as ia, cC as da, cD as na, cE as la, cF as Sa, cG as ga, cH as Ea, a7 as La, cI as Ta, cJ as _a, ap as pa, cK as Aa, cL as ma, cM as Ia, cN as Da, cO as ua, cP as Ma, cQ as ya, cR as fa, cS as ba, cT as Oa, cU as Pa, cV as Ca, cW as Ra, cX as Na, cY as Fa, cZ as ha, c_ as va, c$ as Ba, d0 as xa, d1 as Ga, d2 as Ua, d3 as Wa, d4 as wa, d5 as Ya, d6 as Xa, d7 as ka, d8 as Ha, d9 as Ka, da as Va, db as ja, aD as za, dc as Ja, dd as qa, de as Za, df as $a, dg as Qa, dh as as, di as ss, dj as es, dk as rs, dl as ts, dm as cs, dn as os, dp as is, dq as ds, dr as ns, ds as ls, dt as Ss } from "./index-Bs69fn8a.js";
2
2
  export {
3
3
  e as ALL_POSITION_VALUES,
4
4
  r as AUDIT_EXEMPTIONS,
@@ -1,4 +1,4 @@
1
- import { aw as m, ax as h, ay as P, az as S, aA as C } from "./index-DMc81n9B.js";
1
+ import { aw as m, ax as h, ay as P, az as S, aA as C } from "./index-Bs69fn8a.js";
2
2
  const x = (
3
3
  /* wgsl */
4
4
  `struct VertexInputs {
@@ -1,7 +1,7 @@
1
- import { c as se, t as $e, i as Ct, a as ke, s as Lt, C as It, b as Gt, F as vt, A as Et, d as Ft, R as ye, e as At, p as jt, m as Rt, f as Mt, g as We, h as Ut, r as le, j as Ot, k as xt, l as Kt, n as Dt } from "./raster-pipeline-DspBYxwc.js";
1
+ import { c as se, t as $e, i as Ct, a as ke, s as Lt, C as It, b as Gt, F as vt, A as Et, d as Ft, R as ye, e as At, p as jt, m as Rt, f as Mt, g as We, h as Ut, r as le, j as Ot, k as xt, l as Kt, n as Dt } from "./raster-pipeline-CfSg2Re7.js";
2
2
  import { N as Nt, c as zt } from "./hillshade-apron-Bem3DWyJ.js";
3
3
  import { r as Bt } from "./hillshade-shader-DI2uLSNU.js";
4
- import { bN as _t, bO as $t } from "./index-DMc81n9B.js";
4
+ import { bN as _t, bO as $t } from "./index-Bs69fn8a.js";
5
5
  import we from "./index-CW1n5LdO.js";
6
6
  function kt(e, t) {
7
7
  const n = e.length / 3, r = new Uint8ClampedArray(n * 4), o = 0, i = n, a = n * 2;
@@ -1072,7 +1072,7 @@ j.set(f.Zstd, () => import("./zstd-jXobGRcq.js").then((e) => e.decode));
1072
1072
  j.set(f.Jpeg, () => Promise.resolve(ce));
1073
1073
  j.set(f.Jpeg6, () => Promise.resolve(ce));
1074
1074
  j.set(f.Webp, () => Promise.resolve(ce));
1075
- j.set(f.Lerc, () => import("./lerc-DjrPALEj.js").then((e) => e.decode));
1075
+ j.set(f.Lerc, () => import("./lerc-mAijS40k.js").then((e) => e.decode));
1076
1076
  async function ue(e, t, n) {
1077
1077
  const r = j.get(t);
1078
1078
  if (!r)
@@ -1,5 +1,5 @@
1
1
  import { w as he } from "./mgrs-BY9bIvp4.js";
2
- import { ad as de, bF as fe, bG as re, c as oe, bH as me, G as pe, bI as ge, aL as Z, bJ as ve, N as be, bK as xe, bL as Pe, bM as Te, a3 as ie } from "./index-DMc81n9B.js";
2
+ import { ad as de, bF as fe, bG as re, c as oe, bH as me, G as pe, bI as ge, aL as Z, bJ as ve, N as be, bK as xe, bL as Pe, bM as Te, a3 as ie } from "./index-Bs69fn8a.js";
3
3
  import { p as ye, a as Le, h as we } from "./hillshade-shader-DI2uLSNU.js";
4
4
  function Oe(n, e, t) {
5
5
  const { projectedCorners: s } = e, { topLeft: r, topRight: o, bottomRight: i, bottomLeft: a } = s, c = t(r[0], r[1]), u = t(o[0], o[1]), l = t(i[0], i[1]), d = t(a[0], a[1]), f = [
@@ -1,4 +1,4 @@
1
- import { c as E, ad as N } from "./index-DMc81n9B.js";
1
+ import { c as E, ad as N } from "./index-Bs69fn8a.js";
2
2
  const z = Math.PI / 180, O = 45, I = 24, T = /* @__PURE__ */ new Map();
3
3
  let b = null;
4
4
  function W(e) {
package/dist/version.d.ts CHANGED
@@ -5,4 +5,4 @@
5
5
  * the build rootDir, and a `define` would need repeating across vite/vitest/
6
6
  * vite-node configs.
7
7
  */
8
- export declare const LIBRARY_VERSION = "0.11.11";
8
+ export declare const LIBRARY_VERSION = "0.12.1";
@@ -1,5 +1,5 @@
1
- import { A as ur, d as lr, R as zt, e as fr, m as dr, p as St, f as hr, k as pr, l as mr } from "./raster-pipeline-DspBYxwc.js";
2
- import { c as gr } from "./index-DMc81n9B.js";
1
+ import { A as ur, d as lr, R as zt, e as fr, m as dr, p as St, f as hr, k as pr, l as mr } from "./raster-pipeline-CfSg2Re7.js";
2
+ import { c as gr } from "./index-Bs69fn8a.js";
3
3
  import $t from "./index-CW1n5LdO.js";
4
4
  var Et;
5
5
  function h(e, t, n) {
@@ -22,8 +22,8 @@ to PDF at true page size via CSS `@page` and exports PNG/JPEG at print DPI throu
22
22
  <html>
23
23
  <head>
24
24
  <meta charset="utf-8">
25
- <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.11.11/dist/cartograph.standalone.js"></script>
26
- <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.11/dist/cartograph.css">
25
+ <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.12.1/dist/cartograph.standalone.js"></script>
26
+ <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.12.1/dist/cartograph.css">
27
27
  </head>
28
28
  <body>
29
29
  <om-cartograph cartograph-id="cg-lot-12" format="cartograph/2" size="A4" theme="minimal"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nika-js/onlymap",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Declarative deck.gl maps for HTML and React — interactive WebGL mapping with GeoJSON/CSV/Arrow data, MapLibre basemaps, widgets, popups, and live streams from a custom-element manifest or typed React components. TypeScript, no build step.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "publishConfig": {
@@ -23,7 +23,7 @@ Use OnlyMapJS as a declarative HTML map library. Write custom elements such as `
23
23
  </script>
24
24
  ```
25
25
 
26
- For no-build CDN pages, use the single-file standalone bundle from a raw-file CDN — `https://unpkg.com/@nika-js/onlymap@0.11.11` (the bare package URL serves `dist/onlymap.standalone.js`) — plus `<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.11/dist/onlymapjs.css">`. Never a rebundling CDN (esm.sh, skypack): re-bundling duplicates the deck.gl/luma.gl runtime and every layer fails shader compilation.
26
+ For no-build CDN pages, use the single-file standalone bundle from a raw-file CDN — `https://unpkg.com/@nika-js/onlymap@0.12.1` (the bare package URL serves `dist/onlymap.standalone.js`) — plus `<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.12.1/dist/onlymapjs.css">`. Never a rebundling CDN (esm.sh, skypack): re-bundling duplicates the deck.gl/luma.gl runtime and every layer fails shader compilation.
27
27
 
28
28
  ## React Projects
29
29
 
@@ -16,8 +16,8 @@ Vite/npm project:
16
16
  Static CDN page (raw-file CDNs only — unpkg/jsDelivr; never esm.sh or another rebundling CDN, which duplicates the WebGL runtime and breaks layer shaders):
17
17
 
18
18
  ```html
19
- <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.11/dist/onlymapjs.css">
20
- <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.11.11"></script>
19
+ <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.12.1/dist/onlymapjs.css">
20
+ <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.12.1"></script>
21
21
  ```
22
22
 
23
23
  Always include `onlymapjs.css` — it carries the MapLibre basemap styles and the no-JS fallback rules (`<om-fallback>` / default banner). For the fallback to work in script-disabled previews it must load without JavaScript: a real `<link rel="stylesheet">` or inlined `<style>` on no-build pages (a bundler-emitted stylesheet is fine in npm projects).