@nika-js/onlymap 0.13.2 → 0.13.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.
- package/CHANGELOG.md +28 -0
- package/README.md +8 -3
- package/dist/{basemap-CdSCIWCl.js → basemap-BiC_RwbV.js} +3 -7
- package/dist/basemap.d.ts +1 -5
- package/dist/bbox-tokens.d.ts +70 -0
- package/dist/{build-CUx4yR_O.js → build-DQCmcQE1.js} +1 -1
- package/dist/{client-DVkMuuPp.js → client-C0CgEs_P.js} +2 -2
- package/dist/clip-box-controller.d.ts +0 -17
- package/dist/ctx.d.ts +15 -0
- package/dist/data-layer.d.ts +22 -23
- package/dist/dom-tile-layer.d.ts +30 -0
- package/dist/draw-controller.d.ts +1 -1
- package/dist/elements/om-map.d.ts +12 -1
- package/dist/feature-service.d.ts +42 -0
- package/dist/geodesy.d.ts +6 -5
- package/dist/{geoparquet-DuCEsCOu.js → geoparquet-DbVJrJYG.js} +1 -1
- package/dist/{globe-view-BWNfn-Sx.js → globe-view-CrGbvqqZ.js} +1 -1
- package/dist/grid-tiles.d.ts +117 -0
- package/dist/{hillshade-DyfYxqNm.js → hillshade-CGY_OBaG.js} +2 -2
- package/dist/{hillshade-shader-BWA0USDQ.js → hillshade-shader-w8tmFgaV.js} +1 -1
- package/dist/{index-Cc3huYsW.js → index-2lD29y87.js} +25 -25
- package/dist/index-BahtHUrg.js +8458 -0
- package/dist/{index-DRGcZmBm.js → index-Bdltig68.js} +1 -1
- package/dist/{index-DabUE8w3.js → index-ChoEWeXU.js} +1 -1
- package/dist/{index-DfzI_j0D.js → index-Cm2sfhw7.js} +1 -1
- package/dist/{index-BfHaNHyY.js → index-DrCMvhhr.js} +32928 -31454
- package/dist/{index-CCj9Z5yt.js → index-Dtsf-TPD.js} +22 -22
- package/dist/{index-DYrgHprN.js → index-GfvWJDX0.js} +36 -36
- package/dist/{index-dUoVyYIW.js → index-QrGqSW_H.js} +3 -3
- package/dist/{index-DiDoH_BG.js → index-xF9sKoMB.js} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/layer-registry.d.ts +1 -0
- package/dist/layers/warped-bitmap-layer.d.ts +14 -1
- package/dist/{lerc-CUV0h9Ci.js → lerc-DxujwTm7.js} +1 -1
- package/dist/onlymap.standalone.js +71944 -61501
- package/dist/onlymapjs.js +21 -21
- package/dist/parse-manifest.d.ts +4 -1
- package/dist/plane-gpu/plane-basemap.d.ts +158 -158
- package/dist/plane-vector/plane-mvt-layer.d.ts +158 -158
- package/dist/plane-warp.d.ts +14 -1
- package/dist/pmtiles.d.ts +76 -0
- package/dist/{post-process-effect-DPrpqybM.js → post-process-effect-BL9rBDEh.js} +1 -1
- package/dist/programmatic.d.ts +17 -1
- package/dist/{raster-CrRQNJE7.js → raster-Bq768NZr.js} +4 -4
- package/dist/{raster-pipeline-D9g8RAo4.js → raster-pipeline-C898iYqw.js} +11 -11
- package/dist/runtime-core.d.ts +118 -1
- package/dist/{terrain-inspect-GowNVtMZ.js → terrain-inspect-DNZO8z6S.js} +1 -1
- package/dist/{text-on-path-BoFbm-tl.js → text-on-path-owfh8Ac6.js} +1 -1
- package/dist/tile-url.d.ts +162 -0
- package/dist/time-dimension.d.ts +25 -0
- package/dist/vector-style-BlnKzVND.js +518 -0
- package/dist/vector-style.d.ts +59 -0
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-C8CU8LXU.js → zarr-CMWiR63-.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/llms.txt +3 -3
- package/onlymapjs.attributes.json +15 -0
- package/onlymapjs.html-data.json +41 -1
- package/package.json +5 -2
- package/skills/onlymapjs/SKILL.md +9 -2
- package/skills/onlymapjs/references/syntax.md +43 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aV as tt, aW as et, aX as q, ak as nt, aa as ot, aY as L, aZ as rt, a_ as D, af as st, ag as U, a$ as B, b0 as it } from "./index-DrCMvhhr.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);
|
|
@@ -14,7 +14,7 @@ function Q(t, r) {
|
|
|
14
14
|
function O(t) {
|
|
15
15
|
return Array.isArray(t) && typeof t[0] == "number" && typeof t[1] == "number";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function X(t) {
|
|
18
18
|
return Array.isArray(t) && O(t[0]);
|
|
19
19
|
}
|
|
20
20
|
function V(t) {
|
|
@@ -31,9 +31,9 @@ function V(t) {
|
|
|
31
31
|
return e(t), s ? [(r + o) / 2, (n + a) / 2] : null;
|
|
32
32
|
}
|
|
33
33
|
function z(t, r) {
|
|
34
|
-
return !Array.isArray(t) || O(t) ? t :
|
|
34
|
+
return !Array.isArray(t) || O(t) ? t : X(t) ? r(t) : t.map((n) => z(n, r));
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Z(t) {
|
|
37
37
|
if (t.length < 3) return !1;
|
|
38
38
|
const r = t[0], n = t[t.length - 1];
|
|
39
39
|
return r[0] === n[0] && r[1] === n[1];
|
|
@@ -67,7 +67,7 @@ function ct(t, r, n, o) {
|
|
|
67
67
|
}
|
|
68
68
|
const u = [];
|
|
69
69
|
for (let l = 0; l < t.length; l++) f[l] && u.push(t[l]);
|
|
70
|
-
return
|
|
70
|
+
return Z(t) && u.length < 4 ? t : u;
|
|
71
71
|
}
|
|
72
72
|
function ut(t, r) {
|
|
73
73
|
const n = V(t);
|
|
@@ -76,7 +76,7 @@ function ut(t, r) {
|
|
|
76
76
|
const Y = 0.25;
|
|
77
77
|
function ft(t, r) {
|
|
78
78
|
let n = t;
|
|
79
|
-
const o =
|
|
79
|
+
const o = Z(t);
|
|
80
80
|
for (let a = 0; a < r; a++) {
|
|
81
81
|
const s = o ? n.slice(0, -1) : n;
|
|
82
82
|
if (s.length < 3) return n;
|
|
@@ -107,8 +107,8 @@ function ht(t) {
|
|
|
107
107
|
}
|
|
108
108
|
function mt(t) {
|
|
109
109
|
const r = [], n = (o) => {
|
|
110
|
-
if (Array.isArray(o) &&
|
|
111
|
-
if (
|
|
110
|
+
if (Array.isArray(o) && !X(o)) {
|
|
111
|
+
if (X(o[0])) {
|
|
112
112
|
r.push(o);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
@@ -159,7 +159,7 @@ function yt(t, r) {
|
|
|
159
159
|
for (let o = 0; o < t.length; o++) n.push(...pt(t[o], o, r));
|
|
160
160
|
return n;
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const G = 1e20;
|
|
163
163
|
function gt(t, r) {
|
|
164
164
|
const n = new Uint8Array(r.width * r.height);
|
|
165
165
|
if (t.length === 0) return n;
|
|
@@ -193,12 +193,12 @@ function gt(t, r) {
|
|
|
193
193
|
}
|
|
194
194
|
function C(t, r, n, o, a) {
|
|
195
195
|
let s = 0;
|
|
196
|
-
o[0] = 0, a[0] = -
|
|
196
|
+
o[0] = 0, a[0] = -G, a[1] = G;
|
|
197
197
|
for (let e = 1; e < r; e++) {
|
|
198
198
|
let f = (t[e] + e * e - (t[o[s]] + o[s] * o[s])) / (2 * e - 2 * o[s]);
|
|
199
199
|
for (; f <= a[s]; )
|
|
200
200
|
s--, f = (t[e] + e * e - (t[o[s]] + o[s] * o[s])) / (2 * e - 2 * o[s]);
|
|
201
|
-
s++, o[s] = e, a[s] = f, a[s + 1] =
|
|
201
|
+
s++, o[s] = e, a[s] = f, a[s + 1] = G;
|
|
202
202
|
}
|
|
203
203
|
s = 0;
|
|
204
204
|
for (let e = 0; e < r; e++) {
|
|
@@ -209,7 +209,7 @@ function C(t, r, n, o, a) {
|
|
|
209
209
|
}
|
|
210
210
|
function W(t, r, n) {
|
|
211
211
|
const o = new Float64Array(r * n);
|
|
212
|
-
for (let i = 0; i < o.length; i++) o[i] = t[i] ? 0 :
|
|
212
|
+
for (let i = 0; i < o.length; i++) o[i] = t[i] ? 0 : G;
|
|
213
213
|
const a = Math.max(r, n), s = new Float64Array(a), e = new Float64Array(a), f = new Int32Array(a), c = new Float64Array(a + 1);
|
|
214
214
|
for (let i = 0; i < r; i++) {
|
|
215
215
|
for (let u = 0; u < n; u++) s[u] = o[u * r + i];
|
|
@@ -234,18 +234,18 @@ function bt(t, r) {
|
|
|
234
234
|
}
|
|
235
235
|
return c;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function $(t, r, n) {
|
|
238
238
|
const o = r - t;
|
|
239
239
|
return o === 0 ? 0.5 : (n - t) / o;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function K(t, r, n, o) {
|
|
242
242
|
const { width: a, height: s, cell: e, originX: f, originY: c } = r, i = [], u = (m, d) => t[d * a + m], l = (m, d) => o === void 0 || o[d * a + m] === 1 && o[d * a + m + 1] === 1 && o[(d + 1) * a + m] === 1 && o[(d + 1) * a + m + 1] === 1, y = (m) => f + m * e, h = (m) => c + m * e;
|
|
243
243
|
for (let m = 0; m + 1 < s; m++)
|
|
244
244
|
for (let d = 0; d + 1 < a; d++) {
|
|
245
245
|
if (!l(d, m)) continue;
|
|
246
246
|
const p = u(d, m), M = u(d + 1, m), F = u(d + 1, m + 1), w = u(d, m + 1), N = (p < n ? 8 : 0) | (M < n ? 4 : 0) | (F < n ? 2 : 0) | (w < n ? 1 : 0);
|
|
247
247
|
if (N === 0 || N === 15) continue;
|
|
248
|
-
const k = [y(d) +
|
|
248
|
+
const k = [y(d) + $(p, M, n) * e, h(m)], g = [y(d + 1), h(m) + $(M, F, n) * e], b = [y(d) + $(w, F, n) * e, h(m + 1)], A = [y(d), h(m) + $(p, w, n) * e], x = (P, R) => {
|
|
249
249
|
i.push([P[0], P[1], R[0], R[1]]);
|
|
250
250
|
};
|
|
251
251
|
switch (N) {
|
|
@@ -346,7 +346,7 @@ function At(t) {
|
|
|
346
346
|
function Ft(t) {
|
|
347
347
|
const r = [], n = (o) => {
|
|
348
348
|
if (Array.isArray(o)) {
|
|
349
|
-
if (
|
|
349
|
+
if (X(o)) {
|
|
350
350
|
const a = o, s = a[0], e = a[a.length - 1], f = a.length > 2 && s[0] === e[0] && s[1] === e[1];
|
|
351
351
|
r.push(f ? a : [...a, [s[0], s[1]]]);
|
|
352
352
|
return;
|
|
@@ -368,7 +368,7 @@ function St(t, r) {
|
|
|
368
368
|
if (u.width * u.height > r.maxCells) return [];
|
|
369
369
|
const l = bt(s, u), y = r.distanceMetres < 0 ? -1 : 1, h = [];
|
|
370
370
|
for (let m = 1; m <= f; m++) {
|
|
371
|
-
const d = y * e * m, p =
|
|
371
|
+
const d = y * e * m, p = K(l, u, d);
|
|
372
372
|
p.length !== 0 && h.push({
|
|
373
373
|
rings: p.map((M) => M.map(([F, w]) => a.toLngLat(F, w))),
|
|
374
374
|
band: m
|
|
@@ -425,8 +425,8 @@ async function Pt(t) {
|
|
|
425
425
|
const A = (k - c) * I, x = (g - u) * I, P = Math.min(I, b.height), R = Math.min(I, b.width);
|
|
426
426
|
for (let v = 0; v < P; v++)
|
|
427
427
|
for (let E = 0; E < R; E++) {
|
|
428
|
-
const
|
|
429
|
-
d[j] = ot(t.decoder, b.data[
|
|
428
|
+
const _ = (v * b.width + E) * 4, j = (x + v) * h + A + E;
|
|
429
|
+
d[j] = ot(t.decoder, b.data[_], b.data[_ + 1], b.data[_ + 2]), p[j] = 1;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
const F = { width: h, height: m, cell: 1, originX: 0, originY: 0 }, w = 2 ** s;
|
|
@@ -446,7 +446,7 @@ async function Rt(t) {
|
|
|
446
446
|
if (!(c > 0) || !Number.isFinite(e) || f <= e) return [];
|
|
447
447
|
const [i, u, l, y] = t.bounds, h = ([p, M]) => p >= i && p <= l && M >= u && M <= y, m = [], d = Math.ceil(e / c) * c;
|
|
448
448
|
for (let p = d, M = 0; p <= f && M < 400; p += c, M++)
|
|
449
|
-
for (const F of
|
|
449
|
+
for (const F of K(n, a, p, o)) {
|
|
450
450
|
const w = F.map(([N, k]) => s(N, k));
|
|
451
451
|
w.some(h) && m.push({
|
|
452
452
|
type: "Feature",
|
|
@@ -596,7 +596,7 @@ async function Yt(t, r, n, o, a) {
|
|
|
596
596
|
S(a, `<om-transform type="contour"> src="${f}" is neither a terrain preset nor a {z}/{x}/{y} template.`, 'Use src="terrarium", or a raw tile URL plus decoder=.');
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
|
-
const y = e.params.decoder ?? (typeof u?.decoder == "string" ? u.decoder : void 0), h = y && y in
|
|
599
|
+
const y = e.params.decoder ?? (typeof u?.decoder == "string" ? u.decoder : void 0), h = y && y in U ? U[y] : u?.decoder ?? U.terrarium, m = e.params.zoom === void 0 ? 10 : Number(e.params.zoom), d = await Rt({
|
|
600
600
|
template: l,
|
|
601
601
|
decoder: h,
|
|
602
602
|
zoom: Number.isFinite(m) ? m : 10,
|
|
@@ -627,7 +627,7 @@ export {
|
|
|
627
627
|
W as distanceTransform,
|
|
628
628
|
xt as gridFor,
|
|
629
629
|
z as mapRings,
|
|
630
|
-
|
|
630
|
+
K as marchingSquares,
|
|
631
631
|
Q as metricFrame,
|
|
632
632
|
Et as parseBounds,
|
|
633
633
|
gt as rasterizeRings,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bS as Be, bT as le, bU as ce, bV as De, bW as Oe, bX as ke } from "./index-DrCMvhhr.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";
|
|
@@ -6,17 +6,17 @@ function de(t) {
|
|
|
6
6
|
switch (t.shape) {
|
|
7
7
|
case "array-row-table":
|
|
8
8
|
case "object-row-table":
|
|
9
|
-
return
|
|
9
|
+
return Pe(t.data);
|
|
10
10
|
case "geojson-table":
|
|
11
11
|
return ze(t.features);
|
|
12
12
|
case "columnar-table":
|
|
13
|
-
return
|
|
13
|
+
return He(t.data);
|
|
14
14
|
case "arrow-table":
|
|
15
15
|
default:
|
|
16
16
|
throw new Error("Deduce schema");
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function He(t) {
|
|
20
20
|
const e = [];
|
|
21
21
|
for (const [r, s] of Object.entries(t)) {
|
|
22
22
|
const n = Qe(s, r);
|
|
@@ -24,7 +24,7 @@ function Pe(t) {
|
|
|
24
24
|
}
|
|
25
25
|
return { fields: e, metadata: {} };
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Pe(t) {
|
|
28
28
|
if (!t.length)
|
|
29
29
|
throw new Error("deduce from empty table");
|
|
30
30
|
const e = [], r = t[0];
|
|
@@ -371,7 +371,7 @@ class we {
|
|
|
371
371
|
this.columns[e.name] = new r(this.allocated);
|
|
372
372
|
else if (Array.isArray(s))
|
|
373
373
|
s.length = this.allocated;
|
|
374
|
-
else if (
|
|
374
|
+
else if (De(s)) {
|
|
375
375
|
const n = new r(this.allocated);
|
|
376
376
|
n.set(s), this.columns[e.name] = n;
|
|
377
377
|
} else
|
|
@@ -859,19 +859,19 @@ function W(t = {}) {
|
|
|
859
859
|
return S();
|
|
860
860
|
if (c || c !== !1 && i.indexOf(h) === -1) {
|
|
861
861
|
const R = i.split(r);
|
|
862
|
-
for (let
|
|
863
|
-
const
|
|
864
|
-
if (o +=
|
|
862
|
+
for (let D = 0; D < R.length; D++) {
|
|
863
|
+
const O = R[D];
|
|
864
|
+
if (o += O.length, D !== R.length - 1)
|
|
865
865
|
o += r.length;
|
|
866
866
|
else if (g)
|
|
867
867
|
return S();
|
|
868
|
-
if (!(s &&
|
|
868
|
+
if (!(s && O.substr(0, C) === s)) {
|
|
869
869
|
if (T) {
|
|
870
|
-
if (y = [], x(
|
|
870
|
+
if (y = [], x(O.split(e)), I(), u)
|
|
871
871
|
return S();
|
|
872
872
|
} else
|
|
873
|
-
x(
|
|
874
|
-
if (a &&
|
|
873
|
+
x(O.split(e));
|
|
874
|
+
if (a && D >= a)
|
|
875
875
|
return y = y.slice(0, a), S(!0);
|
|
876
876
|
}
|
|
877
877
|
}
|
|
@@ -891,10 +891,10 @@ function W(t = {}) {
|
|
|
891
891
|
row: y.length,
|
|
892
892
|
// row has yet to be inserted
|
|
893
893
|
index: o
|
|
894
|
-
}),
|
|
894
|
+
}), H();
|
|
895
895
|
if (b === w - 1) {
|
|
896
896
|
const Ee = i.substring(o, b).replace(B, h);
|
|
897
|
-
return
|
|
897
|
+
return H(Ee);
|
|
898
898
|
}
|
|
899
899
|
if (h === f && i[b + 1] === f) {
|
|
900
900
|
b++;
|
|
@@ -902,17 +902,17 @@ function W(t = {}) {
|
|
|
902
902
|
}
|
|
903
903
|
if (h !== f && b !== 0 && i[b - 1] === f)
|
|
904
904
|
continue;
|
|
905
|
-
const R = _ === -1 ? A : Math.min(A, _),
|
|
906
|
-
if (i[b + 1 +
|
|
907
|
-
if (p.push(i.substring(o, b).replace(B, h)), o = b + 1 +
|
|
905
|
+
const R = _ === -1 ? A : Math.min(A, _), D = K(R);
|
|
906
|
+
if (i[b + 1 + D] === e) {
|
|
907
|
+
if (p.push(i.substring(o, b).replace(B, h)), o = b + 1 + D + l, A = i.indexOf(e, o), _ = i.indexOf(r, o), T && (I(), u))
|
|
908
908
|
return S();
|
|
909
909
|
if (a && y.length >= a)
|
|
910
910
|
return S(!0);
|
|
911
911
|
break;
|
|
912
912
|
}
|
|
913
|
-
const
|
|
914
|
-
if (i.substr(b + 1 +
|
|
915
|
-
if (p.push(i.substring(o, b).replace(B, h)), Y(b + 1 +
|
|
913
|
+
const O = K(_);
|
|
914
|
+
if (i.substr(b + 1 + O, m) === r) {
|
|
915
|
+
if (p.push(i.substring(o, b).replace(B, h)), Y(b + 1 + O + m), A = i.indexOf(e, o), T && (I(), u))
|
|
916
916
|
return S();
|
|
917
917
|
if (a && y.length >= a)
|
|
918
918
|
return S(!0);
|
|
@@ -952,27 +952,27 @@ function W(t = {}) {
|
|
|
952
952
|
}
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
return
|
|
955
|
+
return H();
|
|
956
956
|
function x(R) {
|
|
957
957
|
y.push(R), k = o;
|
|
958
958
|
}
|
|
959
959
|
function K(R) {
|
|
960
|
-
let
|
|
960
|
+
let D = 0;
|
|
961
961
|
if (R !== -1) {
|
|
962
|
-
const
|
|
963
|
-
|
|
962
|
+
const O = i.substring(b + 1, R);
|
|
963
|
+
O && O.trim() === "" && (D = O.length);
|
|
964
964
|
}
|
|
965
|
-
return
|
|
965
|
+
return D;
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function H(R) {
|
|
968
968
|
return g || (typeof R > "u" && (R = i.substr(o)), p.push(R), o = w, x(p), T && I()), S();
|
|
969
969
|
}
|
|
970
970
|
function Y(R) {
|
|
971
971
|
o = R, x(p), p = [], _ = i.indexOf(r, o);
|
|
972
972
|
}
|
|
973
|
-
function S(R,
|
|
973
|
+
function S(R, D) {
|
|
974
974
|
return {
|
|
975
|
-
data:
|
|
975
|
+
data: D || !1 ? y[0] : y,
|
|
976
976
|
errors: v,
|
|
977
977
|
meta: {
|
|
978
978
|
delimiter: e,
|
|
@@ -1242,7 +1242,7 @@ function At(t, e) {
|
|
|
1242
1242
|
s.close();
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
|
-
return $.parse(
|
|
1245
|
+
return $.parse(Oe(t), f, _t), s;
|
|
1246
1246
|
}
|
|
1247
1247
|
function Ae(t) {
|
|
1248
1248
|
return t && t.every((e) => typeof e == "string");
|
|
@@ -1294,7 +1294,7 @@ function Rt(t, e) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
};
|
|
1296
1296
|
}
|
|
1297
|
-
var ne = {},
|
|
1297
|
+
var ne = {}, P = {}, z = 34, N = 10, Q = 13;
|
|
1298
1298
|
function Se(t) {
|
|
1299
1299
|
return new Function("d", "return {" + t.map(function(e, r) {
|
|
1300
1300
|
return JSON.stringify(e) + ": d[" + r + '] || ""';
|
|
@@ -1324,7 +1324,7 @@ function Bt(t) {
|
|
|
1324
1324
|
var e = t.getUTCHours(), r = t.getUTCMinutes(), s = t.getUTCSeconds(), n = t.getUTCMilliseconds();
|
|
1325
1325
|
return isNaN(t) ? "Invalid Date" : Et(t.getUTCFullYear()) + "-" + E(t.getUTCMonth() + 1, 2) + "-" + E(t.getUTCDate(), 2) + (n ? "T" + E(e, 2) + ":" + E(r, 2) + ":" + E(s, 2) + "." + E(n, 3) + "Z" : s ? "T" + E(e, 2) + ":" + E(r, 2) + ":" + E(s, 2) + "Z" : r || e ? "T" + E(e, 2) + ":" + E(r, 2) + "Z" : "");
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function Dt(t) {
|
|
1328
1328
|
var e = new RegExp('["' + t + `
|
|
1329
1329
|
\r]`), r = t.charCodeAt(0);
|
|
1330
1330
|
function s(i, d) {
|
|
@@ -1338,7 +1338,7 @@ function Ot(t) {
|
|
|
1338
1338
|
var g = [], w = i.length, l = 0, m = 0, C, T = w <= 0, y = !1;
|
|
1339
1339
|
i.charCodeAt(w - 1) === N && --w, i.charCodeAt(w - 1) === Q && --w;
|
|
1340
1340
|
function v() {
|
|
1341
|
-
if (T) return
|
|
1341
|
+
if (T) return P;
|
|
1342
1342
|
if (y) return y = !1, ne;
|
|
1343
1343
|
var k, A = l, _;
|
|
1344
1344
|
if (i.charCodeAt(A) === z) {
|
|
@@ -1354,8 +1354,8 @@ function Ot(t) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
return T = !0, i.slice(A, w);
|
|
1356
1356
|
}
|
|
1357
|
-
for (; (C = v()) !==
|
|
1358
|
-
for (var p = []; C !== ne && C !==
|
|
1357
|
+
for (; (C = v()) !== P; ) {
|
|
1358
|
+
for (var p = []; C !== ne && C !== P; ) p.push(C), C = v();
|
|
1359
1359
|
d && (p = d(p, m++)) == null || g.push(p);
|
|
1360
1360
|
}
|
|
1361
1361
|
return g;
|
|
@@ -1395,7 +1395,7 @@ function Ot(t) {
|
|
|
1395
1395
|
formatValue: u
|
|
1396
1396
|
};
|
|
1397
1397
|
}
|
|
1398
|
-
var
|
|
1398
|
+
var Ot = Dt(","), kt = Ot.formatRows;
|
|
1399
1399
|
function ae(t, e = { csv: { useDisplayNames: !0 } }) {
|
|
1400
1400
|
const r = e.useDisplayNames || e.csv?.useDisplayNames, a = [(t.schema?.fields || []).map((h) => {
|
|
1401
1401
|
const f = h.metadata?.displayName;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aC as j, aD as S, aE as A, aF as M, aG as L } from "./index-
|
|
2
|
-
import { aH as B, aI as K, aJ as V, aK as X } from "./index-
|
|
3
|
-
import { P as h } from "./post-process-effect-
|
|
1
|
+
import { aC as j, aD as S, aE as A, aF as M, aG as L } from "./index-DrCMvhhr.js";
|
|
2
|
+
import { aH as B, aI as K, aJ as V, aK as X } from "./index-DrCMvhhr.js";
|
|
3
|
+
import { P as h } from "./post-process-effect-BL9rBDEh.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,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-
|
|
2
|
-
import { P as s } from "./post-process-effect-
|
|
3
|
-
import { G as pa, a as na } from "./globe-view-
|
|
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-DrCMvhhr.js";
|
|
2
|
+
import { P as s } from "./post-process-effect-BL9rBDEh.js";
|
|
3
|
+
import { G as pa, a as na } from "./globe-view-CrGbvqqZ.js";
|
|
4
4
|
export {
|
|
5
5
|
t as AmbientLight,
|
|
6
6
|
o as Attribute,
|
package/dist/index.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export { isStoreToken } from "./external-store";
|
|
|
92
92
|
export type { TokenStore, ViewOrigin, ViewportSnapshot, DataVersionSnapshot } from "./external-store";
|
|
93
93
|
export type { LayerMetaSnapshot } from "./ctx";
|
|
94
94
|
export type { Selection, PickMode, PickAtOptions, PickRectOptions, PickRect } from "./selection";
|
|
95
|
-
export type { Camera, CameraOptions } from "./runtime-core";
|
|
95
|
+
export type { Camera, CameraOptions, LayerErrorDetail } from "./runtime-core";
|
|
96
96
|
export type { MapViewport } from "./basemap";
|
|
97
97
|
export { registerAction } from "./actions";
|
|
98
98
|
export { distanceMeters, pathLengthMeters, ringAreaMeters2, ringPerimeterMeters, ringEnclosesPole, midpoint, getMeasureRadiusMeters, setMeasureRadiusMeters, WGS84_MEAN_RADIUS_M, type LngLat, } from "./geodesy";
|
package/dist/layer-registry.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ export declare function ensureLayerClass(schema: LayerSchema): Promise<void> | n
|
|
|
151
151
|
export declare function getLayerSchema(type: string): LayerSchema | undefined;
|
|
152
152
|
export declare function getAllLayerSchemas(): ReadonlyMap<string, LayerSchema>;
|
|
153
153
|
export declare const UNDECLARED_DECK_PROPS: Readonly<Record<string, readonly PropDescriptor[]>>;
|
|
154
|
+
export declare const TILE_TEMPLATE_PROPS: readonly PropDescriptor[];
|
|
154
155
|
/**
|
|
155
156
|
* The ONE opt-out predicate for the scene-wide per-layer attributes declared
|
|
156
157
|
* above (issue: three call sites each accepted a different value set —
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { BitmapLayer } from "@deck.gl/layers";
|
|
14
14
|
import { type TileBoundsLngLat } from "../plane-warp";
|
|
15
|
-
import type { PlaneFrame } from "../projection";
|
|
15
|
+
import type { LngLatPair, PlaneFrame } from "../projection";
|
|
16
16
|
export interface WarpedBitmapProps {
|
|
17
17
|
/** The map's projection plane. Absent → a plain BitmapLayer. */
|
|
18
18
|
_planeFrame?: PlaneFrame | null;
|
|
@@ -20,6 +20,19 @@ export interface WarpedBitmapProps {
|
|
|
20
20
|
_planeBounds?: TileBoundsLngLat;
|
|
21
21
|
/** Cells per axis (`subdivisionFor`). */
|
|
22
22
|
_subdivision?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Where in the image each point samples, for an image in ANOTHER CRS than
|
|
25
|
+
* the tile (a `{bbox-epsg-XXXX}` WMS answer): the mesh still covers exactly
|
|
26
|
+
* the tile, so neighbours never overlap, and the texture is pulled into
|
|
27
|
+
* place per vertex. Works on a Web Mercator map too (no plane needed).
|
|
28
|
+
*/
|
|
29
|
+
_texCoordOf?: (lngLat: LngLatPair) => [number, number];
|
|
30
|
+
/**
|
|
31
|
+
* Where each point of the IMAGE lies (u east, v south), for a tile that is
|
|
32
|
+
* a rectangle in another CRS (a national grid's WMTS tile): the mesh
|
|
33
|
+
* follows that rectangle onto the map. Takes the place of `_planeBounds`.
|
|
34
|
+
*/
|
|
35
|
+
_sampleLngLat?: (u: number, v: number) => LngLatPair;
|
|
23
36
|
}
|
|
24
37
|
export declare class WarpedBitmapLayer extends BitmapLayer<WarpedBitmapProps> {
|
|
25
38
|
static layerName: string;
|