@nika-js/onlymap 0.5.7 → 0.5.8
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-Bp2rG98n.js → LercDecode.es-w8RZGC6C.js} +1 -1
- package/dist/{basemap-CfOA0HWY.js → basemap-CRHvqdyB.js} +1 -1
- package/dist/{geoparquet-kW7KUrwB.js → geoparquet-DP-cHcRU.js} +1 -1
- package/dist/{index-BLy1eTWe.js → index-BihwUsxS.js} +1 -1
- package/dist/{index-CUKgoX_E.js → index-C4E9YVtT.js} +9 -9
- package/dist/{index-MRS7UAHr.js → index-C71sC-h9.js} +1 -1
- package/dist/{index-wZ6n6ggy.js → index-C_AAx0xW.js} +2 -2
- package/dist/{index-CnY_rdB8.js → index-DxPAt_-m.js} +1 -1
- package/dist/{lerc-DWbkmLYR.js → lerc-BkDclmAx.js} +2 -2
- package/dist/onlymap.standalone.js +19357 -19020
- package/dist/onlymapjs.js +1 -1
- package/dist/{raster-5jEwGISN.js → raster-BXRFjFgb.js} +1219 -882
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
- 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-C4E9YVtT.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 { 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-C4E9YVtT.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";
|
|
@@ -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-DxPAt_-m.js"), import("./index-C_AAx0xW.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-C_AAx0xW.js"), import("./index-BihwUsxS.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-C_AAx0xW.js"), import("./index-C71sC-h9.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-C_AAx0xW.js"), import("./index-C71sC-h9.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-DP-cHcRU.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-BXRFjFgb.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-CRHvqdyB.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
|
|
@@ -76029,7 +76029,7 @@ function CF({ layerIRs: t, core: e, mapEl: i, selection: r, history: n }) {
|
|
|
76029
76029
|
}
|
|
76030
76030
|
};
|
|
76031
76031
|
}
|
|
76032
|
-
const SF = "0.5.
|
|
76032
|
+
const SF = "0.5.8", I_e = "https://om-api.nika.eco/v1/t", mu = { endpoint: I_e };
|
|
76033
76033
|
function P_e(t) {
|
|
76034
76034
|
for (const e of Object.keys(t))
|
|
76035
76035
|
mu[e] = t[e];
|
|
@@ -79199,7 +79199,7 @@ function Awe() {
|
|
|
79199
79199
|
}), xo = null, Qy = void 0, YA.clear());
|
|
79200
79200
|
}
|
|
79201
79201
|
async function dwe() {
|
|
79202
|
-
return import("./raster-
|
|
79202
|
+
return import("./raster-BXRFjFgb.js").then((t) => t.r);
|
|
79203
79203
|
}
|
|
79204
79204
|
const Xwe = {
|
|
79205
79205
|
registerLayer: fs,
|
|
@@ -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-C4E9YVtT.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-C4E9YVtT.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-
|
|
1
|
+
import { ag as Be, ah as le, ai as ce, aj as De, ak as Oe, al as ke } from "./index-C4E9YVtT.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-
|
|
1
|
+
import { C as a, D as s } from "./raster-BXRFjFgb.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-w8RZGC6C.js");
|
|
12
12
|
return l || (await e.load(), l = !0), e;
|
|
13
13
|
}
|
|
14
14
|
async function i(e, r) {
|