@nika-js/onlymap 0.5.8 → 0.5.9
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.
- package/dist/{LercDecode.es-w8RZGC6C.js → LercDecode.es-C0sNWzF8.js} +1 -1
- package/dist/{basemap-CRHvqdyB.js → basemap-8hhWmvHS.js} +1 -1
- package/dist/{geoparquet-DP-cHcRU.js → geoparquet-DMnv5yzR.js} +1 -1
- package/dist/{index-C71sC-h9.js → index--M5J0eSx.js} +1 -1
- package/dist/{index-DxPAt_-m.js → index-BC-t0qL6.js} +1 -1
- package/dist/{index-C4E9YVtT.js → index-CAlZChhH.js} +16 -10
- package/dist/{index-BihwUsxS.js → index-COoJesma.js} +1 -1
- package/dist/{index-C_AAx0xW.js → index-CZeGkc2B.js} +2 -2
- package/dist/{lerc-BkDclmAx.js → lerc-CRVtSMWE.js} +2 -2
- package/dist/onlymap.standalone.js +8 -2
- package/dist/onlymapjs.js +1 -1
- package/dist/{raster-BXRFjFgb.js → raster-7fiRE9GO.js} +2 -2
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/skills/onlymapjs/SKILL.md +1 -1
- package/skills/onlymapjs/references/syntax.md +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ny, L as sy, M as oy, m as ay, c as ka, z as oc, a as Sd, G as sm, V as ly, W as cy, b as uy, g as hy, d as Vu, f as Ed, e as dy, l as py, u as fy, D as Qf, h as my } from "./index-
|
|
1
|
+
import { C as ny, L as sy, M as oy, m as ay, c as ka, z as oc, a as Sd, G as sm, V as ly, W as cy, b as uy, g as hy, d as Vu, f as Ed, e as dy, l as py, u as fy, D as Qf, h as my } from "./index-CAlZChhH.js";
|
|
2
2
|
const Cd = Math.PI / 180, gy = 180 / Math.PI;
|
|
3
3
|
function em(Pe, Q = 0) {
|
|
4
4
|
const me = Math.min(180, Pe) * Cd;
|
|
@@ -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-
|
|
1
|
+
import { ag as Be, ah as le, ai as ce, aj as De, ak as Oe, al as ke } from "./index-CAlZChhH.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";
|
|
@@ -31118,7 +31118,7 @@ const bQ = {
|
|
|
31118
31118
|
}, _Q = {
|
|
31119
31119
|
match: (t, e) => ["csv", "tsv"].includes(Zs(t) ?? "") || /text\/(csv|tab-separated-values)/i.test(e ?? ""),
|
|
31120
31120
|
parse: async (t) => {
|
|
31121
|
-
const [e, i, r] = await Promise.all([t.text(), import("./index-
|
|
31121
|
+
const [e, i, r] = await Promise.all([t.text(), import("./index-BC-t0qL6.js"), import("./index-CZeGkc2B.js")]), n = await r.parse(e, i.CSVLoader, { csv: { shape: "object-row-table" } });
|
|
31122
31122
|
return vQ(n.data) ?? n.data;
|
|
31123
31123
|
}
|
|
31124
31124
|
};
|
|
@@ -31140,7 +31140,7 @@ const wQ = {
|
|
|
31140
31140
|
parse: async (t, e) => {
|
|
31141
31141
|
t.body?.cancel().catch(() => {
|
|
31142
31142
|
});
|
|
31143
|
-
const [i, r] = await Promise.all([import("./index-
|
|
31143
|
+
const [i, r] = await Promise.all([import("./index-CZeGkc2B.js"), import("./index-COoJesma.js")]), n = t.url || e, s = /* @__PURE__ */ new Map(), o = (b) => {
|
|
31144
31144
|
const v = String(b);
|
|
31145
31145
|
let x = s.get(v);
|
|
31146
31146
|
return x || (x = hP(v), s.set(v, x)), x.then((S) => S.clone());
|
|
@@ -31153,13 +31153,13 @@ const wQ = {
|
|
|
31153
31153
|
}, xQ = {
|
|
31154
31154
|
match: (t, e) => Zs(t) === "kml" || /application\/vnd\.google-earth\.kml/i.test(e ?? ""),
|
|
31155
31155
|
parse: async (t) => {
|
|
31156
|
-
const [e, i, r] = await Promise.all([t.text(), import("./index-
|
|
31156
|
+
const [e, i, r] = await Promise.all([t.text(), import("./index-CZeGkc2B.js"), import("./index--M5J0eSx.js")]);
|
|
31157
31157
|
return lc(await i.parse(e, r.KMLLoader));
|
|
31158
31158
|
}
|
|
31159
31159
|
}, CQ = /* @__PURE__ */ new Set(["waypoint", "track", "route"]), SQ = {
|
|
31160
31160
|
match: (t, e) => Zs(t) === "gpx" || /application\/gpx\+xml/i.test(e ?? ""),
|
|
31161
31161
|
parse: async (t, e) => {
|
|
31162
|
-
const [i, r, n] = await Promise.all([t.text(), import("./index-
|
|
31162
|
+
const [i, r, n] = await Promise.all([t.text(), import("./index-CZeGkc2B.js"), import("./index--M5J0eSx.js")]), o = ((await r.parse(i, n.GPXLoader)).features ?? []).map((l) => {
|
|
31163
31163
|
const h = l.properties?._gpxType, m = h === "trk" ? "track" : h === "rte" ? "route" : "waypoint";
|
|
31164
31164
|
return { ...l, properties: { ...l.properties, _gpxKind: m } };
|
|
31165
31165
|
}), a = e.split("#")[1]?.toLowerCase().replace(/s$/, "");
|
|
@@ -31192,7 +31192,7 @@ const wQ = {
|
|
|
31192
31192
|
t.arrayBuffer(),
|
|
31193
31193
|
import("./index-BYbMtNVH.js"),
|
|
31194
31194
|
import("./index-CgPV7QlM.js"),
|
|
31195
|
-
import("./geoparquet-
|
|
31195
|
+
import("./geoparquet-DMnv5yzR.js")
|
|
31196
31196
|
]), o = new Uint8Array(i);
|
|
31197
31197
|
if (o.length < 8 || o[0] !== 80 || o[1] !== 65 || o[2] !== 82 || o[3] !== 49)
|
|
31198
31198
|
throw new Error(`data="${e}": not a Parquet file (missing PAR1 magic bytes).`);
|
|
@@ -74991,7 +74991,7 @@ fs({
|
|
|
74991
74991
|
});
|
|
74992
74992
|
fs({
|
|
74993
74993
|
type: "COGLayer",
|
|
74994
|
-
loadClass: () => import("./raster-
|
|
74994
|
+
loadClass: () => import("./raster-7fiRE9GO.js").then((t) => t.r).then((t) => t.OmCOGLayer),
|
|
74995
74995
|
props: [
|
|
74996
74996
|
{ attr: "src", kind: "scalar", deckProp: "geotiff", type: "string", required: !0 },
|
|
74997
74997
|
{ attr: "min", kind: "scalar", deckProp: "rescaleMin", type: "number" },
|
|
@@ -75176,7 +75176,7 @@ class gF {
|
|
|
75176
75176
|
`[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).`
|
|
75177
75177
|
);
|
|
75178
75178
|
else {
|
|
75179
|
-
this.mode = "basemap", this.basemapAttr = e, import("./basemap-
|
|
75179
|
+
this.mode = "basemap", this.basemapAttr = e, import("./basemap-8hhWmvHS.js").then(({ MapLibreBasemapAdapter: s }) => {
|
|
75180
75180
|
this.destroyed || i !== this.rendererGeneration || (this.basemap = new s(
|
|
75181
75181
|
this.parent,
|
|
75182
75182
|
// this.basemapAttr, not the captured param: a style switch that
|
|
@@ -75208,7 +75208,13 @@ class gF {
|
|
|
75208
75208
|
}
|
|
75209
75209
|
this.mode = "standalone", this.basemapAttr = void 0, this.deck = new t1({
|
|
75210
75210
|
parent: this.parent,
|
|
75211
|
-
|
|
75211
|
+
// repeat: render world copies horizontally (issue #30). The basemap path
|
|
75212
|
+
// gets this for free — @deck.gl/mapbox derives `repeat` from the map's
|
|
75213
|
+
// renderWorldCopies (default true) — but a standalone Deck defaults to a
|
|
75214
|
+
// single copy, so data near/across the antimeridian (or any view whose
|
|
75215
|
+
// extent leaves [-180, 180]) went blank once panned. Pure rendering flag;
|
|
75216
|
+
// it does not touch the camera math.
|
|
75217
|
+
views: new Yb({ repeat: !0 }),
|
|
75212
75218
|
viewState: this.viewState,
|
|
75213
75219
|
controller: I3(),
|
|
75214
75220
|
layers: [],
|
|
@@ -76029,7 +76035,7 @@ function CF({ layerIRs: t, core: e, mapEl: i, selection: r, history: n }) {
|
|
|
76029
76035
|
}
|
|
76030
76036
|
};
|
|
76031
76037
|
}
|
|
76032
|
-
const SF = "0.5.
|
|
76038
|
+
const SF = "0.5.9", I_e = "https://om-api.nika.eco/v1/t", mu = { endpoint: I_e };
|
|
76033
76039
|
function P_e(t) {
|
|
76034
76040
|
for (const e of Object.keys(t))
|
|
76035
76041
|
mu[e] = t[e];
|
|
@@ -79199,7 +79205,7 @@ function Awe() {
|
|
|
79199
79205
|
}), xo = null, Qy = void 0, YA.clear());
|
|
79200
79206
|
}
|
|
79201
79207
|
async function dwe() {
|
|
79202
|
-
return import("./raster-
|
|
79208
|
+
return import("./raster-7fiRE9GO.js").then((t) => t.r);
|
|
79203
79209
|
}
|
|
79204
79210
|
const Xwe = {
|
|
79205
79211
|
registerLayer: fs,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ak as Bt, ax as Xt, ay as Yt, az as Us } from "./index-
|
|
1
|
+
import { ak as Bt, ax as Xt, ay as Yt, az as Us } from "./index-CAlZChhH.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 { 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-
|
|
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-
|
|
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-CAlZChhH.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-CAlZChhH.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 { C as a, D as s } from "./raster-
|
|
1
|
+
import { C as a, D as s } from "./raster-7fiRE9GO.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-
|
|
11
|
+
const e = await import("./LercDecode.es-C0sNWzF8.js");
|
|
12
12
|
return l || (await e.load(), l = !0), e;
|
|
13
13
|
}
|
|
14
14
|
async function i(e, r) {
|
|
@@ -87588,7 +87588,13 @@ class UAe {
|
|
|
87588
87588
|
}
|
|
87589
87589
|
this.mode = "standalone", this.basemapAttr = void 0, this.deck = new mE({
|
|
87590
87590
|
parent: this.parent,
|
|
87591
|
-
|
|
87591
|
+
// repeat: render world copies horizontally (issue #30). The basemap path
|
|
87592
|
+
// gets this for free — @deck.gl/mapbox derives `repeat` from the map's
|
|
87593
|
+
// renderWorldCopies (default true) — but a standalone Deck defaults to a
|
|
87594
|
+
// single copy, so data near/across the antimeridian (or any view whose
|
|
87595
|
+
// extent leaves [-180, 180]) went blank once panned. Pure rendering flag;
|
|
87596
|
+
// it does not touch the camera math.
|
|
87597
|
+
views: new wT({ repeat: !0 }),
|
|
87592
87598
|
viewState: this.viewState,
|
|
87593
87599
|
controller: wJ(),
|
|
87594
87600
|
layers: [],
|
|
@@ -88409,7 +88415,7 @@ function YAe({ layerIRs: t, core: e, mapEl: i, selection: r, history: n }) {
|
|
|
88409
88415
|
}
|
|
88410
88416
|
};
|
|
88411
88417
|
}
|
|
88412
|
-
const KAe = "0.5.
|
|
88418
|
+
const KAe = "0.5.9", ist = "https://om-api.nika.eco/v1/t", UE = { endpoint: ist };
|
|
88413
88419
|
function rst(t) {
|
|
88414
88420
|
for (const e of Object.keys(t))
|
|
88415
88421
|
UE[e] = t[e];
|
package/dist/onlymapjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aA as e, aB as r, aC as t, aD as o, aE as b, aF as i, ap as l, aG as n, aH as S, aI as E, aJ as T, aK as L, aL as g, aM as A, aN as m, aO as _, aP as p, aQ as d, aR as c, aS as y, aT as I, aU as M, aV as u, aW as D, ao as O, aX as N, aw as R, aY as f, aZ as P, a_ as F, W as h, a$ as B, b0 as C, b1 as G, b2 as U, b3 as W, b4 as v, b5 as x, b6 as w, b7 as Y, b8 as H, b9 as X, ba as k, bb as J, bc as K, bd as V, be as z, bf as Q, bg as Z, bh as $, bi as j, bj as q, bk as aa, bl as sa, bm as ea, bn as ra, bo as ta, bp as oa, bq as ba, br as ia, bs as la, bt as na, bu as Sa, bv as Ea, bw as Ta, bx as La, by as ga, bz as Aa, bA as ma, bB as _a, bC as pa, bD as da, bE as ca, bF as ya, bG as Ia, bH as Ma, bI as ua, bJ as Da, bK as Oa, bL as Na, bM as Ra, bN as fa, bO as Pa, bP as Fa, bQ as ha, bR as Ba, bS as Ca, bT as Ga, bU as Ua, bV as Wa, bW as va, bX as xa, bY as wa, bZ as Ya, b_ as Ha, b$ as Xa } from "./index-
|
|
1
|
+
import { aA as e, aB as r, aC as t, aD as o, aE as b, aF as i, ap as l, aG as n, aH as S, aI as E, aJ as T, aK as L, aL as g, aM as A, aN as m, aO as _, aP as p, aQ as d, aR as c, aS as y, aT as I, aU as M, aV as u, aW as D, ao as O, aX as N, aw as R, aY as f, aZ as P, a_ as F, W as h, a$ as B, b0 as C, b1 as G, b2 as U, b3 as W, b4 as v, b5 as x, b6 as w, b7 as Y, b8 as H, b9 as X, ba as k, bb as J, bc as K, bd as V, be as z, bf as Q, bg as Z, bh as $, bi as j, bj as q, bk as aa, bl as sa, bm as ea, bn as ra, bo as ta, bp as oa, bq as ba, br as ia, bs as la, bt as na, bu as Sa, bv as Ea, bw as Ta, bx as La, by as ga, bz as Aa, bA as ma, bB as _a, bC as pa, bD as da, bE as ca, bF as ya, bG as Ia, bH as Ma, bI as ua, bJ as Da, bK as Oa, bL as Na, bM as Ra, bN as fa, bO as Pa, bP as Fa, bQ as ha, bR as Ba, bS as Ca, bT as Ga, bU as Ua, bV as Wa, bW as va, bX as xa, bY as wa, bZ as Ya, b_ as Ha, b$ as Xa } from "./index-CAlZChhH.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ALL_POSITION_VALUES,
|
|
4
4
|
r as AUDIT_EXEMPTIONS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Re from "./index-CW1n5LdO.js";
|
|
2
|
-
import { am as Dt, an as zt, ao as ot, ap as it, aq as Ut, b as Nt, ar as Bt, l as Me, as as Kt, d as Wt, at as _t, au as kt, av as Xt, aw as st } from "./index-
|
|
2
|
+
import { am as Dt, an as zt, ao as ot, ap as it, aq as Ut, b as Nt, ar as Bt, l as Me, as as Kt, d as Wt, at as _t, au as kt, av as Xt, aw as st } from "./index-CAlZChhH.js";
|
|
3
3
|
import { w as Ht } from "./mgrs-BY9bIvp4.js";
|
|
4
4
|
function Vt(e, t, n) {
|
|
5
5
|
const { projectedCorners: r } = t, { topLeft: o, topRight: i, bottomRight: s, bottomLeft: a } = r, l = n(o[0], o[1]), c = n(i[0], i[1]), u = n(s[0], s[1]), d = n(a[0], a[1]), p = [
|
|
@@ -2378,7 +2378,7 @@ D.set(w.Zstd, () => import("./zstd-jXobGRcq.js").then((e) => e.decode));
|
|
|
2378
2378
|
D.set(w.Jpeg, () => Promise.resolve(je));
|
|
2379
2379
|
D.set(w.Jpeg6, () => Promise.resolve(je));
|
|
2380
2380
|
D.set(w.Webp, () => Promise.resolve(je));
|
|
2381
|
-
D.set(w.Lerc, () => import("./lerc-
|
|
2381
|
+
D.set(w.Lerc, () => import("./lerc-CRVtSMWE.js").then((e) => e.l).then((e) => e.decode));
|
|
2382
2382
|
async function xe(e, t, n) {
|
|
2383
2383
|
const r = D.get(t);
|
|
2384
2384
|
if (!r)
|
package/dist/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nika-js/onlymap",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
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.5.
|
|
26
|
+
For no-build CDN pages, use the single-file standalone bundle from a raw-file CDN — `https://unpkg.com/@nika-js/onlymap@0.5.9` (the bare package URL serves `dist/onlymap.standalone.js`) — plus `<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.5.9/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.5.
|
|
20
|
-
<script type="module" src="https://unpkg.com/@nika-js/onlymap@0.5.
|
|
19
|
+
<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.5.9/dist/onlymapjs.css">
|
|
20
|
+
<script type="module" src="https://unpkg.com/@nika-js/onlymap@0.5.9"></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).
|