@nika-js/onlymap 0.11.3 → 0.11.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 +5 -0
  2. package/dist/{basemap-C6Ehu6fw.js → basemap-UE11uf6w.js} +2 -2
  3. package/dist/cartograph.js +231 -229
  4. package/dist/cartograph.standalone.js +361 -359
  5. package/dist/{geoparquet-3V4KrvQN.js → geoparquet-D7ZKVPDh.js} +1 -1
  6. package/dist/{globe-view-D4Tlyff-.js → globe-view-B7Yn2BbK.js} +1 -1
  7. package/dist/{hillshade-BC8QiJRP.js → hillshade-tQaqlPhn.js} +1 -1
  8. package/dist/{index-BqFwoWp9.js → index-B_L_7lV0.js} +1 -1
  9. package/dist/{index-BPCIxI1b.js → index-C09RUa1s.js} +1 -1
  10. package/dist/{index-DgutJ5y2.js → index-C8a3EKM8.js} +3 -3
  11. package/dist/{index-DpUl6z5-.js → index-CFWt9qS0.js} +1 -1
  12. package/dist/{index-C1f14saD.js → index-CWtaL88w.js} +3 -3
  13. package/dist/{index-BUE-VzWx.js → index-DIoKYXlh.js} +1 -1
  14. package/dist/{index-p5XXAoNa.js → index-DPV7mwIc.js} +2 -2
  15. package/dist/{index-pu3BNjzA.js → index-DzxpYTfi.js} +18 -18
  16. package/dist/{index-iwTA46AA.js → index-N5acD4ii.js} +1 -1
  17. package/dist/{lerc-DWtJKNQk.js → lerc-BDcZeX07.js} +1 -1
  18. package/dist/onlymap.standalone.js +1 -1
  19. package/dist/onlymapjs.js +1 -1
  20. package/dist/{post-process-effect-mQdMaWQE.js → post-process-effect-C1iDE90L.js} +1 -1
  21. package/dist/{raster-DtUDOXfy.js → raster-D4nwLneR.js} +3 -3
  22. package/dist/{raster-pipeline-hQh5cG3e.js → raster-pipeline-DX-rZjRG.js} +1 -1
  23. package/dist/{text-on-path-CcfoZqXD.js → text-on-path-onhHN4AZ.js} +1 -1
  24. package/dist/version.d.ts +1 -1
  25. package/dist/{zarr-Qo4A_t7d.js → zarr-CBGaInwF.js} +2 -2
  26. package/docs/cartograph.md +8 -3
  27. package/llms.txt +1 -1
  28. package/onlymapjs.html-data.json +4 -0
  29. package/package.json +1 -1
  30. package/skills/onlymapjs/SKILL.md +1 -1
  31. package/skills/onlymapjs/references/syntax.md +3 -3
