@nika-js/onlymap 0.8.1 → 0.8.2

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.
@@ -1,4 +1,4 @@
1
- import { r as p, n as d } from "./index-D6R4z3Zs.js";
1
+ import { r as p, n as d } from "./index-Cw9SL11B.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 { ak as Bt, az as Xt, aA as Yt, aB as Us } from "./index-D6R4z3Zs.js";
1
+ import { ak as Bt, az as Xt, aA as Yt, aB as Us } from "./index-Cw9SL11B.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";
@@ -30692,7 +30692,7 @@ const vee = {
30692
30692
  }, _ee = {
30693
30693
  match: (t, e) => ["csv", "tsv"].includes(po(t) ?? "") || /text\/(csv|tab-separated-values)/i.test(e ?? ""),
30694
30694
  parse: async (t) => {
30695
- const [e, i, n] = await Promise.all([t.text(), import("./index-BdKNZcs-.js"), import("./index-Zm8MxpvR.js")]), r = await n.parse(e, i.CSVLoader, { csv: { shape: "object-row-table" } });
30695
+ const [e, i, n] = await Promise.all([t.text(), import("./index-tSk19VJe.js"), import("./index-Dl0UKZF-.js")]), r = await n.parse(e, i.CSVLoader, { csv: { shape: "object-row-table" } });
30696
30696
  return xee(r.data) ?? r.data;
30697
30697
  }
30698
30698
  };
@@ -30714,7 +30714,7 @@ const wee = {
30714
30714
  parse: async (t, e) => {
30715
30715
  t.body?.cancel().catch(() => {
30716
30716
  });
30717
- const [i, n] = await Promise.all([import("./index-Zm8MxpvR.js"), import("./index-CqtubBZ4.js")]), r = t.url || e, s = /* @__PURE__ */ new Map(), o = (y) => {
30717
+ const [i, n] = await Promise.all([import("./index-Dl0UKZF-.js"), import("./index-BQkmbcQr.js")]), r = t.url || e, s = /* @__PURE__ */ new Map(), o = (y) => {
30718
30718
  const v = String(y);
30719
30719
  let x = s.get(v);
30720
30720
  return x || (x = FN(v), s.set(v, x)), x.then((C) => C.clone());
@@ -30727,13 +30727,13 @@ const wee = {
30727
30727
  }, Cee = {
30728
30728
  match: (t, e) => po(t) === "kml" || /application\/vnd\.google-earth\.kml/i.test(e ?? ""),
30729
30729
  parse: async (t) => {
30730
- const [e, i, n] = await Promise.all([t.text(), import("./index-Zm8MxpvR.js"), import("./index-BGQidVp5.js")]);
30730
+ const [e, i, n] = await Promise.all([t.text(), import("./index-Dl0UKZF-.js"), import("./index-DRFEoCuu.js")]);
30731
30731
  return Vl(await i.parse(e, n.KMLLoader));
30732
30732
  }
30733
30733
  }, See = /* @__PURE__ */ new Set(["waypoint", "track", "route"]), Tee = {
30734
30734
  match: (t, e) => po(t) === "gpx" || /application\/gpx\+xml/i.test(e ?? ""),
30735
30735
  parse: async (t, e) => {
30736
- const [i, n, r] = await Promise.all([t.text(), import("./index-Zm8MxpvR.js"), import("./index-BGQidVp5.js")]), o = ((await n.parse(i, r.GPXLoader)).features ?? []).map((l) => {
30736
+ const [i, n, r] = await Promise.all([t.text(), import("./index-Dl0UKZF-.js"), import("./index-DRFEoCuu.js")]), o = ((await n.parse(i, r.GPXLoader)).features ?? []).map((l) => {
30737
30737
  const u = l.properties?._gpxType, d = u === "trk" ? "track" : u === "rte" ? "route" : "waypoint";
30738
30738
  return { ...l, properties: { ...l.properties, _gpxKind: d } };
30739
30739
  }), a = e.split("#")[1]?.toLowerCase().replace(/s$/, "");
@@ -30766,7 +30766,7 @@ const wee = {
30766
30766
  t.arrayBuffer(),
30767
30767
  import("./index-BYbMtNVH.js"),
30768
30768
  import("./index-CgPV7QlM.js"),
30769
- import("./geoparquet-D9pYDrCk.js")
30769
+ import("./geoparquet-DZjsJtQQ.js")
30770
30770
  ]), o = new Uint8Array(i);
30771
30771
  if (o.length < 8 || o[0] !== 80 || o[1] !== 65 || o[2] !== 82 || o[3] !== 49)
30772
30772
  throw new Error(`data="${e}": not a Parquet file (missing PAR1 magic bytes).`);
@@ -68639,7 +68639,7 @@ Un({
68639
68639
  type: "COGLayer",
68640
68640
  carriesRasterWindow: !0,
68641
68641
  carriesRasterIdentify: !0,
68642
- loadClass: () => import("./raster-B7rPpOTP.js").then((t) => t.r).then((t) => t.OmCOGLayer),
68642
+ loadClass: () => import("./raster-Bb9CjpGL.js").then((t) => t.r).then((t) => t.OmCOGLayer),
68643
68643
  props: [
68644
68644
  { attr: "src", kind: "scalar", deckProp: "geotiff", type: "string", required: !0 },
68645
68645
  // COG v2 (issue #13): 1-based band selection — a single band (colormap-
@@ -68667,7 +68667,7 @@ Un({
68667
68667
  });
68668
68668
  Un({
68669
68669
  type: "ZarrLayer",
68670
- loadClass: () => import("./zarr-BF-buFRB.js").then((t) => t.OmZarrLayer),
68670
+ loadClass: () => import("./zarr-DJA83o9G.js").then((t) => t.OmZarrLayer),
68671
68671
  props: [
68672
68672
  { attr: "src", kind: "scalar", deckProp: "src", type: "string", required: !0 },
68673
68673
  { attr: "variable", kind: "scalar", deckProp: "variable", type: "string" },
@@ -81269,7 +81269,7 @@ class OU {
81269
81269
  `[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).`
81270
81270
  );
81271
81271
  else {
81272
- this.mode = "basemap", this.basemapAttr = e, import("./basemap-BjXMRr_M.js").then(({ MapLibreBasemapAdapter: s }) => {
81272
+ this.mode = "basemap", this.basemapAttr = e, import("./basemap-CMaYhtEE.js").then(({ MapLibreBasemapAdapter: s }) => {
81273
81273
  this.destroyed || i !== this.rendererGeneration || (this.basemap = new s(
81274
81274
  this.parent,
81275
81275
  // this.basemapAttr, not the captured param: a style switch that
@@ -81287,7 +81287,7 @@ class OU {
81287
81287
  this.basemapOptions?.attribution !== !1,
81288
81288
  this.chromeHosts.attribution,
81289
81289
  this.deterministic
81290
- ), this.pendingLayers = void 0, this.installHoverGate(this.basemap.getOverlayDeckInternal()), this.basemap.onLoad(() => n.onLoad?.()), this.basemap.onMove((o) => {
81290
+ ), this.pendingLayers = void 0, this.maxPitch != null && this.basemap.setMaxPitch(this.maxPitch), this.installHoverGate(this.basemap.getOverlayDeckInternal()), this.basemap.onLoad(() => n.onLoad?.()), this.basemap.onMove((o) => {
81291
81291
  this.refreshZoomGates(), n.onViewportChange?.(o);
81292
81292
  }));
81293
81293
  });
@@ -81319,7 +81319,10 @@ class OU {
81319
81319
  // basemap/MapLibre path manages its own camera and isn't affected.
81320
81320
  views: new U2({ repeat: !0, farZMultiplier: 10 }),
81321
81321
  viewState: this.viewState,
81322
- controller: md(),
81322
+ // Overrides, not a bare controller: a tilt ceiling (or a suppressed
81323
+ // drag-pan) set before this Deck existed — or before a basemap switch
81324
+ // rebuilt it — belongs to the map, not to the instance it was set on.
81325
+ controller: md(this.standaloneControllerOverrides()),
81323
81326
  // deck's `click` recognizer requires its `dblclick` sibling to FAIL
81324
81327
  // first (mjolnir's standard tap-vs-doubletap disambiguation), which
81325
81328
  // defaults to a 300ms delayed emit — and a subsequent pointerdown
@@ -82851,7 +82854,7 @@ function jU({ layerIRs: t, core: e, mapEl: i, selection: n, history: r, featureT
82851
82854
  }
82852
82855
  };
82853
82856
  }
82854
- const $U = "0.8.1", i3e = "https://om-api.nika.eco/v1/t", to = { endpoint: i3e };
82857
+ const $U = "0.8.2", i3e = "https://om-api.nika.eco/v1/t", to = { endpoint: i3e };
82855
82858
  function n3e(t) {
82856
82859
  for (const e of Object.keys(t))
82857
82860
  to[e] = t[e];
@@ -87280,7 +87283,7 @@ async function PRe(t) {
87280
87283
  e(t);
87281
87284
  }
87282
87285
  async function YMe() {
87283
- return import("./raster-B7rPpOTP.js").then((t) => t.r);
87286
+ return import("./raster-Bb9CjpGL.js").then((t) => t.r);
87284
87287
  }
87285
87288
  const BRe = {
87286
87289
  registerLayer: Un,
@@ -1,4 +1,4 @@
1
- import { ae as _t, af as Ct } from "./index-D6R4z3Zs.js";
1
+ import { ae as _t, af as Ct } from "./index-Cw9SL11B.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,5 +1,5 @@
1
- import { i as E, j as S, k as R, o as N, p as h, q as w, s as O, t as W, v as x, w as I, x as B, y as _, A as P, B as k, E as $, F as z, H as v, I as F, J as C, K as U, N as p, O as M } from "./index-D6R4z3Zs.js";
2
- import { P as $e, R as ze, _ as ve, Q as Ce, S as Ue, T as Me, U as je, X as De, Y as Je, Z as qe, $ as He, a0 as Ve, a1 as Ge, a2 as Ke, a3 as Qe, a4 as Xe, a5 as Ye, a6 as Ze, a7 as et, a8 as tt, a9 as nt, aa as rt, ab as at, ac as st, ad as ot } from "./index-D6R4z3Zs.js";
1
+ import { i as E, j as S, k as R, o as N, p as h, q as w, s as O, t as W, v as x, w as I, x as B, y as _, A as P, B as k, E as $, F as z, H as v, I as F, J as C, K as U, N as p, O as M } from "./index-Cw9SL11B.js";
2
+ import { P as $e, R as ze, _ as ve, Q as Ce, S as Ue, T as Me, U as je, X as De, Y as Je, Z as qe, $ as He, a0 as Ve, a1 as Ge, a2 as Ke, a3 as Qe, a4 as Xe, a5 as Ye, a6 as Ze, a7 as et, a8 as tt, a9 as nt, aa as rt, ab as at, ac as st, ad as ot } from "./index-Cw9SL11B.js";
3
3
  import { g as j, i as D } from "./table-accessors-CYWTzpQI.js";
4
4
  async function J(t, e, n = {}, r = {}) {
5
5
  const a = E(t), s = S.getWorkerFarm(n), { source: o } = n, c = { name: a, source: o };
@@ -1,4 +1,4 @@
1
- import { ag as Be, ah as le, ai as ce, aj as De, ak as Oe, al as ke } from "./index-D6R4z3Zs.js";
1
+ import { ag as Be, ah as le, ai as ce, aj as De, ak as Oe, al as ke } from "./index-Cw9SL11B.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,4 +1,4 @@
1
- import { C as a, D as s } from "./raster-B7rPpOTP.js";
1
+ import { C as a, D as s } from "./raster-Bb9CjpGL.js";
2
2
  const D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
3
  __proto__: null
4
4
  }, Symbol.toStringTag, { value: "Module" }));
@@ -8,7 +8,7 @@ var t;
8
8
  })(t || (t = {}));
9
9
  let l = !1;
10
10
  async function d() {
11
- const e = await import("./LercDecode.es-DKhLh4TO.js");
11
+ const e = await import("./LercDecode.es-BSylOuVc.js");
12
12
  return l || (await e.load(), l = !0), e;
13
13
  }
14
14
  async function i(e, r) {
@@ -93667,7 +93667,7 @@ class LfA {
93667
93667
  this.basemapOptions?.attribution !== !1,
93668
93668
  this.chromeHosts.attribution,
93669
93669
  this.deterministic
93670
- ), this.pendingLayers = void 0, this.installHoverGate(this.basemap.getOverlayDeckInternal()), this.basemap.onLoad(() => i.onLoad?.()), this.basemap.onMove((n) => {
93670
+ ), this.pendingLayers = void 0, this.maxPitch != null && this.basemap.setMaxPitch(this.maxPitch), this.installHoverGate(this.basemap.getOverlayDeckInternal()), this.basemap.onLoad(() => i.onLoad?.()), this.basemap.onMove((n) => {
93671
93671
  this.refreshZoomGates(), i.onViewportChange?.(n);
93672
93672
  }));
93673
93673
  });
@@ -93699,7 +93699,10 @@ class LfA {
93699
93699
  // basemap/MapLibre path manages its own camera and isn't affected.
93700
93700
  views: new nG({ repeat: !0, farZMultiplier: 10 }),
93701
93701
  viewState: this.viewState,
93702
- controller: ZF(),
93702
+ // Overrides, not a bare controller: a tilt ceiling (or a suppressed
93703
+ // drag-pan) set before this Deck existed — or before a basemap switch
93704
+ // rebuilt it — belongs to the map, not to the instance it was set on.
93705
+ controller: ZF(this.standaloneControllerOverrides()),
93703
93706
  // deck's `click` recognizer requires its `dblclick` sibling to FAIL
93704
93707
  // first (mjolnir's standard tap-vs-doubletap disambiguation), which
93705
93708
  // defaults to a 300ms delayed emit — and a subsequent pointerdown
@@ -95231,7 +95234,7 @@ function qfA({ layerIRs: e, core: A, mapEl: t, selection: i, history: r, feature
95231
95234
  }
95232
95235
  };
95233
95236
  }
95234
- const WfA = "0.8.1", Lue = "https://om-api.nika.eco/v1/t", JE = { endpoint: Lue };
95237
+ const WfA = "0.8.2", Lue = "https://om-api.nika.eco/v1/t", JE = { endpoint: Lue };
95235
95238
  function kue(e) {
95236
95239
  for (const A of Object.keys(e))
95237
95240
  JE[A] = e[A];
package/dist/onlymapjs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aC as e, aD as r, aE as t, aF as o, aG as b, aH as i, ap as l, aI as n, aJ as S, aK as c, aL as E, aM as L, aN as g, aO as T, aP as _, aQ as d, aR as A, aS as p, aT as I, aU as m, aV as D, aW as u, aX as M, aY as y, aZ as O, a_ as f, ao as R, a$ as N, aw as P, b0 as F, b1 as h, b2 as C, W as B, b3 as v, b4 as x, b5 as G, b6 as U, b7 as W, b8 as w, b9 as Y, ba as X, bb as H, bc as k, bd as J, be as K, bf as V, bg as z, bh as Q, bi as Z, bj as $, bk as j, bl as q, bm as aa, bn as sa, bo as ea, bp as ra, bq as ta, br as oa, bs as ba, bt as ia, bu as la, bv as na, bw as Sa, bx as ca, by as Ea, bz as La, bA as ga, bB as Ta, bC as _a, bD as da, bE as Aa, bF as pa, bG as Ia, bH as ma, bI as Da, bJ as ua, bK as Ma, bL as ya, bM as Oa, bN as fa, bO as Ra, bP as Na, bQ as Pa, bR as Fa, bS as ha, bT as Ca, bU as Ba, bV as va, bW as xa, bX as Ga, bY as Ua, bZ as Wa, b_ as wa, b$ as Ya, c0 as Xa, c1 as Ha, c2 as ka, c3 as Ja, c4 as Ka, c5 as Va, c6 as za, c7 as Qa, c8 as Za, c9 as $a, ca as ja, cb as qa, cc as as, cd as ss } from "./index-D6R4z3Zs.js";
1
+ import { aC as e, aD as r, aE as t, aF as o, aG as b, aH as i, ap as l, aI as n, aJ as S, aK as c, aL as E, aM as L, aN as g, aO as T, aP as _, aQ as d, aR as A, aS as p, aT as I, aU as m, aV as D, aW as u, aX as M, aY as y, aZ as O, a_ as f, ao as R, a$ as N, aw as P, b0 as F, b1 as h, b2 as C, W as B, b3 as v, b4 as x, b5 as G, b6 as U, b7 as W, b8 as w, b9 as Y, ba as X, bb as H, bc as k, bd as J, be as K, bf as V, bg as z, bh as Q, bi as Z, bj as $, bk as j, bl as q, bm as aa, bn as sa, bo as ea, bp as ra, bq as ta, br as oa, bs as ba, bt as ia, bu as la, bv as na, bw as Sa, bx as ca, by as Ea, bz as La, bA as ga, bB as Ta, bC as _a, bD as da, bE as Aa, bF as pa, bG as Ia, bH as ma, bI as Da, bJ as ua, bK as Ma, bL as ya, bM as Oa, bN as fa, bO as Ra, bP as Na, bQ as Pa, bR as Fa, bS as ha, bT as Ca, bU as Ba, bV as va, bW as xa, bX as Ga, bY as Ua, bZ as Wa, b_ as wa, b$ as Ya, c0 as Xa, c1 as Ha, c2 as ka, c3 as Ja, c4 as Ka, c5 as Va, c6 as za, c7 as Qa, c8 as Za, c9 as $a, ca as ja, cb as qa, cc as as, cd as ss } from "./index-Cw9SL11B.js";
2
2
  export {
3
3
  e as ALL_POSITION_VALUES,
4
4
  r as AUDIT_EXEMPTIONS,
@@ -1,5 +1,5 @@
1
- import { c as se, t as ze, i as wt, a as Be, s as St, C as Pt, b as bt, F as Ct, A as Lt, d as It, R as fe, e as Gt, p as vt, m as Et, f as Ft, g as At, r as _e, h as jt, j as Rt, k as Ut, l as Mt, n as Ot } from "./raster-pipeline-X2-mnFQx.js";
2
- import { ax as Kt, ay as xt } from "./index-D6R4z3Zs.js";
1
+ import { c as se, t as ze, i as wt, a as Be, s as St, C as Pt, b as bt, F as Ct, A as Lt, d as It, R as fe, e as Gt, p as vt, m as Et, f as Ft, g as At, r as _e, h as jt, j as Rt, k as Ut, l as Mt, n as Ot } from "./raster-pipeline-D_Hw3Wax.js";
2
+ import { ax as Kt, ay as xt } from "./index-Cw9SL11B.js";
3
3
  import ye from "./index-CW1n5LdO.js";
4
4
  function Dt(e, t) {
5
5
  const n = e.length / 3, r = new Uint8ClampedArray(n * 4), o = 0, i = n, a = n * 2;
@@ -1070,7 +1070,7 @@ j.set(f.Zstd, () => import("./zstd-jXobGRcq.js").then((e) => e.decode));
1070
1070
  j.set(f.Jpeg, () => Promise.resolve(le));
1071
1071
  j.set(f.Jpeg6, () => Promise.resolve(le));
1072
1072
  j.set(f.Webp, () => Promise.resolve(le));
1073
- j.set(f.Lerc, () => import("./lerc-BdHcL8pi.js").then((e) => e.l).then((e) => e.decode));
1073
+ j.set(f.Lerc, () => import("./lerc-Dphd_hZG.js").then((e) => e.l).then((e) => e.decode));
1074
1074
  async function ce(e, t, n) {
1075
1075
  const r = j.get(t);
1076
1076
  if (!r)
@@ -1,5 +1,5 @@
1
1
  import { w as de } from "./mgrs-BY9bIvp4.js";
2
- import { am as he, an as fe, ao as se, ap as oe, aq as me, b as pe, ar as ge, l as Z, as as ve, d as be, at as xe, au as Pe, av as ye, aw as ie } from "./index-D6R4z3Zs.js";
2
+ import { am as he, an as fe, ao as se, ap as oe, aq as me, b as pe, ar as ge, l as Z, as as ve, d as be, at as xe, au as Pe, av as ye, aw as ie } from "./index-Cw9SL11B.js";
3
3
  function Te(r, e, t) {
4
4
  const { projectedCorners: n } = e, { topLeft: s, topRight: o, bottomRight: i, bottomLeft: a } = n, c = t(s[0], s[1]), u = t(o[0], o[1]), l = t(i[0], i[1]), h = t(a[0], a[1]), f = [
5
5
  c,
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.8.1";
8
+ export declare const LIBRARY_VERSION = "0.8.2";
@@ -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, j as pr, k as mr } from "./raster-pipeline-X2-mnFQx.js";
2
- import { ap as gr } from "./index-D6R4z3Zs.js";
1
+ import { A as ur, d as lr, R as zt, e as fr, m as dr, p as St, f as hr, j as pr, k as mr } from "./raster-pipeline-D_Hw3Wax.js";
2
+ import { ap as gr } from "./index-Cw9SL11B.js";
3
3
  import $t from "./index-CW1n5LdO.js";
4
4
  var Et;
5
5
  function h(e, t, n) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nika-js/onlymap",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Declarative deck.gl maps for HTML and React \u2014 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": {