@@ -1,4 +1,4 @@
1
- import { a4 as p, a5 as d } from "./index-pu3BNjzA.js";
1
+ import { a4 as p, a5 as d } from "./index-DzxpYTfi.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-pu3BNjzA.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-DzxpYTfi.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-pu3BNjzA.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-DzxpYTfi.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) {
@@ -1,4 +1,4 @@
1
- import { aA as B } from "./index-pu3BNjzA.js";
1
+ import { aA as B } from "./index-DzxpYTfi.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-pu3BNjzA.js";
1
+ import { bv as _t, bw as Ct } from "./index-DzxpYTfi.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 { ac as j, ad as S, ae as A, af as M, ag as L } from "./index-pu3BNjzA.js";
2
- import { ah as H, ai as V, aj as X, ak as K } from "./index-pu3BNjzA.js";
3
- import { P as h } from "./post-process-effect-mQdMaWQE.js";
1
+ import { ac as j, ad as S, ae as A, af as M, ag as L } from "./index-DzxpYTfi.js";
2
+ import { ah as H, ai as V, aj as X, ak as K } from "./index-DzxpYTfi.js";
3
+ import { P as h } from "./post-process-effect-C1iDE90L.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 { bx as Be, by as le, bz as ce, bA as De, bB as Oe, bC as ke } from "./index-pu3BNjzA.js";
1
+ import { bx as Be, by as le, bz as ce, bA as De, bB as Oe, bC as ke } from "./index-DzxpYTfi.js";
2
2
  import { y as ve, a as he, z as G, R as J, A as ue, C as Fe, F as xe, n as je, 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-pu3BNjzA.js";
2
- import { P as s } from "./post-process-effect-mQdMaWQE.js";
3
- import { G as pa, a as na } from "./globe-view-D4Tlyff-.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-DzxpYTfi.js";
2
+ import { P as s } from "./post-process-effect-C1iDE90L.js";
3
+ import { G as pa, a as na } from "./globe-view-B7Yn2BbK.js";
4
4
  export {
5
5
  t as AmbientLight,
6
6
  o as Attribute,
@@ -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-pu3BNjzA.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-DzxpYTfi.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,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-pu3BNjzA.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-pu3BNjzA.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-DzxpYTfi.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-DzxpYTfi.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 };
@@ -31145,7 +31145,7 @@ const rie = {
31145
31145
  }, sie = {
31146
31146
  match: (t, e) => ["csv", "tsv"].includes(xo(t) ?? "") || /text\/(csv|tab-separated-values)/i.test(e ?? ""),
31147
31147
  parse: async (t) => {
31148
- const [e, i, n] = await Promise.all([t.text(), import("./index-DpUl6z5-.js"), import("./index-p5XXAoNa.js")]), r = await n.parse(e, i.CSVLoader, { csv: { shape: "object-row-table" } });
31148
+ const [e, i, n] = await Promise.all([t.text(), import("./index-CFWt9qS0.js"), import("./index-DPV7mwIc.js")]), r = await n.parse(e, i.CSVLoader, { csv: { shape: "object-row-table" } });
31149
31149
  return oie(r.data) ?? r.data;
31150
31150
  }
31151
31151
  };
@@ -31167,7 +31167,7 @@ const aie = {
31167
31167
  parse: async (t, e) => {
31168
31168
  t.body?.cancel().catch(() => {
31169
31169
  });
31170
- const [i, n] = await Promise.all([import("./index-p5XXAoNa.js"), import("./index-iwTA46AA.js")]), r = t.url || e, s = /* @__PURE__ */ new Map(), o = (m) => {
31170
+ const [i, n] = await Promise.all([import("./index-DPV7mwIc.js"), import("./index-N5acD4ii.js")]), r = t.url || e, s = /* @__PURE__ */ new Map(), o = (m) => {
31171
31171
  const v = String(m);
31172
31172
  let _ = s.get(v);
31173
31173
  return _ || (_ = rk(v), s.set(v, _)), _.then((w) => w.clone());
@@ -31180,13 +31180,13 @@ const aie = {
31180
31180
  }, lie = {
31181
31181
  match: (t, e) => xo(t) === "kml" || /application\/vnd\.google-earth\.kml/i.test(e ?? ""),
31182
31182
  parse: async (t) => {
31183
- const [e, i, n] = await Promise.all([t.text(), import("./index-p5XXAoNa.js"), import("./index-BPCIxI1b.js")]);
31183
+ const [e, i, n] = await Promise.all([t.text(), import("./index-DPV7mwIc.js"), import("./index-C09RUa1s.js")]);
31184
31184
  return ql(await i.parse(e, n.KMLLoader));
31185
31185
  }
31186
31186
  }, cie = /* @__PURE__ */ new Set(["waypoint", "track", "route"]), uie = {
31187
31187
  match: (t, e) => xo(t) === "gpx" || /application\/gpx\+xml/i.test(e ?? ""),
31188
31188
  parse: async (t, e) => {
31189
- const [i, n, r] = await Promise.all([t.text(), import("./index-p5XXAoNa.js"), import("./index-BPCIxI1b.js")]), o = ((await n.parse(i, r.GPXLoader)).features ?? []).map((l) => {
31189
+ const [i, n, r] = await Promise.all([t.text(), import("./index-DPV7mwIc.js"), import("./index-C09RUa1s.js")]), o = ((await n.parse(i, r.GPXLoader)).features ?? []).map((l) => {
31190
31190
  const u = l.properties?._gpxType, h = u === "trk" ? "track" : u === "rte" ? "route" : "waypoint";
31191
31191
  return { ...l, properties: { ...l.properties, _gpxKind: h } };
31192
31192
  }), a = e.split("#")[1]?.toLowerCase().replace(/s$/, "");
@@ -31219,7 +31219,7 @@ const aie = {
31219
31219
  t.arrayBuffer(),
31220
31220
  import("./index-BYbMtNVH.js"),
31221
31221
  import("./index-CgPV7QlM.js"),
31222
- import("./geoparquet-3V4KrvQN.js")
31222
+ import("./geoparquet-D7ZKVPDh.js")
31223
31223
  ]), o = new Uint8Array(i);
31224
31224
  if (o.length < 8 || o[0] !== 80 || o[1] !== 65 || o[2] !== 82 || o[3] !== 49)
31225
31225
  throw new Error(`data="${e}": not a Parquet file (missing PAR1 magic bytes).`);
@@ -69802,7 +69802,7 @@ un({
69802
69802
  type: "COGLayer",
69803
69803
  carriesRasterWindow: !0,
69804
69804
  carriesRasterIdentify: !0,
69805
- loadClass: () => import("./raster-DtUDOXfy.js").then((t) => t.r).then((t) => t.OmCOGLayer),
69805
+ loadClass: () => import("./raster-D4nwLneR.js").then((t) => t.r).then((t) => t.OmCOGLayer),
69806
69806
  props: [
69807
69807
  { attr: "src", kind: "scalar", deckProp: "geotiff", type: "string", required: !0 },
69808
69808
  // COG v2 (issue #13): 1-based band selection — a single band (colormap-
@@ -69838,7 +69838,7 @@ un({
69838
69838
  });
69839
69839
  un({
69840
69840
  type: "ZarrLayer",
69841
- loadClass: () => import("./zarr-Qo4A_t7d.js").then((t) => t.OmZarrLayer),
69841
+ loadClass: () => import("./zarr-CBGaInwF.js").then((t) => t.OmZarrLayer),
69842
69842
  props: [
69843
69843
  { attr: "src", kind: "scalar", deckProp: "src", type: "string", required: !0 },
69844
69844
  { attr: "variable", kind: "scalar", deckProp: "variable", type: "string" },
@@ -69870,7 +69870,7 @@ un({
69870
69870
  });
69871
69871
  un({
69872
69872
  type: "HillshadeLayer",
69873
- loadClass: () => import("./hillshade-BC8QiJRP.js").then((t) => t.OmHillshadeLayer),
69873
+ loadClass: () => import("./hillshade-tQaqlPhn.js").then((t) => t.OmHillshadeLayer),
69874
69874
  warpsInPlane: !0,
69875
69875
  props: [
69876
69876
  { attr: "src", kind: "scalar", deckProp: "src", type: "string", required: !0 },
@@ -69900,7 +69900,7 @@ un({
69900
69900
  });
69901
69901
  un({
69902
69902
  type: "TextOnPathLayer",
69903
- loadClass: () => import("./text-on-path-CcfoZqXD.js").then((t) => t.OmTextOnPathLayer),
69903
+ loadClass: () => import("./text-on-path-onhHN4AZ.js").then((t) => t.OmTextOnPathLayer),
69904
69904
  props: [
69905
69905
  { attr: "get-path", kind: "accessor", deckProp: "getPath", type: "string" },
69906
69906
  { attr: "get-text", kind: "accessor", deckProp: "getText", type: "string" },
@@ -83309,7 +83309,7 @@ class d5 {
83309
83309
  `[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).`
83310
83310
  );
83311
83311
  else {
83312
- this.mode = "basemap", this.basemapAttr = e, import("./basemap-C6Ehu6fw.js").then(({ MapLibreBasemapAdapter: s }) => {
83312
+ this.mode = "basemap", this.basemapAttr = e, import("./basemap-UE11uf6w.js").then(({ MapLibreBasemapAdapter: s }) => {
83313
83313
  this.destroyed || i !== this.rendererGeneration || (this.basemap = new s(
83314
83314
  this.parent,
83315
83315
  // this.basemapAttr, not the captured param: a style switch that
@@ -83611,7 +83611,7 @@ class d5 {
83611
83611
  this.postProcess = null, this.applyEffects();
83612
83612
  return;
83613
83613
  }
83614
- import("./index-DgutJ5y2.js").then(({ buildPostProcessEffects: i }) => {
83614
+ import("./index-C8a3EKM8.js").then(({ buildPostProcessEffects: i }) => {
83615
83615
  this.destroyed || this.effectsIR !== e || (this.postProcess = i(e, this.pixelsPerMm()), this.applyEffects());
83616
83616
  });
83617
83617
  }
@@ -83952,7 +83952,7 @@ class d5 {
83952
83952
  * than the export failing.
83953
83953
  */
83954
83954
  async captureBand(e, i) {
83955
- const { bandScaleFor: n } = await import("./index-BqFwoWp9.js"), r = n(i);
83955
+ const { bandScaleFor: n } = await import("./index-B_L_7lV0.js"), r = n(i);
83956
83956
  return this.withCapturePixelRatio(r, async () => {
83957
83957
  this.bandIsolation = e ? new Set(e) : null;
83958
83958
  try {
@@ -83974,7 +83974,7 @@ class d5 {
83974
83974
  async resolvedPostProcessPass() {
83975
83975
  const e = this.buildEffects();
83976
83976
  if (e.length === 0) return { present: !1 };
83977
- const { PostProcessEffect: i } = await import("./index-C1f14saD.js");
83977
+ const { PostProcessEffect: i } = await import("./index-CWtaL88w.js");
83978
83978
  for (const n of e)
83979
83979
  if (n instanceof i) {
83980
83980
  const r = n;
@@ -84432,7 +84432,7 @@ class d5 {
84432
84432
  const { width: n, height: r } = i, s = (v) => {
84433
84433
  const _ = i.project([v[0], v[1]]);
84434
84434
  return [_[0], _[1]];
84435
- }, 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-BqFwoWp9.js"), m = await h(this.lastIRs, {
84435
+ }, 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-B_L_7lV0.js"), m = await h(this.lastIRs, {
84436
84436
  width: n,
84437
84437
  height: r,
84438
84438
  project: s,
@@ -85174,7 +85174,7 @@ function _5(t, e, i, n, r, s) {
85174
85174
  if (u) return u;
85175
85175
  const h = `${r}|${l}#${o.length}`;
85176
85176
  if (!Qy.has(h)) {
85177
- const m = import("./index-BUE-VzWx.js").then(async ({ runTransforms: v }) => {
85177
+ const m = import("./index-DIoKYXlh.js").then(async ({ runTransforms: v }) => {
85178
85178
  JP(a, l, await v(o, e, i, n, r));
85179
85179
  }).catch((v) => {
85180
85180
  console.error(`[onlymapjs] ${r} failed to load the geometry transforms:`, v), JP(a, l, t);
@@ -85408,7 +85408,7 @@ function T5({ layerIRs: t, core: e, mapEl: i, selection: n, history: r, featureT
85408
85408
  }
85409
85409
  };
85410
85410
  }
85411
- const E5 = "0.11.3", XRe = "https://om-api.nika.eco/v1/t", co = { endpoint: XRe };
85411
+ const E5 = "0.11.4", XRe = "https://om-api.nika.eco/v1/t", co = { endpoint: XRe };
85412
85412
  function YRe(t) {
85413
85413
  for (const e of Object.keys(t))
85414
85414
  co[e] = t[e];
@@ -88748,7 +88748,7 @@ class lPe extends Eo {
88748
88748
  this.core?.setEffects([]);
88749
88749
  return;
88750
88750
  }
88751
- import("./index-DgutJ5y2.js").then(({ parseEffectEls: i }) => {
88751
+ import("./index-C8a3EKM8.js").then(({ parseEffectEls: i }) => {
88752
88752
  !this.core || !this.isConnected || this.core.setEffects(i(this));
88753
88753
  });
88754
88754
  }
@@ -90582,7 +90582,7 @@ async function OBe(t) {
90582
90582
  e(t);
90583
90583
  }
90584
90584
  async function YPe() {
90585
- return import("./raster-DtUDOXfy.js").then((t) => t.r);
90585
+ return import("./raster-D4nwLneR.js").then((t) => t.r);
90586
90586
  }
90587
90587
  const kBe = {
90588
90588
  registerLayer: un,
@@ -1,4 +1,4 @@
1
- import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-pu3BNjzA.js";
1
+ import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-DzxpYTfi.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,4 +1,4 @@
1
- import { C as o, D as s } from "./raster-DtUDOXfy.js";
1
+ import { C as o, D as s } from "./raster-D4nwLneR.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";
@@ -98043,7 +98043,7 @@ function imA({ layerIRs: e, core: A, mapEl: t, selection: i, history: r, feature
98043
98043
  }
98044
98044
  };
98045
98045
  }
98046
- const rmA = "0.11.3", zpe = "https://om-api.nika.eco/v1/t", tE = { endpoint: zpe };
98046
+ const rmA = "0.11.4", zpe = "https://om-api.nika.eco/v1/t", tE = { endpoint: zpe };
98047
98047
  function jpe(e) {
98048
98048
  for (const A of Object.keys(e))
98049
98049
  tE[A] = e[A];
package/dist/onlymapjs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bP as e, bQ as r, bR as t, as as c, C as o, bS as i, c as n, bT as d, bU as l, bV as S, bW as E, ah as g, bX as L, bY as T, bZ as _, b_ as A, b$ as p, c0 as m, c1 as I, c2 as D, L as M, g as u, c3 as b, c4 as y, c5 as f, c6 as O, c7 as P, bE as R, c8 as C, ap as N, c9 as F, aB as h, ca as B, W as v, cb as x, aA as G, cc as U, cd as W, ce as w, cf as Y, cg as k, ch as X, ci as H, cj as K, ck as V, cl as j, cm as z, cn as J, co as q, cp as Q, cq as Z, cr as $, ak as aa, cs as sa, ct as ea, cu as ra, cv as ta, cw as ca, cx as oa, cy as ia, cz as na, cA as da, cB as la, cC as Sa, cD as Ea, aq as ga, cE as La, cF as Ta, ae as _a, cG as Aa, cH as pa, cI as ma, cJ as Ia, cK as Da, cL as Ma, cM as ua, cN as ba, cO as ya, cP as fa, cQ as Oa, cR as Pa, cS as Ra, cT as Ca, cU as Na, cV as Fa, cW as ha, cX as Ba, cY as va, cZ as xa, c_ as Ga, c$ as Ua, d0 as Wa, d1 as wa, d2 as Ya, d3 as ka, d4 as Xa, d5 as Ha, d6 as Ka, aC as Va, d7 as ja, d8 as za, d9 as Ja, da as qa, db as Qa, dc as Za, dd as $a, de as as, df as ss, dg as es, dh as rs, di as ts, dj as cs, dk as os, dl as is, dm as ns, dn as ds } from "./index-pu3BNjzA.js";
1
+ import { bP as e, bQ as r, bR as t, as as c, C as o, bS as i, c as n, bT as d, bU as l, bV as S, bW as E, ah as g, bX as L, bY as T, bZ as _, b_ as A, b$ as p, c0 as m, c1 as I, c2 as D, L as M, g as u, c3 as b, c4 as y, c5 as f, c6 as O, c7 as P, bE as R, c8 as C, ap as N, c9 as F, aB as h, ca as B, W as v, cb as x, aA as G, cc as U, cd as W, ce as w, cf as Y, cg as k, ch as X, ci as H, cj as K, ck as V, cl as j, cm as z, cn as J, co as q, cp as Q, cq as Z, cr as $, ak as aa, cs as sa, ct as ea, cu as ra, cv as ta, cw as ca, cx as oa, cy as ia, cz as na, cA as da, cB as la, cC as Sa, cD as Ea, aq as ga, cE as La, cF as Ta, ae as _a, cG as Aa, cH as pa, cI as ma, cJ as Ia, cK as Da, cL as Ma, cM as ua, cN as ba, cO as ya, cP as fa, cQ as Oa, cR as Pa, cS as Ra, cT as Ca, cU as Na, cV as Fa, cW as ha, cX as Ba, cY as va, cZ as xa, c_ as Ga, c$ as Ua, d0 as Wa, d1 as wa, d2 as Ya, d3 as ka, d4 as Xa, d5 as Ha, d6 as Ka, aC as Va, d7 as ja, d8 as za, d9 as Ja, da as qa, db as Qa, dc as Za, dd as $a, de as as, df as ss, dg as es, dh as rs, di as ts, dj as cs, dk as os, dl as is, dm as ns, dn as ds } from "./index-DzxpYTfi.js";
2
2
  export {
3
3
  e as ALL_POSITION_VALUES,
4
4
  r as AUDIT_EXEMPTIONS,
@@ -1,4 +1,4 @@
1
- import { av as m, aw as h, ax as P, ay as S, az as C } from "./index-pu3BNjzA.js";
1
+ import { av as m, aw as h, ax as P, ay as S, az as C } from "./index-DzxpYTfi.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-hQh5cG3e.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-DX-rZjRG.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 { bK as _t, bL as $t } from "./index-pu3BNjzA.js";
4
+ import { bK as _t, bL as $t } from "./index-DzxpYTfi.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-DWtJKNQk.js").then((e) => e.decode));
1075
+ j.set(f.Lerc, () => import("./lerc-BDcZeX07.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 { a3 as de, bD as fe, bE as re, c as oe, bF as me, G as pe, bG as ge, aK as Z, bH as ve, N as be, bI as xe, bJ as Pe, al as Te, ap as ie } from "./index-pu3BNjzA.js";
2
+ import { a3 as de, bD as fe, bE as re, c as oe, bF as me, G as pe, bG as ge, aK as Z, bH as ve, N as be, bI as xe, bJ as Pe, al as Te, ap as ie } from "./index-DzxpYTfi.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, a3 as N } from "./index-pu3BNjzA.js";
1
+ import { c as E, a3 as N } from "./index-DzxpYTfi.js";
2
2
  const z = Math.PI / 180, O = 45, W = 24, T = /* @__PURE__ */ new Map();
3
3
  let b = null;
4
4
  function I(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.3";
8
+ export declare const LIBRARY_VERSION = "0.11.4";
@@ -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-hQh5cG3e.js";
2
- import { c as gr } from "./index-pu3BNjzA.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-DX-rZjRG.js";
2
+ import { c as gr } from "./index-DzxpYTfi.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.3/dist/cartograph.standalone.js"></script>
26
- <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.3/dist/cartograph.css">
25
+ <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.11.4/dist/cartograph.standalone.js"></script>
26
+ <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.4/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"
@@ -85,7 +85,7 @@ The authoritative attribute lists (with editor IntelliSense) are generated from
85
85
  |---|---|---|
86
86
  | `<om-cartograph>` | Page root: `cartograph-id`, `format="cartograph/2"`, `size` (A5–A0/Letter/Legal) or `width`/`height` (mm), `orientation`, `theme` plus its per-page overrides `bg`, `color`, `font`, `title`, `attribution`; print controls `bleed`, `crop-marks`, `safe-zone`, `dpi`, `flatten`, `color-profile`; `cvd`; `allow-url-actions` | implemented |
87
87
  | `<om-frame>` | A placed map. `mode="static"`: a georeferenced `<img>` child placed by `crs` + `corners`. `mode="live"` (the default): mounts `<om-map>` from `src=`, an `<om-source>` child or an inline child with the frame's own `center/zoom/bearing/pitch`; `overview-of` draws another frame's footprint; `attribution` (static frames) carries the basemap's provider credit as text | implemented |
88
- | `<om-source>` | One place a frame's picture may come from — `src` (a map document `.html`, or a capture image), plus `corners`/`crs`/`crs-def` for a capture. A frame tries its sources in document order and shows the first that renders | implemented |
88
+ | `<om-source>` | One place a frame's picture may come from — `src` (a map document `.html`, or a capture image), plus `corners`/`crs`/`crs-def` and `attribution` for a capture. A frame tries its sources in document order and shows the first that renders | implemented |
89
89
  | `<om-text>` | Text block — `kind` (title/text/attribution), `font-size` (pt), `weight`, `align`, `font`, `color`, `bg`; body may use `{{tokens}}` | implemented |
90
90
  | `<om-scalebar>` | Scale bar — `for`, `units` (metric/imperial/nautical), `segments`, `segment-length`, `kind` (single/double/line/ticks), `color` | implemented |
91
91
  | `<om-north>` | North indicator — `for`, `kind` (arrow/rose), `color`. Direction is derived from the frame's georeference | implemented |
@@ -488,6 +488,11 @@ OpenStreetMap once, and no inset loses a corner of its map to a credit.
488
488
  frame's `attribution` attribute — `attribution="© OpenStreetMap contributors · © CARTO"`
489
489
  — so a frozen or exported sheet credits its tiles with no runtime loaded.
490
490
  Write the attribute yourself for a placed raster whose tiles need credit.
491
+ - **So do fallback captures.** A capture `<om-source>` takes the same
492
+ `attribution`, and the sheet prints it while that capture is what the frame
493
+ shows. A capture is only shown when the live map did not load, so it cannot
494
+ be asked — record the credit when the capture is taken, as you record its
495
+ `corners`. The live map's own credit applies only while the map is showing.
491
496
  - **Credit them yourself, and the line steps aside.** A provider already named
492
497
  in any `<om-text>` (case, `©` and `(c)` ignored) is left out of the page's
493
498
  line; when every provider is covered, the line disappears.
package/llms.txt CHANGED
@@ -45,7 +45,7 @@ Programmatic/native bridge rule: `MapController.setLayers()` accepts normal func
45
45
  - `<om-behavior on="click|hover|drag|load|data-loaded" layer="..." action="...">` — declarative interaction (`pick="point"|"cluster"` narrows it to standalone points or count bubbles on a `cluster="true"` layer). Built-in actions: `show-overlay`, `hide-overlay`, `show-tooltip`, `hide-tooltip`, `toggle-layer`, `set-layer-attribute` (`{layer, name, value}` — write ANY layer attribute at runtime by its kebab-case name, `value: null` removes; the generic on/off switch for a widget button, e.g. `name: "cluster"`), `expand-cluster` (`{feature, layer}` or `{layer, clusterId}` — fly to where a bubble splits), `set-pickable` (`{layer, pickable: true|false|"3d"}` — runtime picking/popup toggle, story-capturable; the per-layer popup on/off switch a viewer-facing export needs), `filter-layer`, `highlight-feature`, `zoom-to-feature`, `set-basemap`, `undo`, `redo`; scene/tool actions `set-lighting`, `set-effect` (`{preset}` — swap a post-process finish; see the effects bullet), `set-terrain`, `set-clip-box` (`{min,max,invert?,highlight?}` / `{clear:true}`), `clip-box-edit` (`{editing}`), `export-region-3d` (`{target?, format?:"glb"|"b3dm"}` — what the draw widget's `export-3d` button emits), the draw actions `draw-mode` (`{target?:"sketch", mode:"point"|"line"|"polygon"|null}` — null exits drawing), `draw-commit`, `draw-cancel`, `draw-delete` (removes the last shape), `draw-clear`, `draw-config` (`{target?, autosave?, fillColor?, lineColor?}`) and `draw-save` (`{target?, format?:"download"|"file-system"|"both"}`) — every one of these drives the same store a `data="draw:<target>"` layer reads, so a custom toolbar can replace `<om-widget type="draw">` entirely; and the measure actions `measure-mode` (`{mode:"distance"|"area"|"volume"|null}`), `measure-units`, `measure-clear`, `measure-config` (`{profile?, baseSurface?, density?, swell?, shrink?, deadband?}`), `measure-flat-target-plane` (`{flat}`). One payload contract everywhere: `{ layer, target, feature, featureId, coordinate }`. A `show-tooltip` popup DISMISSES ITSELF when the selection clears — the pointer leaving the feature for a hover, or a click on empty map for a click — so you never wire `hide-tooltip` by hand for that. A tooltip whose template contains an interactive `[data-emit]` element takes pointer events and so does NOT close when clicked, which is what lets it carry its own close button.
46
46
  - Undo/redo is built in: user-facing manifest changes (layer toggles, filter changes, basemap switches, element add/remove, drawn sketches) are recorded automatically — the manifest is the state. `<om-widget type="undo-redo">` renders the buttons; Cmd/Ctrl-Z, Shift-Cmd/Ctrl-Z, and Ctrl-Y work on any map (text inputs keep their native undo). Camera moves, hover effects, and story playback are deliberately NOT undo steps. Widget scripts: `ctx.history.canUndo/canRedo` with watch token `history`; `ctx.emit("undo")`/`ctx.emit("redo")`.
47
47
  - `<om-fallback>` — static no-JS fallback, direct child of `<om-map>` (one per map, no attributes, plain HTML content — links allowed). Shown ONLY where scripts never run (chat-app/email file previews — iOS QuickLook renders HTML attachments with JS off — file managers, sandboxed webviews); hidden automatically once the map boots. GOOD PRACTICE: include one on every complete page, especially pages that may be shared as a file. To PRODUCE a shareable single file, `npx @nika-js/onlymap export map.html` embeds every relative data/src/scenegraph URL as a data: URL (format detection preserved — the original extension rides a #name.ext fragment), pins relative library refs to the CDN, adds a generic om-fallback when missing, and warns when embedded data is heavy (>1 MB per file / >5 MB total) or when a source cannot be embedded (shapefile sidecars, COG Range streams, Zarr directories, {z}/{x}/{y} templates — those need hosting) ("This interactive map requires JavaScript — open this file in a web browser", plus a hosted-version link when one exists). Without one, the stylesheet shows a generic text-only banner. The gate is pure CSS (`om-map:not(:defined)` in onlymapjs.css) refined by the `scripting` media feature on 2023+ engines: with scripting DISABLED the fallback shows instantly; with scripting ENABLED it never flashes during a slow load and only surfaces after a ~4s grace with load-failure wording (blocked/unreachable bundle). The CSS must load without JS — a real `<link rel="stylesheet">` or inlined `<style>` on no-build pages; a bundler-emitted stylesheet is fine in npm projects.
48
- - PRINT LAYOUTS (`@nika-js/onlymap/cartograph`, separate lazy entry — the core bundle does not grow): `<om-cartograph size="A3" orientation="landscape">` is a standalone page measured in MILLIMETRES carrying `<om-frame>`s (live `<om-map>` with the frame's own camera, or `mode="static"` georeferenced rasters placed by `crs`+`corners`). A frame may declare SEVERAL sources and show the first that renders: `src=` is shorthand for the first `<om-source src=>`, then each `<om-source>` child in document order, and an inline `<om-map>` outranks both. The kind comes from the extension (`.html` = map document, an image extension = capture); a capture MUST carry its own `corners` (+`crs`), because when it is what gets shown the live map did not load and its projection is unknowable. "Rendered" means one drawable thing after settle — a basemap, or rows on any layer — NOT every layer loaded; this exists because a sheet opened outside its host mounts a map whose every layer failed and still reports success, showing a blank box inside correct furniture. The frame reports its choice as `data-om-carto-source="<index>"` and an `om-frame-source` event, and fires `om-frame-view` on a switch so furniture re-places. A stored sheet is renderable IN PLACE, not portable — capture paths are relative; export inlines the map and embeds the rasters plus cartographic furniture: `<om-legend for="...">` (rows DERIVED from the live map's own symbology incl. classified breaks; author literal `<om-legend-row>`s with `derived="false"`), `<om-scalebar>` (metric|imperial|nautical), `<om-north>`, `<om-graticule>` (4326/3857/UTM), `<om-shape>`, `<om-image>`, `<om-text>` with `{{title}}`/`{{date}}`/`{{frame.<id>.scale}}`/`{{atlas.<field>}}` tokens. Look: `theme=` (default|dark|sepia|blueprint|minimal) on the page, overridden per attribute — the page's `bg`/`color`/`font`, a legend's `bg`/`color`/`stroke`/`font-size`(pt)/`padding`(mm), `color` on scale bar, north and graticule, `color`/`bg` on text, `fill`/`stroke` on shapes; there is no `background=`/`border=`/`padding=` elsewhere. `overview-of="<frame-id>"` draws a locator inset's footprint. A live frame georeferences whatever its map shows: zoomed out past the whole world, the map wraps inside the frame like any web map (the graticule labels each copy, the scale bar measures its own row) — the frame never limits or changes the camera, and once the map inside it settles after a pan/rotate/tilt the frame's georeference follows the map's own view, so north arrow, scale bar, graticule, locator and `{{frame.<id>.scale}}` describe what is on screen (and a freeze captures that view). `max-pitch` and `min-zoom` on `<om-map>` exist as author-set controls for kiosk-style maps and are never applied automatically. `<om-atlas for="<frame-id>" layer="<layer-id>">` renders one page per feature (sequentially through ONE live map — WebGL context limits make cloned pages fail at scale) and exports a ZIP; frames follow with `atlas-fit="feature"`, and `atlas-margin` is a FRACTION of the feature's extent (default 0.15, useful range 0.1–0.3) — the one spatial number here that is NOT millimetres; `atlas-margin="10"` pads each side by ten feature-widths and shows every page as a speck. A reader pages an atlas with the arrow keys / PageUp / PageDown / Home / End, or the on-sheet pager (`‹ 3 / 49 · name ›`, screen-only — never printed or exported; `pager="none"` on `<om-atlas>` removes it); a host embedding the sheet cross-origin gets `{source:"onlymap-cartograph", type:"atlas-page", index, count, name}` posted to its window and can post `{source:"onlymap-cartograph-host", type:"atlas-seek", index}` back. Print via `page.print()` or `?print=1` (true page size via @page; live frames swap to print-DPI captures first), PNG via `renderCartograph(page, {dpi})` or `?export=png&dpi=300`. `bleed`/`crop-marks`/`safe-zone` (screen-only guide)/`flatten` are press-shop attributes; `cvd="deuteranopia|protanopia|tritanopia|achromatopsia"` simulates colour-vision deficiencies page-wide and `lintLegendColours()` flags collapsing palettes. Free plan: a small foot credit is injected ON THE SHEET — suppressed by any authored `om-text` crediting OnlyMap, or by a paid key on a live frame's map. A map inside a frame carries NO badge of its own (the sheet credits the page once), so a sheet with several live frames still shows one credit. Basemap attribution moves the same way: a framed map draws no attribution control, and the sheet prints every frame's providers (OpenStreetMap, CARTO, …) ONCE at the page's bottom-right; `freeze()` records them in the frame's `attribution` attribute ("© OpenStreetMap contributors · © CARTO") so a static sheet still credits its tiles with no runtime; a provider already named in an authored `om-text` is left out of the line. Deep reference: docs/cartograph.md.
48
+ - PRINT LAYOUTS (`@nika-js/onlymap/cartograph`, separate lazy entry — the core bundle does not grow): `<om-cartograph size="A3" orientation="landscape">` is a standalone page measured in MILLIMETRES carrying `<om-frame>`s (live `<om-map>` with the frame's own camera, or `mode="static"` georeferenced rasters placed by `crs`+`corners`). A frame may declare SEVERAL sources and show the first that renders: `src=` is shorthand for the first `<om-source src=>`, then each `<om-source>` child in document order, and an inline `<om-map>` outranks both. The kind comes from the extension (`.html` = map document, an image extension = capture); a capture MUST carry its own `corners` (+`crs`), because when it is what gets shown the live map did not load and its projection is unknowable. "Rendered" means one drawable thing after settle — a basemap, or rows on any layer — NOT every layer loaded; this exists because a sheet opened outside its host mounts a map whose every layer failed and still reports success, showing a blank box inside correct furniture. The frame reports its choice as `data-om-carto-source="<index>"` and an `om-frame-source` event, and fires `om-frame-view` on a switch so furniture re-places. A stored sheet is renderable IN PLACE, not portable — capture paths are relative; export inlines the map and embeds the rasters plus cartographic furniture: `<om-legend for="...">` (rows DERIVED from the live map's own symbology incl. classified breaks; author literal `<om-legend-row>`s with `derived="false"`), `<om-scalebar>` (metric|imperial|nautical), `<om-north>`, `<om-graticule>` (4326/3857/UTM), `<om-shape>`, `<om-image>`, `<om-text>` with `{{title}}`/`{{date}}`/`{{frame.<id>.scale}}`/`{{atlas.<field>}}` tokens. Look: `theme=` (default|dark|sepia|blueprint|minimal) on the page, overridden per attribute — the page's `bg`/`color`/`font`, a legend's `bg`/`color`/`stroke`/`font-size`(pt)/`padding`(mm), `color` on scale bar, north and graticule, `color`/`bg` on text, `fill`/`stroke` on shapes; there is no `background=`/`border=`/`padding=` elsewhere. `overview-of="<frame-id>"` draws a locator inset's footprint. A live frame georeferences whatever its map shows: zoomed out past the whole world, the map wraps inside the frame like any web map (the graticule labels each copy, the scale bar measures its own row) — the frame never limits or changes the camera, and once the map inside it settles after a pan/rotate/tilt the frame's georeference follows the map's own view, so north arrow, scale bar, graticule, locator and `{{frame.<id>.scale}}` describe what is on screen (and a freeze captures that view). `max-pitch` and `min-zoom` on `<om-map>` exist as author-set controls for kiosk-style maps and are never applied automatically. `<om-atlas for="<frame-id>" layer="<layer-id>">` renders one page per feature (sequentially through ONE live map — WebGL context limits make cloned pages fail at scale) and exports a ZIP; frames follow with `atlas-fit="feature"`, and `atlas-margin` is a FRACTION of the feature's extent (default 0.15, useful range 0.1–0.3) — the one spatial number here that is NOT millimetres; `atlas-margin="10"` pads each side by ten feature-widths and shows every page as a speck. A reader pages an atlas with the arrow keys / PageUp / PageDown / Home / End, or the on-sheet pager (`‹ 3 / 49 · name ›`, screen-only — never printed or exported; `pager="none"` on `<om-atlas>` removes it); a host embedding the sheet cross-origin gets `{source:"onlymap-cartograph", type:"atlas-page", index, count, name}` posted to its window and can post `{source:"onlymap-cartograph-host", type:"atlas-seek", index}` back. Print via `page.print()` or `?print=1` (true page size via @page; live frames swap to print-DPI captures first), PNG via `renderCartograph(page, {dpi})` or `?export=png&dpi=300`. `bleed`/`crop-marks`/`safe-zone` (screen-only guide)/`flatten` are press-shop attributes; `cvd="deuteranopia|protanopia|tritanopia|achromatopsia"` simulates colour-vision deficiencies page-wide and `lintLegendColours()` flags collapsing palettes. Free plan: a small foot credit is injected ON THE SHEET — suppressed by any authored `om-text` crediting OnlyMap, or by a paid key on a live frame's map. A map inside a frame carries NO badge of its own (the sheet credits the page once), so a sheet with several live frames still shows one credit. Basemap attribution moves the same way: a framed map draws no attribution control, and the sheet prints every frame's providers (OpenStreetMap, CARTO, …) ONCE at the page's bottom-right; `freeze()` records them in the frame's `attribution` attribute ("© OpenStreetMap contributors · © CARTO") so a static sheet still credits its tiles with no runtime; a capture `<om-source>` takes the same `attribution` (credited while it is the source shown — record it with the capture's `corners`, since a shown capture means the map did not load); a provider already named in an authored `om-text` is left out of the line. Deep reference: docs/cartograph.md.
49
49
  - POST-PROCESS EFFECTS: `<om-effect>` children of `<om-map>` ARE deck's `effects` array — document order is pipeline order. Three lanes, exactly one per element: `preset="vintage|engraved|night|blueprint|riso|newsprint|muted"` (a named finish; override one knob with `<op>-<param>`, e.g. `grain-amount="0.02"`, or get the preset as markup from `OmMap.expandPreset(name)`); `op="tint|levels|saturation|posterize|vignette|grain|edges|blur|sharpen|halftone"` with that op's knobs as attributes; or an inline `<script type="application/json">` luma ShaderModule passed to deck untouched (raw GLSL, multi-pass). Spatial knobs are MILLIMETRES (`size="0.12mm"`) and resolve against the live pixel density, so a look keeps its physical size at print DPI — a pixel value is a validation error. Consecutive pointwise ops compile into ONE pass; only neighbourhood ops (edges/blur/sharpen/halftone) cost a pass each. A preset is literally a saved op list. `set-effect {preset}` swaps it live by writing the document, and `<om-widget type="effects">` renders that as preset radios plus Off, mirroring the document rather than holding state (undoable; NOT story-rewindable yet — a step can apply it, but `seek()` back will not remove it, because rewind restores `<om-map>` attributes and this adds a child element). Programmatic twin: `MapController.setEffects(effects | null)` hands deck `Effect` instances directly and outranks the document's chain while set. Deep reference: docs/effects.md. CAVEAT: a pass runs over deck's framebuffer, so with a MapLibre basemap the basemap underneath is untouched — the validator warns and suggests `basemap="none"` with the base drawn as layers.
50
50
  - Animation: `transition="get-fill-color 800ms, get-radius 400ms"` on a layer GPU-animates prop changes (also smooths streaming updates via `get-position`). Camera: the `fly-to` action takes `center`/`zoom`/`pitch`/`bearing`/`duration` (e.g. `duration="2s"`) — use it in behaviors or `data-emit` buttons; `zoom-to-feature` also accepts `duration`.
51
51
  - Pull-model frame rendering (external video frameworks such as Remotion): mark the map `data-om-recording` (the determinism switch — instant camera, no transitions/gesture interrupts, byte-stable `snapshot()`), then per frame `story.seek(t, {interpolateCamera: true})` + `await mapEl.whenSettled()` + capture; the same frame is byte-identical across processes and orderings. Story effect verbs (fade/pulse/trace/populate) evaluate as pure functions of story time under the switch — a seek landing mid-trace renders the half-drawn outline; only effects dispatched OUTSIDE a story (behaviors, ctx.emit) snap to their end state. `onlymapjs record` remains the built-in push-model path; `@nika-js/onlymap-remotion` packages the pull-model path for Remotion.
@@ -4156,6 +4156,10 @@
4156
4156
  {
4157
4157
  "name": "crs-def",
4158
4158
  "description": "Proj string (\"+proj=…\") for a CRS the library doesn't bundle."
4159
+ },
4160
+ {
4161
+ "name": "attribution",
4162
+ "description": "A capture's basemap credit as plain text, entries separated by \" · \" — printed in the sheet's corner while this capture is what the frame shows. A capture is shown because the live map did not load, so it cannot be asked; record the credit when the capture is taken."
4159
4163
  }
4160
4164
  ],
4161
4165
  "references": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nika-js/onlymap",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
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.3` (the bare package URL serves `dist/onlymap.standalone.js`) — plus `<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.3/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.11.4` (the bare package URL serves `dist/onlymap.standalone.js`) — plus `<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.4/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.3/dist/onlymapjs.css">
20
- <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.11.3"></script>
19
+ <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.4/dist/onlymapjs.css">
20
+ <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.11.4"></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).
@@ -736,7 +736,7 @@ A separate lazy entry (`import "@nika-js/onlymap/cartograph"`; CDN: `https://unp
736
736
  - `<om-atlas for="<frame-id>" layer="<layer-id>">` renders one page per feature sequentially and exports a ZIP. Frames follow with `atlas-fit="feature"` (without it every page shows the same view). `atlas-margin` is a FRACTION of the feature's extent (default 0.15, useful range 0.1–0.3) — the one spatial number here that is NOT millimetres; `atlas-margin="10"` pads each side by ten feature-widths and shows every page as a speck — the validator warns on any margin above 2, and on a margin set without `atlas-fit="feature"`, which does nothing. Readers page with the arrow keys / PageUp / PageDown / Home / End or the on-sheet pager (screen-only, never printed or exported; `pager="none"` on `<om-atlas>` removes it); a cross-origin host gets `atlas-page` messages posted to its window and can post `{source:"onlymap-cartograph-host", type:"atlas-seek", index}` back.
737
737
  - Output: `page.print()` / `?print=1` (PDF at page size), `renderCartograph(page, {dpi})` / `?export=png&dpi=300` (PNG). Press attributes: `bleed`, `crop-marks`, `safe-zone` (screen-only), `flatten`. `cvd="deuteranopia|…"` simulates colour-vision deficiency; `lintLegendColours()` flags collapsing palettes.
738
738
  - Free plan injects a small foot credit — suppressed by an authored `om-text` crediting OnlyMap or a paid key on a live frame's map.
739
- - Basemap attribution is printed ONCE by the sheet, bottom-right — a framed map shows no attribution control. Do not add per-frame credits or hand-copy the provider list; `freeze()` records it on the frame (`attribution="© OpenStreetMap contributors · © CARTO"`). A provider your own `om-text` already names is left out of the auto line.
739
+ - Basemap attribution is printed ONCE by the sheet, bottom-right — a framed map shows no attribution control. Do not add per-frame credits or hand-copy the provider list; `freeze()` records it on the frame (`attribution="© OpenStreetMap contributors · © CARTO"`); a capture `<om-source>` takes the same attribute and is credited while it is the source shown. A provider your own `om-text` already names is left out of the auto line.
740
740
  - Deep reference: `docs/cartograph.md`.
741
741
 
742
742
  ### `<om-fallback>`