@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.
- package/CHANGELOG.md +5 -0
- package/dist/{basemap-C6Ehu6fw.js → basemap-UE11uf6w.js} +2 -2
- package/dist/cartograph.js +231 -229
- package/dist/cartograph.standalone.js +361 -359
- package/dist/{geoparquet-3V4KrvQN.js → geoparquet-D7ZKVPDh.js} +1 -1
- package/dist/{globe-view-D4Tlyff-.js → globe-view-B7Yn2BbK.js} +1 -1
- package/dist/{hillshade-BC8QiJRP.js → hillshade-tQaqlPhn.js} +1 -1
- package/dist/{index-BqFwoWp9.js → index-B_L_7lV0.js} +1 -1
- package/dist/{index-BPCIxI1b.js → index-C09RUa1s.js} +1 -1
- package/dist/{index-DgutJ5y2.js → index-C8a3EKM8.js} +3 -3
- package/dist/{index-DpUl6z5-.js → index-CFWt9qS0.js} +1 -1
- package/dist/{index-C1f14saD.js → index-CWtaL88w.js} +3 -3
- package/dist/{index-BUE-VzWx.js → index-DIoKYXlh.js} +1 -1
- package/dist/{index-p5XXAoNa.js → index-DPV7mwIc.js} +2 -2
- package/dist/{index-pu3BNjzA.js → index-DzxpYTfi.js} +18 -18
- package/dist/{index-iwTA46AA.js → index-N5acD4ii.js} +1 -1
- package/dist/{lerc-DWtJKNQk.js → lerc-BDcZeX07.js} +1 -1
- package/dist/onlymap.standalone.js +1 -1
- package/dist/onlymapjs.js +1 -1
- package/dist/{post-process-effect-mQdMaWQE.js → post-process-effect-C1iDE90L.js} +1 -1
- package/dist/{raster-DtUDOXfy.js → raster-D4nwLneR.js} +3 -3
- package/dist/{raster-pipeline-hQh5cG3e.js → raster-pipeline-DX-rZjRG.js} +1 -1
- package/dist/{text-on-path-CcfoZqXD.js → text-on-path-onhHN4AZ.js} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-Qo4A_t7d.js → zarr-CBGaInwF.js} +2 -2
- package/docs/cartograph.md +8 -3
- package/llms.txt +1 -1
- package/onlymapjs.html-data.json +4 -0
- package/package.json +1 -1
- package/skills/onlymapjs/SKILL.md +1 -1
- package/skills/onlymapjs/references/syntax.md +3 -3
package/dist/cartograph.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
let Pt = null, Z = null;
|
|
2
|
-
function
|
|
2
|
+
function Ie(r) {
|
|
3
3
|
Pt = r;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function yr() {
|
|
6
6
|
return V !== null;
|
|
7
7
|
}
|
|
8
8
|
let V = null;
|
|
9
9
|
function J() {
|
|
10
10
|
return V;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Fe() {
|
|
13
13
|
return V ? Promise.resolve(V) : Z || (Pt ? (Z = Promise.resolve(Pt()).then((r) => (V = r, V)).catch((r) => {
|
|
14
14
|
throw Z = null, r;
|
|
15
15
|
}), Z) : Promise.reject(
|
|
@@ -18,12 +18,12 @@ function Ie() {
|
|
|
18
18
|
)
|
|
19
19
|
));
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
22
|
__proto__: null,
|
|
23
|
-
isCoreLoaded:
|
|
24
|
-
loadCore:
|
|
23
|
+
isCoreLoaded: yr,
|
|
24
|
+
loadCore: Fe,
|
|
25
25
|
peekCore: J,
|
|
26
|
-
setCoreLoader:
|
|
26
|
+
setCoreLoader: Ie
|
|
27
27
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
28
28
|
function Xt(r) {
|
|
29
29
|
return { scale: r / 96, pxPerMm: r / 25.4 };
|
|
@@ -74,7 +74,7 @@ function dt(r, t, e, n) {
|
|
|
74
74
|
return n === "landscape" ? { widthMm: o.heightMm, heightMm: o.widthMm } : { ...o };
|
|
75
75
|
}
|
|
76
76
|
let rt = null;
|
|
77
|
-
function
|
|
77
|
+
function vr(r) {
|
|
78
78
|
if (!rt) {
|
|
79
79
|
rt = new Uint32Array(256);
|
|
80
80
|
for (let e = 0; e < 256; e++) {
|
|
@@ -87,18 +87,18 @@ function wr(r) {
|
|
|
87
87
|
for (let e = 0; e < r.length; e++) t = rt[(t ^ r[e]) & 255] ^ t >>> 8;
|
|
88
88
|
return (t ^ 4294967295) >>> 0;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Ar(r) {
|
|
91
91
|
const t = Math.max(1980, r.getFullYear());
|
|
92
92
|
return {
|
|
93
93
|
time: r.getHours() << 11 | r.getMinutes() << 5 | Math.floor(r.getSeconds() / 2),
|
|
94
94
|
date: t - 1980 << 9 | r.getMonth() + 1 << 5 | r.getDate()
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
async function
|
|
98
|
-
const e = new TextEncoder(), { time: n, date: i } =
|
|
97
|
+
async function Mr(r, t = /* @__PURE__ */ new Date()) {
|
|
98
|
+
const e = new TextEncoder(), { time: n, date: i } = Ar(t), s = [], o = [];
|
|
99
99
|
let a = 0;
|
|
100
100
|
for (const u of r) {
|
|
101
|
-
const h = u.data instanceof Blob ? new Uint8Array(await u.data.arrayBuffer()) : u.data, d = e.encode(u.name), m =
|
|
101
|
+
const h = u.data instanceof Blob ? new Uint8Array(await u.data.arrayBuffer()) : u.data, d = e.encode(u.name), m = vr(h), f = new DataView(new ArrayBuffer(30));
|
|
102
102
|
f.setUint32(0, 67324752, !0), f.setUint16(4, 20, !0), f.setUint16(6, 2048, !0), f.setUint16(8, 0, !0), f.setUint16(10, n, !0), f.setUint16(12, i, !0), f.setUint32(14, m, !0), f.setUint32(18, h.length, !0), f.setUint32(22, h.length, !0), f.setUint16(26, d.length, !0), f.setUint16(28, 0, !0), s.push(new Uint8Array(f.buffer), d, h), o.push({ name: u.name, bytes: h, crc: m, offset: a }), a += 30 + d.length + h.length;
|
|
103
103
|
}
|
|
104
104
|
const l = a;
|
|
@@ -109,7 +109,7 @@ async function Ar(r, t = /* @__PURE__ */ new Date()) {
|
|
|
109
109
|
const c = new DataView(new ArrayBuffer(22));
|
|
110
110
|
return c.setUint32(0, 101010256, !0), c.setUint16(4, 0, !0), c.setUint16(6, 0, !0), c.setUint16(8, o.length, !0), c.setUint16(10, o.length, !0), c.setUint32(12, a - l, !0), c.setUint32(16, l, !0), c.setUint16(20, 0, !0), s.push(new Uint8Array(c.buffer)), new Blob(s, { type: "application/zip" });
|
|
111
111
|
}
|
|
112
|
-
const ft = ["protanopia", "deuteranopia", "tritanopia", "achromatopsia"],
|
|
112
|
+
const ft = ["protanopia", "deuteranopia", "tritanopia", "achromatopsia"], Oe = {
|
|
113
113
|
protan: "protanopia",
|
|
114
114
|
deutan: "deuteranopia",
|
|
115
115
|
tritan: "tritanopia",
|
|
@@ -117,9 +117,9 @@ const ft = ["protanopia", "deuteranopia", "tritanopia", "achromatopsia"], Fe = {
|
|
|
117
117
|
};
|
|
118
118
|
function qt(r) {
|
|
119
119
|
const t = r?.trim().toLowerCase();
|
|
120
|
-
return !t || t === "none" ? null : ft.includes(t) ? t :
|
|
120
|
+
return !t || t === "none" ? null : ft.includes(t) ? t : Oe[t] ?? null;
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const Sr = ["none", ...ft, ...Object.keys(Oe)], Wt = {
|
|
123
123
|
protanopia: [0.11238, 0.88762, 0, 0.11238, 0.88762, 0, 401e-5, -401e-5, 1],
|
|
124
124
|
deuteranopia: [0.29275, 0.70725, 0, 0.29275, 0.70725, 0, -0.02234, 0.02234, 1],
|
|
125
125
|
tritanopia: [1, 0.14461, -0.14461, 0, 0.85659, 0.14341, 0, 0.85659, 0.14341],
|
|
@@ -131,7 +131,7 @@ const Mr = ["none", ...ft, ...Object.keys(Fe)], Wt = {
|
|
|
131
131
|
const t = Math.min(1, Math.max(0, r));
|
|
132
132
|
return 255 * (t <= 31308e-7 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - 0.055);
|
|
133
133
|
};
|
|
134
|
-
function
|
|
134
|
+
function Cr(r) {
|
|
135
135
|
const t = r.trim().toLowerCase(), e = /^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(t);
|
|
136
136
|
if (e) {
|
|
137
137
|
const i = e[1], s = (o) => parseInt(o.length === 1 ? o + o : o, 16);
|
|
@@ -166,11 +166,11 @@ function ee(r, t) {
|
|
|
166
166
|
const N = 1 - 0.17 * Math.cos((E - 30) * l) + 0.24 * Math.cos(2 * E * l) + 0.32 * Math.cos((3 * E + 6) * l) - 0.2 * Math.cos((4 * E - 63) * l), M = 1 + 0.015 * (G - 50) ** 2 / Math.sqrt(20 + (G - 50) ** 2), C = 1 + 0.045 * _, P = 1 + 0.015 * _ * N, k = -2 * Math.sqrt(_ ** 7 / (_ ** 7 + 25 ** 7)) * Math.sin(60 * Math.exp(-(((E - 275) / 25) ** 2)) * l);
|
|
167
167
|
return Math.sqrt((y / M) ** 2 + (A / C) ** 2 + ($ / P) ** 2 + k * (A / C) * ($ / P));
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
function
|
|
169
|
+
const xr = 10;
|
|
170
|
+
function kr(r, t = xr) {
|
|
171
171
|
const e = /* @__PURE__ */ new Map();
|
|
172
172
|
for (const a of r) {
|
|
173
|
-
const l =
|
|
173
|
+
const l = Cr(a.color);
|
|
174
174
|
if (!l) continue;
|
|
175
175
|
const c = a.layer ?? "", u = e.get(c);
|
|
176
176
|
u ? u.push({ entry: a, rgb: l }) : e.set(c, [{ entry: a, rgb: l }]);
|
|
@@ -189,7 +189,7 @@ function xr(r, t = Cr) {
|
|
|
189
189
|
l > o && (o = l, s = a);
|
|
190
190
|
return { collapses: n, worstType: s };
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function $r(r, t, e, n) {
|
|
193
193
|
if (t <= 0 || e <= 0) return !0;
|
|
194
194
|
let i;
|
|
195
195
|
try {
|
|
@@ -211,14 +211,14 @@ function kr(r, t, e, n) {
|
|
|
211
211
|
}
|
|
212
212
|
return r.putImageData(i, 0, 0), !0;
|
|
213
213
|
}
|
|
214
|
-
const
|
|
215
|
-
function
|
|
214
|
+
const _e = (r) => `om-carto-cvd-${r}`;
|
|
215
|
+
function Er(r) {
|
|
216
216
|
if (r.getElementById("om-carto-cvd-filters")) return;
|
|
217
217
|
const t = r.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
218
218
|
t.id = "om-carto-cvd-filters", t.setAttribute("aria-hidden", "true"), t.setAttribute("width", "0"), t.setAttribute("height", "0"), t.style.cssText = "position:absolute;width:0;height:0;overflow:hidden;";
|
|
219
219
|
for (const e of ft) {
|
|
220
220
|
const n = r.createElementNS("http://www.w3.org/2000/svg", "filter");
|
|
221
|
-
n.id =
|
|
221
|
+
n.id = _e(e), n.setAttribute("color-interpolation-filters", "linearRGB");
|
|
222
222
|
const i = r.createElementNS("http://www.w3.org/2000/svg", "feColorMatrix");
|
|
223
223
|
i.setAttribute("type", "matrix");
|
|
224
224
|
const s = Wt[e];
|
|
@@ -226,8 +226,8 @@ function $r(r) {
|
|
|
226
226
|
}
|
|
227
227
|
r.body.appendChild(t);
|
|
228
228
|
}
|
|
229
|
-
const
|
|
230
|
-
async function
|
|
229
|
+
const Ue = 16384, De = 134217728;
|
|
230
|
+
async function Nr(r) {
|
|
231
231
|
const t = [], e = [...r.querySelectorAll("img")];
|
|
232
232
|
return await Promise.all(
|
|
233
233
|
e.map(async (n) => {
|
|
@@ -240,11 +240,11 @@ async function Er(r) {
|
|
|
240
240
|
})
|
|
241
241
|
), t;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function ze(r) {
|
|
244
244
|
return !r.hasAttribute("hidden") && !r.hasAttribute("data-om-carto-screen-only") && !r.hasAttribute("data-om-carto-marks") && !r.hasAttribute("data-om-carto-flattened") && r.tagName.toLowerCase() !== "style" && r.tagName.toLowerCase() !== "script";
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
return [...r.children].filter(
|
|
246
|
+
function Pr(r) {
|
|
247
|
+
return [...r.children].filter(ze).map((t, e) => ({ el: t, index: e, z: S(t).z ?? 0 })).sort((t, e) => t.z - e.z || t.index - e.index).map((t) => t.el);
|
|
248
248
|
}
|
|
249
249
|
async function Bt(r, t = {}) {
|
|
250
250
|
const e = r ?? document.querySelector("om-cartograph");
|
|
@@ -256,11 +256,11 @@ async function Bt(r, t = {}) {
|
|
|
256
256
|
e.getAttribute("width"),
|
|
257
257
|
e.getAttribute("height"),
|
|
258
258
|
e.getAttribute("orientation")
|
|
259
|
-
), a = Math.max(0, Number(e.getAttribute("bleed")) || 0), l = s + a * 2, c = o + a * 2, u = t.maxDimension ??
|
|
259
|
+
), a = Math.max(0, Number(e.getAttribute("bleed")) || 0), l = s + a * 2, c = o + a * 2, u = t.maxDimension ?? Ue, h = t.maxArea ?? De;
|
|
260
260
|
let d = i;
|
|
261
261
|
const m = Math.min(u / (l / 25.4), u / (c / 25.4)), f = Math.sqrt(h / (l / 25.4 * (c / 25.4))), g = Math.min(m, f);
|
|
262
|
-
d > g && (d = Math.floor(g), n.push(`Requested ${i} dpi exceeds this browser's canvas budget for a ${l.toFixed(0)}×${c.toFixed(0)}mm page; rendered at ${d} dpi instead.`)), n.push(...await
|
|
263
|
-
const p = Xt(d), b = Math.max(1, Math.round(l * p.pxPerMm)), w = Math.max(1, Math.round(c * p.pxPerMm)), y =
|
|
262
|
+
d > g && (d = Math.floor(g), n.push(`Requested ${i} dpi exceeds this browser's canvas budget for a ${l.toFixed(0)}×${c.toFixed(0)}mm page; rendered at ${d} dpi instead.`)), n.push(...await Nr(e)), typeof document < "u" && document.fonts?.ready && await document.fonts.ready;
|
|
263
|
+
const p = Xt(d), b = Math.max(1, Math.round(l * p.pxPerMm)), w = Math.max(1, Math.round(c * p.pxPerMm)), y = Pr(e);
|
|
264
264
|
for (const M of y)
|
|
265
265
|
if (!(!gt(M) || !M.prepareCartograph))
|
|
266
266
|
try {
|
|
@@ -294,7 +294,7 @@ async function Bt(r, t = {}) {
|
|
|
294
294
|
[C, P, k, L].every(Number.isFinite) && (v.save(), v.strokeStyle = M.getAttribute("stroke") || "#000000", v.lineWidth = (Number(M.getAttribute("stroke-width")) || 0.2) * p.pxPerMm, v.beginPath(), v.moveTo((C + a) * p.pxPerMm, (P + a) * p.pxPerMm), v.lineTo((k + a) * p.pxPerMm, (L + a) * p.pxPerMm), v.stroke(), v.restore());
|
|
295
295
|
}
|
|
296
296
|
const _ = qt(t.cvd === "page" ? e.getAttribute("cvd") : t.cvd);
|
|
297
|
-
_ &&
|
|
297
|
+
_ && !$r(v, b, w, _) && n.push("Colour-vision simulation was skipped: a cross-origin image on the page makes the export canvas unreadable.");
|
|
298
298
|
for (const M of y) gt(M) && M.discardCartograph?.();
|
|
299
299
|
const E = t.format === "jpeg" ? "image/jpeg" : "image/png";
|
|
300
300
|
E === "image/jpeg" && e.querySelector("om-text") && n.push("JPEG compresses text edges — prefer PNG for a page carrying labels.");
|
|
@@ -302,7 +302,7 @@ async function Bt(r, t = {}) {
|
|
|
302
302
|
if (!N) throw new Error("[onlymapjs/cartograph] renderCartograph: the canvas produced no image (it may have exceeded a browser limit).");
|
|
303
303
|
return { blob: N, widthPx: b, heightPx: w, dpi: d, warnings: n };
|
|
304
304
|
}
|
|
305
|
-
async function
|
|
305
|
+
async function je(r, t = {}) {
|
|
306
306
|
const e = r ?? document.querySelector("om-cartograph");
|
|
307
307
|
if (!e) throw new Error("[onlymapjs/cartograph] renderCartographAtlas: no <om-cartograph> to render.");
|
|
308
308
|
const n = e.querySelector("om-atlas") ?? null;
|
|
@@ -328,7 +328,7 @@ async function ze(r, t = {}) {
|
|
|
328
328
|
const d = await re(e, t, a);
|
|
329
329
|
u = d.dpi, c.push({ name: o[h], data: d.blob }), t.onPage?.(h + 1, i);
|
|
330
330
|
}
|
|
331
|
-
return { blob: await
|
|
331
|
+
return { blob: await Mr(c), filenames: o, pages: i, dpi: u, warnings: a };
|
|
332
332
|
} finally {
|
|
333
333
|
n.seek(l);
|
|
334
334
|
}
|
|
@@ -339,13 +339,13 @@ async function re(r, t, e) {
|
|
|
339
339
|
const n = await Bt(r, t);
|
|
340
340
|
return e.push(...n.warnings), n;
|
|
341
341
|
}
|
|
342
|
-
const
|
|
342
|
+
const Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
343
343
|
__proto__: null,
|
|
344
|
-
MAX_CANVAS_AREA:
|
|
345
|
-
MAX_CANVAS_DIMENSION:
|
|
346
|
-
paintsInExport:
|
|
344
|
+
MAX_CANVAS_AREA: De,
|
|
345
|
+
MAX_CANVAS_DIMENSION: Ue,
|
|
346
|
+
paintsInExport: ze,
|
|
347
347
|
renderCartograph: Bt,
|
|
348
|
-
renderCartographAtlas:
|
|
348
|
+
renderCartographAtlas: je
|
|
349
349
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
350
350
|
function ne(r, t, e = {}) {
|
|
351
351
|
const n = URL.createObjectURL(r), i = document.createElement("a");
|
|
@@ -353,8 +353,8 @@ function ne(r, t, e = {}) {
|
|
|
353
353
|
const s = e.revokeAfterMs ?? 0;
|
|
354
354
|
s > 0 ? setTimeout(() => URL.revokeObjectURL(n), s) : URL.revokeObjectURL(n);
|
|
355
355
|
}
|
|
356
|
-
const
|
|
357
|
-
async function ie(r, t =
|
|
356
|
+
const Lr = 3e4;
|
|
357
|
+
async function ie(r, t = Lr) {
|
|
358
358
|
let e = !1;
|
|
359
359
|
const n = new Promise(
|
|
360
360
|
(s) => setTimeout(() => {
|
|
@@ -374,7 +374,7 @@ async function ie(r, t = Tr) {
|
|
|
374
374
|
})();
|
|
375
375
|
return await Promise.race([i, n]), { timedOut: e };
|
|
376
376
|
}
|
|
377
|
-
async function
|
|
377
|
+
async function Rr(r, t = {}) {
|
|
378
378
|
if (!r.hasAttribute("allow-url-actions") || typeof document < "u" && document.documentElement?.dataset?.omHost === "editor") return null;
|
|
379
379
|
const e = t.search ?? (typeof location < "u" ? location.search : "");
|
|
380
380
|
if (!e) return null;
|
|
@@ -390,7 +390,7 @@ async function Lr(r, t = {}) {
|
|
|
390
390
|
const d = Number(c);
|
|
391
391
|
if (!Number.isInteger(d) || d < 1) throw new Error(`?page=${c} is not a page number (they start at 1).`);
|
|
392
392
|
h.refresh?.();
|
|
393
|
-
const m = await
|
|
393
|
+
const m = await je(r, { dpi: a, format: o, page: d - 1 });
|
|
394
394
|
for (const f of m.warnings) console.warn(`[onlymapjs/cartograph] ${f}`);
|
|
395
395
|
return ne(m.blob, m.filenames[0] ?? `${l}.${o === "jpeg" ? "jpg" : "png"}`, { revokeAfterMs: 1e4 }), "export";
|
|
396
396
|
}
|
|
@@ -400,27 +400,27 @@ async function Lr(r, t = {}) {
|
|
|
400
400
|
}
|
|
401
401
|
return n.get("print") === "1" ? (await ie(r, t.timeoutMs), typeof r.print == "function" ? await r.print({ dpi: Number(n.get("dpi")) || void 0 }) : typeof window < "u" && window.print(), "print") : i ? "cvd" : null;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Ir() {
|
|
404
404
|
if (typeof document > "u") return;
|
|
405
405
|
const r = () => {
|
|
406
406
|
for (const t of document.querySelectorAll("om-cartograph[allow-url-actions]"))
|
|
407
|
-
|
|
407
|
+
Rr(t).catch((e) => console.warn(`[onlymapjs/cartograph] URL action failed: ${e.message}`));
|
|
408
408
|
};
|
|
409
409
|
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", r, { once: !0 }) : r();
|
|
410
410
|
}
|
|
411
|
-
const
|
|
411
|
+
const Ge = typeof window < "u" && typeof document < "u" && typeof customElements < "u", qe = Ge ? HTMLElement : class {
|
|
412
412
|
};
|
|
413
413
|
function x(r, t) {
|
|
414
|
-
|
|
414
|
+
Ge && (customElements.get(r) || customElements.define(r, t));
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Fr(r) {
|
|
417
417
|
if (typeof DOMParser > "u")
|
|
418
418
|
throw new Error(
|
|
419
419
|
"[onlymapjs] Parsing a manifest string needs a DOM implementation (DOMParser). In node, run under a DOM test environment — e.g. vitest with `environment: 'happy-dom'` (or jsdom) — or pass an already-parsed Element instead of a string."
|
|
420
420
|
);
|
|
421
421
|
return new DOMParser().parseFromString(r, "text/html");
|
|
422
422
|
}
|
|
423
|
-
const Kt = " · ",
|
|
423
|
+
const Kt = " · ", Or = {
|
|
424
424
|
copy: "©",
|
|
425
425
|
reg: "®",
|
|
426
426
|
amp: "&",
|
|
@@ -430,25 +430,25 @@ const Kt = " · ", Fr = {
|
|
|
430
430
|
apos: "'",
|
|
431
431
|
nbsp: " "
|
|
432
432
|
};
|
|
433
|
-
function
|
|
433
|
+
function _r(r) {
|
|
434
434
|
return r.replace(/<[^>]*>/g, " ").replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/gi, (t, e) => {
|
|
435
435
|
if (e.startsWith("#")) {
|
|
436
436
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
437
437
|
return Number.isInteger(n) && n > 0 && n <= 1114111 ? String.fromCodePoint(n) : t;
|
|
438
438
|
}
|
|
439
|
-
return
|
|
439
|
+
return Or[e.toLowerCase()] ?? t;
|
|
440
440
|
}).replace(/\s+/g, " ").trim();
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
const t = [...new Set(r.filter((e) => typeof e == "string").map(
|
|
442
|
+
function We(r) {
|
|
443
|
+
const t = [...new Set(r.filter((e) => typeof e == "string").map(_r))].filter(
|
|
444
444
|
(e) => e.length > 0
|
|
445
445
|
);
|
|
446
446
|
return t.filter((e) => !t.some((n) => n !== e && n.includes(e)));
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
return
|
|
448
|
+
function se(r) {
|
|
449
|
+
return We((r ?? "").split(Kt.trim()));
|
|
450
450
|
}
|
|
451
|
-
class O extends
|
|
451
|
+
class O extends qe {
|
|
452
452
|
renderQueued = !1;
|
|
453
453
|
connectedCallback() {
|
|
454
454
|
this.scheduleRender();
|
|
@@ -492,7 +492,7 @@ class O extends Ge {
|
|
|
492
492
|
a != null && Number.isInteger(a) ? this.style.zIndex = String(a) : this.style.removeProperty("z-index");
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
const bt = "cartograph/2", Ei = ["default", "dark", "sepia", "blueprint", "minimal"],
|
|
495
|
+
const bt = "cartograph/2", Ei = ["default", "dark", "sepia", "blueprint", "minimal"], oe = ["A0", "A1", "A2", "A3", "A4", "A5", "Letter", "Legal"], Ur = /* @__PURE__ */ new Map([
|
|
496
496
|
["projection", "live frames render Web Mercator (EPSG:3857) only — Globe support is design-only; use a static frame for other projections"]
|
|
497
497
|
]), z = ["id", "x", "y", "w", "h", "rotation", "z", "locked", "hidden"], T = {
|
|
498
498
|
"om-cartograph": ["cartograph-id", "format", "size", "width", "height", "orientation", "theme", "bg", "color", "font", "title", "attribution", "notes", "cvd", "bleed", "crop-marks", "safe-zone", "dpi", "flatten", "color-profile", "allow-url-actions", "keep-badge"],
|
|
@@ -514,18 +514,18 @@ const bt = "cartograph/2", Ei = ["default", "dark", "sepia", "blueprint", "minim
|
|
|
514
514
|
// carries the georeference that was true when it was taken, which is the
|
|
515
515
|
// only way furniture can be right when the live map never loaded and its
|
|
516
516
|
// CRS is therefore unknowable.
|
|
517
|
-
"om-source": ["src", "corners", "crs", "crs-def"],
|
|
517
|
+
"om-source": ["src", "corners", "crs", "crs-def", "attribution"],
|
|
518
518
|
"om-atlas": ["id", "for", "layer", "filter", "sort", "filename", "page-name", "pager"]
|
|
519
519
|
}, yt = Object.keys(T), Lt = "data-om-carto-vector", Dr = ["metric", "imperial", "nautical"], zr = 0.3048, jr = 1609.344, Gr = 1852;
|
|
520
520
|
function qr(r) {
|
|
521
521
|
return r != null && Dr.includes(r) ? r : null;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Be(r) {
|
|
524
524
|
if (!isFinite(r) || r <= 0) return 0;
|
|
525
525
|
const t = Math.pow(10, Math.floor(Math.log10(r))), e = r / t;
|
|
526
526
|
return (e >= 5 ? 5 : e >= 2 ? 2 : 1) * t;
|
|
527
527
|
}
|
|
528
|
-
const
|
|
528
|
+
const ae = {
|
|
529
529
|
// Finest first; the largest tier whose snapped length is ≥ 1 unit wins.
|
|
530
530
|
metric: [
|
|
531
531
|
{ metersPerUnit: 1, label: "m" },
|
|
@@ -537,15 +537,15 @@ const oe = {
|
|
|
537
537
|
],
|
|
538
538
|
nautical: [{ metersPerUnit: Gr, label: "nmi" }]
|
|
539
539
|
};
|
|
540
|
-
function
|
|
540
|
+
function Ke({ groundMetersPerMm: r, maxWidthMm: t, segments: e = 4, units: n = "metric", segmentLengthMeters: i }) {
|
|
541
541
|
if (!Number.isFinite(r) || r <= 0 || !Number.isFinite(t) || t <= 0) return null;
|
|
542
|
-
const s = Number.isInteger(e) && e > 0 ? e : 4, o =
|
|
542
|
+
const s = Number.isInteger(e) && e > 0 ? e : 4, o = ae[n] ?? ae.metric, a = t / s * r;
|
|
543
543
|
let l, c;
|
|
544
544
|
if (i != null && Number.isFinite(i) && i > 0)
|
|
545
|
-
l = i, c =
|
|
545
|
+
l = i, c = le(o, l);
|
|
546
546
|
else {
|
|
547
|
-
c =
|
|
548
|
-
const f =
|
|
547
|
+
c = le(o, a);
|
|
548
|
+
const f = Be(a / c.metersPerUnit);
|
|
549
549
|
if (f <= 0) return null;
|
|
550
550
|
l = f * c.metersPerUnit;
|
|
551
551
|
}
|
|
@@ -606,7 +606,7 @@ function Wr(r, t, e) {
|
|
|
606
606
|
}
|
|
607
607
|
return { bars: c, strokes: u, labels: f, fontMm: n, strokeMm: i, segmentMeters: r.segmentMeters, unitLabel: r.unitLabel, scaleDenominator: r.scaleDenominator };
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function le(r, t) {
|
|
610
610
|
let e = r[0];
|
|
611
611
|
for (const n of r)
|
|
612
612
|
t / n.metersPerUnit >= 1 && (e = n);
|
|
@@ -616,7 +616,7 @@ const Br = " ";
|
|
|
616
616
|
function Kr(r) {
|
|
617
617
|
return !Number.isFinite(r) || r <= 0 ? "" : Math.round(r).toString().replace(/\B(?=(\d{3})+(?!\d))/g, Br);
|
|
618
618
|
}
|
|
619
|
-
const
|
|
619
|
+
const Ve = /\{\{\s*([\w.]+)\s*\}\}/g;
|
|
620
620
|
function Vr(r, t) {
|
|
621
621
|
if (r.startsWith("atlas.")) return t.atlas?.[r.slice(6)];
|
|
622
622
|
if (r.startsWith("frame.")) {
|
|
@@ -629,17 +629,17 @@ function Vr(r, t) {
|
|
|
629
629
|
}
|
|
630
630
|
return t.page[r];
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function He(r, t) {
|
|
633
633
|
const e = [];
|
|
634
|
-
return { text: r.replace(
|
|
634
|
+
return { text: r.replace(Ve, (i, s) => {
|
|
635
635
|
const o = Vr(s, t);
|
|
636
636
|
return o === void 0 ? (e.push(s), i) : o;
|
|
637
637
|
}), unresolved: e };
|
|
638
638
|
}
|
|
639
639
|
function Hr(r) {
|
|
640
|
-
return [...r.matchAll(
|
|
640
|
+
return [...r.matchAll(Ve)].map((t) => t[1]);
|
|
641
641
|
}
|
|
642
|
-
const
|
|
642
|
+
const ce = /* @__PURE__ */ new WeakMap();
|
|
643
643
|
function Yr(r, t) {
|
|
644
644
|
const e = [], n = r.ownerDocument ?? (typeof document < "u" ? document : null);
|
|
645
645
|
if (!n) return e;
|
|
@@ -650,12 +650,12 @@ function Yr(r, t) {
|
|
|
650
650
|
), s = [];
|
|
651
651
|
for (let o = i.nextNode(); o; o = i.nextNode()) s.push(o);
|
|
652
652
|
for (const o of s) {
|
|
653
|
-
let a =
|
|
653
|
+
let a = ce.get(o);
|
|
654
654
|
if (a === void 0) {
|
|
655
655
|
if (a = o.data, !a.includes("{{")) continue;
|
|
656
|
-
|
|
656
|
+
ce.set(o, a);
|
|
657
657
|
}
|
|
658
|
-
const l =
|
|
658
|
+
const l = He(a, t);
|
|
659
659
|
o.data !== l.text && (o.data = l.text), e.push(...l.unresolved);
|
|
660
660
|
}
|
|
661
661
|
return e;
|
|
@@ -664,28 +664,28 @@ function Xr(r = /* @__PURE__ */ new Date()) {
|
|
|
664
664
|
return `${r.getFullYear()}-${String(r.getMonth() + 1).padStart(2, "0")}-${String(r.getDate()).padStart(2, "0")}`;
|
|
665
665
|
}
|
|
666
666
|
const Rt = "data-om-carto-unlinked";
|
|
667
|
-
function
|
|
667
|
+
function Ye(r) {
|
|
668
668
|
return r.closest("om-cartograph");
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
const e =
|
|
670
|
+
function Xe(r, t) {
|
|
671
|
+
const e = Ye(r);
|
|
672
672
|
if (!e || !t) return null;
|
|
673
673
|
for (const n of e.querySelectorAll("om-frame"))
|
|
674
674
|
if (n.id === t) return n;
|
|
675
675
|
return null;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Je(r) {
|
|
678
678
|
return [...r.querySelectorAll("om-frame")];
|
|
679
679
|
}
|
|
680
680
|
function Jr(r) {
|
|
681
|
-
const t =
|
|
681
|
+
const t = Ye(r);
|
|
682
682
|
if (!t) return null;
|
|
683
|
-
const e =
|
|
683
|
+
const e = Je(t);
|
|
684
684
|
return e.length === 1 ? e[0] : null;
|
|
685
685
|
}
|
|
686
686
|
function U(r) {
|
|
687
687
|
const t = r.getAttribute("for");
|
|
688
|
-
return t ?
|
|
688
|
+
return t ? Xe(r, t) : Jr(r);
|
|
689
689
|
}
|
|
690
690
|
function W(r, t) {
|
|
691
691
|
let e = r.querySelector(`:scope > [${Rt}]`);
|
|
@@ -699,11 +699,11 @@ function W(r, t) {
|
|
|
699
699
|
function Zr(r) {
|
|
700
700
|
r.querySelector(`:scope > [${Rt}]`)?.remove();
|
|
701
701
|
}
|
|
702
|
-
const
|
|
703
|
-
function
|
|
702
|
+
const ue = "data-om-carto-page", he = "data-om-carto-marks", wt = "data-om-carto-credit", me = "data-om-carto-attribution", Ze = "Built with OnlyMap by NIKA", Qr = `${Ze} · free for non-commercial use`, nt = 2, vt = 1.2, it = 2.4, At = 1.5, st = 1.2, Mt = 0.3, St = 0.8, Ct = "http://www.w3.org/2000/svg", tn = 6e4;
|
|
703
|
+
function de(r) {
|
|
704
704
|
return r.replace(/©|\(c\)/gi, " ").replace(/\s+/g, " ").trim().toLowerCase();
|
|
705
705
|
}
|
|
706
|
-
class
|
|
706
|
+
class Qe extends O {
|
|
707
707
|
static observedAttributes = [...T["om-cartograph"]];
|
|
708
708
|
frameListenerBound = !1;
|
|
709
709
|
/** Fields of the atlas page currently displayed, for {{atlas.<field>}}. */
|
|
@@ -749,7 +749,7 @@ class Ze extends O {
|
|
|
749
749
|
i?.remove();
|
|
750
750
|
return;
|
|
751
751
|
}
|
|
752
|
-
const s = e === "voluntary" ?
|
|
752
|
+
const s = e === "voluntary" ? Ze : Qr;
|
|
753
753
|
if (i) {
|
|
754
754
|
i.textContent !== s && (i.textContent = s), this.armCreditPainter(i);
|
|
755
755
|
return;
|
|
@@ -772,8 +772,8 @@ class Ze extends O {
|
|
|
772
772
|
* runtime still credits the tiles in its pictures.
|
|
773
773
|
*/
|
|
774
774
|
renderAttribution() {
|
|
775
|
-
const t = [...this.querySelectorAll("om-frame")], e =
|
|
776
|
-
`), i = e.filter((l) => !n.includes(
|
|
775
|
+
const t = [...this.querySelectorAll("om-frame")], e = We(t.flatMap((l) => l.attributions?.() ?? [])), n = [...this.querySelectorAll("om-text")].map((l) => de(l.textContent ?? "")).join(`
|
|
776
|
+
`), i = e.filter((l) => !n.includes(de(l))), s = this.querySelector(`:scope > [${me}]`);
|
|
777
777
|
if (i.length === 0) {
|
|
778
778
|
s?.remove();
|
|
779
779
|
return;
|
|
@@ -784,7 +784,7 @@ class Ze extends O {
|
|
|
784
784
|
return;
|
|
785
785
|
}
|
|
786
786
|
const a = this.ownerDocument.createElement("div");
|
|
787
|
-
a.setAttribute(
|
|
787
|
+
a.setAttribute(me, ""), a.setAttribute("z", "2147483644"), a.textContent = o, a.style.cssText = `position:absolute;right:${nt}mm;bottom:${vt}mm;z-index:2147483644;max-width:60%;text-align:right;font:${it}mm/${At} system-ui,sans-serif;color:#374151;background:rgba(255,255,255,.72);padding:${Mt}mm ${st}mm;border-radius:${St}mm;pointer-events:none;`, this.armFootPainter(a, "right"), this.appendChild(a);
|
|
788
788
|
}
|
|
789
789
|
/**
|
|
790
790
|
* Which credit this sheet carries, from the core's own predicate so the
|
|
@@ -847,7 +847,7 @@ class Ze extends O {
|
|
|
847
847
|
}
|
|
848
848
|
/** Render the whole page to one image, for `flatten`. */
|
|
849
849
|
async buildFlattenedImage(t) {
|
|
850
|
-
const { renderCartograph: e } = await Promise.resolve().then(() =>
|
|
850
|
+
const { renderCartograph: e } = await Promise.resolve().then(() => Tr), { blob: n } = await e(this, { dpi: t }), i = this.ownerDocument.createElement("img");
|
|
851
851
|
i.src = URL.createObjectURL(n), i.setAttribute("data-om-carto-flattened", "");
|
|
852
852
|
const s = this.bleedMm;
|
|
853
853
|
return i.style.cssText = `position:absolute;left:${-s}mm;top:${-s}mm;width:calc(100% + ${s * 2}mm);height:calc(100% + ${s * 2}mm);z-index:2147483645;`, await i.decode().catch(() => {
|
|
@@ -868,7 +868,7 @@ class Ze extends O {
|
|
|
868
868
|
}
|
|
869
869
|
/** Values every `{{token}}` on this page resolves against. */
|
|
870
870
|
tokenContext() {
|
|
871
|
-
const t = /* @__PURE__ */ new Map(), e =
|
|
871
|
+
const t = /* @__PURE__ */ new Map(), e = Je(this);
|
|
872
872
|
for (const s of e) {
|
|
873
873
|
const o = s.georef, a = o?.groundMetersPerMm() ?? 0;
|
|
874
874
|
t.set(s.id, {
|
|
@@ -876,7 +876,7 @@ class Ze extends O {
|
|
|
876
876
|
crs: o?.crs
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
|
-
const n = { page: {}, frames: t, soleFrameId: e.length === 1 ? e[0].id : null, atlas: this.atlasFields }, i = (s) =>
|
|
879
|
+
const n = { page: {}, frames: t, soleFrameId: e.length === 1 ? e[0].id : null, atlas: this.atlasFields }, i = (s) => He(this.getAttribute(s) ?? "", n).text;
|
|
880
880
|
return {
|
|
881
881
|
page: {
|
|
882
882
|
title: i("title"),
|
|
@@ -899,8 +899,8 @@ class Ze extends O {
|
|
|
899
899
|
renderNow() {
|
|
900
900
|
const { widthMm: t, heightMm: e } = this.pageSize, n = this.bleedMm;
|
|
901
901
|
this.style.display = "block", this.style.position = "relative", this.style.width = `${t}mm`, this.style.height = `${e}mm`, this.style.margin = n > 0 ? `${n}mm` : "", this.style.overflow = n > 0 ? "visible" : "hidden", this.applyThemeOverride("bg", "--om-carto-bg"), this.applyThemeOverride("color", "--om-carto-ink"), this.applyThemeOverride("font", "--om-carto-font");
|
|
902
|
-
let i = this.querySelector(`style[${
|
|
903
|
-
i || (i = document.createElement("style"), i.setAttribute(
|
|
902
|
+
let i = this.querySelector(`style[${ue}]`);
|
|
903
|
+
i || (i = document.createElement("style"), i.setAttribute(ue, ""), this.prepend(i));
|
|
904
904
|
const s = t + n * 2, o = e + n * 2;
|
|
905
905
|
i.textContent = `@page { size: ${s}mm ${o}mm; margin: 0; }
|
|
906
906
|
@media print { html, body { margin: 0; padding: 0; } om-cartograph { break-after: page; } }`, this.renderPrintMarks(t, e, n), this.applyCvd(), this.refreshTokens(), this.renderCredit(), this.renderAttribution();
|
|
@@ -915,13 +915,13 @@ class Ze extends O {
|
|
|
915
915
|
* worse than no guide.
|
|
916
916
|
*/
|
|
917
917
|
renderPrintMarks(t, e, n) {
|
|
918
|
-
const i = this.hasAttribute("crop-marks") && n > 0, s = Number(this.getAttribute("safe-zone")), o = Number.isFinite(s) && s > 0, a = this.querySelector(`:scope > [${
|
|
918
|
+
const i = this.hasAttribute("crop-marks") && n > 0, s = Number(this.getAttribute("safe-zone")), o = Number.isFinite(s) && s > 0, a = this.querySelector(`:scope > [${he}]`);
|
|
919
919
|
if (!i && !o) {
|
|
920
920
|
a?.remove();
|
|
921
921
|
return;
|
|
922
922
|
}
|
|
923
923
|
const l = this.ownerDocument, c = a ?? l.createElementNS(Ct, "svg");
|
|
924
|
-
if (c.setAttribute(
|
|
924
|
+
if (c.setAttribute(he, ""), c.setAttribute("viewBox", `${-n} ${-n} ${t + n * 2} ${e + n * 2}`), c.setAttribute("width", `${t + n * 2}mm`), c.setAttribute("height", `${e + n * 2}mm`), c.style.cssText = `position:absolute;left:${-n}mm;top:${-n}mm;pointer-events:none;z-index:2147483646;`, c.replaceChildren(), i) {
|
|
925
925
|
const u = Math.min(n, 4), h = Math.min(n * 0.35, 1.5), d = [];
|
|
926
926
|
for (const m of [0, t])
|
|
927
927
|
for (const f of [0, e]) {
|
|
@@ -953,10 +953,10 @@ class Ze extends O {
|
|
|
953
953
|
this.style.removeProperty("filter");
|
|
954
954
|
return;
|
|
955
955
|
}
|
|
956
|
-
|
|
956
|
+
Er(this.ownerDocument), this.style.filter = `url(#${_e(t)})`;
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
x("om-cartograph",
|
|
959
|
+
x("om-cartograph", Qe);
|
|
960
960
|
function en({ text: r, maxWidth: t, fontSizePx: e, lineHeightPx: n, measure: i }) {
|
|
961
961
|
const s = n > 0 ? n : e * 1.2, o = [];
|
|
962
962
|
for (const c of r.split(/\r?\n/)) {
|
|
@@ -995,7 +995,7 @@ function Ni(r) {
|
|
|
995
995
|
function rn(r, t, e) {
|
|
996
996
|
return r === "center" ? (t - e) / 2 : r === "end" || r === "right" ? t - e : 0;
|
|
997
997
|
}
|
|
998
|
-
class
|
|
998
|
+
class tr extends O {
|
|
999
999
|
static observedAttributes = [...T["om-text"]];
|
|
1000
1000
|
renderNow() {
|
|
1001
1001
|
this.applyPlacement(), this.style.display = "block", this.style.boxSizing = "border-box", this.style.overflow = "hidden";
|
|
@@ -1040,7 +1040,7 @@ class Qe extends O {
|
|
|
1040
1040
|
t.restore();
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
|
-
x("om-text",
|
|
1043
|
+
x("om-text", tr);
|
|
1044
1044
|
const nn = 63710087714e-4;
|
|
1045
1045
|
let sn = nn;
|
|
1046
1046
|
const ot = Math.PI / 180;
|
|
@@ -1048,13 +1048,13 @@ function on(r, t, e = sn) {
|
|
|
1048
1048
|
const n = (t[1] - r[1]) * ot, i = (t[0] - r[0]) * ot, s = r[1] * ot, o = t[1] * ot, a = Math.sin(n / 2) ** 2 + Math.cos(s) * Math.cos(o) * Math.sin(i / 2) ** 2;
|
|
1049
1049
|
return 2 * e * Math.asin(Math.min(1, Math.sqrt(a)));
|
|
1050
1050
|
}
|
|
1051
|
-
const et = 6378137,
|
|
1051
|
+
const et = 6378137, fe = Math.PI / 180, pe = 180 / Math.PI, ge = 85.0511287798066, It = 2 * Math.PI * et / 360;
|
|
1052
1052
|
function Vt([r, t]) {
|
|
1053
|
-
const e = Math.max(-
|
|
1054
|
-
return [et * r *
|
|
1053
|
+
const e = Math.max(-ge, Math.min(ge, t));
|
|
1054
|
+
return [et * r * fe, et * Math.log(Math.tan(Math.PI / 4 + e * fe / 2))];
|
|
1055
1055
|
}
|
|
1056
1056
|
function pt([r, t]) {
|
|
1057
|
-
return [r / et *
|
|
1057
|
+
return [r / et * pe, (2 * Math.atan(Math.exp(t / et)) - Math.PI / 2) * pe];
|
|
1058
1058
|
}
|
|
1059
1059
|
const an = {
|
|
1060
1060
|
code: "EPSG:3857",
|
|
@@ -1076,16 +1076,16 @@ function Ht(r) {
|
|
|
1076
1076
|
const e = /^(?:epsg:{1,2})?(\d{4,6})$/i.exec(t);
|
|
1077
1077
|
return e ? `EPSG:${e[1]}` : t.toUpperCase();
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function er(r) {
|
|
1080
1080
|
const t = Ht(r) ?? "EPSG:3857";
|
|
1081
1081
|
return t === "EPSG:3857" || t === "EPSG:900913" ? an : t === "EPSG:4326" || t === "CRS:84" || t === "OGC:CRS84" ? ln : null;
|
|
1082
1082
|
}
|
|
1083
|
-
const
|
|
1083
|
+
const rr = /* @__PURE__ */ new Map();
|
|
1084
1084
|
function Ft(r, t) {
|
|
1085
1085
|
return !Number.isInteger(r) || r < 1 || r > 60 ? null : `+proj=utm +zone=${r}${t === "S" ? " +south" : ""} +datum=WGS84 +units=m +no_defs`;
|
|
1086
1086
|
}
|
|
1087
1087
|
async function cn(r) {
|
|
1088
|
-
const t =
|
|
1088
|
+
const t = rr.get(r);
|
|
1089
1089
|
if (typeof t == "string") return t;
|
|
1090
1090
|
const e = Number(/^EPSG:(\d+)$/.exec(r)?.[1]);
|
|
1091
1091
|
if (!Number.isFinite(e)) return null;
|
|
@@ -1101,10 +1101,10 @@ function un(r) {
|
|
|
1101
1101
|
return t.startsWith("deg") ? { units: "degree", metresPerUnit: It } : t.includes("ft") || t.includes("foot") ? { units: "linear", metresPerUnit: 0.3048 } : { units: "linear", metresPerUnit: 1 };
|
|
1102
1102
|
}
|
|
1103
1103
|
async function hn(r, t) {
|
|
1104
|
-
const e = Ht(r) ?? "EPSG:3857", n =
|
|
1104
|
+
const e = Ht(r) ?? "EPSG:3857", n = rr.get(e);
|
|
1105
1105
|
if (n && typeof n != "string") return n;
|
|
1106
1106
|
if (!t) {
|
|
1107
|
-
const u =
|
|
1107
|
+
const u = er(e);
|
|
1108
1108
|
if (u) return u;
|
|
1109
1109
|
}
|
|
1110
1110
|
const i = t?.trim() || await cn(e);
|
|
@@ -1118,14 +1118,14 @@ async function hn(r, t) {
|
|
|
1118
1118
|
inverse: (u) => a.forward(u)
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1121
|
+
const be = Math.PI / 180, mn = 180 / Math.PI, dn = { code: "EPSG:3857", forward: Vt, inverse: pt }, Pi = Vt, Ti = pt, ye = 6378137, we = 89.9;
|
|
1122
1122
|
function fn([r, t]) {
|
|
1123
|
-
const e = Math.max(-
|
|
1124
|
-
return [
|
|
1123
|
+
const e = Math.max(-we, Math.min(we, t));
|
|
1124
|
+
return [ye * r * be, ye * Math.log(Math.tan(Math.PI / 4 + e * be / 2))];
|
|
1125
1125
|
}
|
|
1126
1126
|
const pn = { code: "EPSG:3857", forward: fn, inverse: pt }, Ot = Ht;
|
|
1127
1127
|
function Y(r) {
|
|
1128
|
-
return
|
|
1128
|
+
return er(r);
|
|
1129
1129
|
}
|
|
1130
1130
|
async function _t(r, t) {
|
|
1131
1131
|
return hn(r, t);
|
|
@@ -1159,7 +1159,7 @@ function bn(r, t) {
|
|
|
1159
1159
|
const u = (h) => [h[0] / s + e, h[1] / s + n];
|
|
1160
1160
|
return { matrix: [c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7], 1], normalize: o, denormalize: u };
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function ve(r, [t, e]) {
|
|
1163
1163
|
const n = r[6] * t + r[7] * e + r[8];
|
|
1164
1164
|
return Math.abs(n) < 1e-12 ? null : [(r[0] * t + r[1] * e + r[2]) / n, (r[3] * t + r[4] * e + r[5]) / n];
|
|
1165
1165
|
}
|
|
@@ -1183,12 +1183,12 @@ function wn(r, t) {
|
|
|
1183
1183
|
for (; t - e > 180; ) e += 360;
|
|
1184
1184
|
return e;
|
|
1185
1185
|
}
|
|
1186
|
-
const
|
|
1186
|
+
const nr = (r) => {
|
|
1187
1187
|
let t = ((r + 180) % 360 + 360) % 360 - 180;
|
|
1188
1188
|
return t === -180 && (t = 180), t;
|
|
1189
1189
|
};
|
|
1190
1190
|
function tt({ corners: r, widthMm: t, heightMm: e, crsForward: n, continuous: i = !1 }) {
|
|
1191
|
-
const s = n ?? (i ? pn : dn), o = r[0][0], a = (b) => i ? b : wn(b, o), l = (b) => i ? b :
|
|
1191
|
+
const s = n ?? (i ? pn : dn), o = r[0][0], a = (b) => i ? b : wn(b, o), l = (b) => i ? b : nr(b), c = r.map(([b, w]) => [a(b), w]), u = c.map((b) => s.forward(b)), h = [
|
|
1192
1192
|
[0, 0],
|
|
1193
1193
|
[t, 0],
|
|
1194
1194
|
[t, e],
|
|
@@ -1211,12 +1211,12 @@ function tt({ corners: r, widthMm: t, heightMm: e, crsForward: n, continuous: i
|
|
|
1211
1211
|
continuous: i,
|
|
1212
1212
|
project(b) {
|
|
1213
1213
|
if (!d) return null;
|
|
1214
|
-
const w = s.forward([a(b[0]), b[1]]), y =
|
|
1214
|
+
const w = s.forward([a(b[0]), b[1]]), y = ve(d.matrix, d.normalize(w));
|
|
1215
1215
|
return y && Number.isFinite(y[0]) && Number.isFinite(y[1]) ? { xMm: y[0], yMm: y[1] } : null;
|
|
1216
1216
|
},
|
|
1217
1217
|
unproject(b, w) {
|
|
1218
1218
|
if (!d || !m) return null;
|
|
1219
|
-
const y =
|
|
1219
|
+
const y = ve(m, [b, w]);
|
|
1220
1220
|
if (!y) return null;
|
|
1221
1221
|
const A = s.inverse(d.denormalize(y));
|
|
1222
1222
|
return Number.isFinite(A[0]) && Number.isFinite(A[1]) ? [l(A[0]), A[1]] : null;
|
|
@@ -1381,7 +1381,7 @@ function Ut(r, t, e, n) {
|
|
|
1381
1381
|
return o;
|
|
1382
1382
|
}
|
|
1383
1383
|
async function xn(r, t) {
|
|
1384
|
-
const e = await
|
|
1384
|
+
const e = await Fe();
|
|
1385
1385
|
if (t && typeof t != "string") return { core: e, map: t };
|
|
1386
1386
|
if (!t) throw new Error("a live frame needs src= or an inline <om-map> child");
|
|
1387
1387
|
const n = await Cn(t, r.ownerDocument);
|
|
@@ -1429,8 +1429,8 @@ async function Tn(r, t, e) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
return a;
|
|
1431
1431
|
}
|
|
1432
|
-
const kt = "data-om-carto-placeholder",
|
|
1433
|
-
class
|
|
1432
|
+
const kt = "data-om-carto-placeholder", Ae = "data-om-carto-source", $t = "data-om-carto-capture", Et = "data-om-carto-overview", Me = "http://www.w3.org/2000/svg", Se = 24, Ce = 0.25;
|
|
1433
|
+
class ir extends O {
|
|
1434
1434
|
static observedAttributes = [...T["om-frame"]];
|
|
1435
1435
|
/** Resolved non-builtin CRS planes, so a re-render does not re-await proj4. */
|
|
1436
1436
|
resolvedForward = null;
|
|
@@ -1582,7 +1582,7 @@ class nr extends O {
|
|
|
1582
1582
|
renderNow() {
|
|
1583
1583
|
this.applyPlacement(), this.style.display = "block", this.style.overflow = "hidden", this.style.boxSizing = "border-box";
|
|
1584
1584
|
const t = this.getAttribute("frame-stroke");
|
|
1585
|
-
this.style.border = "0", this.style.boxShadow = `inset 0 0 0 ${
|
|
1585
|
+
this.style.border = "0", this.style.boxShadow = `inset 0 0 0 ${Ce}mm ${t || "var(--om-carto-frame-stroke)"}`;
|
|
1586
1586
|
const e = this.getAttribute("frame-bg");
|
|
1587
1587
|
this.style.background = e || "var(--om-carto-frame-bg)", this.mode === "static" ? (this.suspendLiveMode(), this.renderStatic()) : this.renderLive(), this.renderOverview();
|
|
1588
1588
|
}
|
|
@@ -1640,7 +1640,7 @@ class nr extends O {
|
|
|
1640
1640
|
return;
|
|
1641
1641
|
}
|
|
1642
1642
|
const o = Pn(s);
|
|
1643
|
-
o !== this.knownSourceList && (this.knownSourceList = o, this.sourceCursor = 0, this.settledSource = null, this.removeAttribute(
|
|
1643
|
+
o !== this.knownSourceList && (this.knownSourceList = o, this.sourceCursor = 0, this.settledSource = null, this.removeAttribute(Ae));
|
|
1644
1644
|
const a = Math.min(this.sourceCursor, s.length - 1), l = s[a];
|
|
1645
1645
|
if (l.kind === "raster") {
|
|
1646
1646
|
this.suspendLiveMode(), this.renderCaptureSource(l, a);
|
|
@@ -1714,9 +1714,9 @@ class nr extends O {
|
|
|
1714
1714
|
*/
|
|
1715
1715
|
settleSource(t, e) {
|
|
1716
1716
|
if (this.settledSource?.key === t.key) return;
|
|
1717
|
-
this.settledSource = t, this.sourceCursor = e, this.setAttribute(
|
|
1717
|
+
this.settledSource = t, this.sourceCursor = e, this.setAttribute(Ae, String(e));
|
|
1718
1718
|
const n = { id: this.id, index: e, kind: t.kind, src: t.src ?? null };
|
|
1719
|
-
this.dispatchEvent(new CustomEvent("om-frame-source", { bubbles: !0, detail: n })), this.dispatchEvent(new CustomEvent("om-frame-view", { bubbles: !0, detail: { id: this.id } }));
|
|
1719
|
+
this.dispatchEvent(new CustomEvent("om-frame-source", { bubbles: !0, detail: n })), this.dispatchEvent(new CustomEvent("om-frame-view", { bubbles: !0, detail: { id: this.id } })), this.dispatchEvent(new CustomEvent("om-attributions-changed", { bubbles: !0 }));
|
|
1720
1720
|
}
|
|
1721
1721
|
/** Leave live mode without deleting an authored inline map. */
|
|
1722
1722
|
suspendLiveMode() {
|
|
@@ -1824,7 +1824,7 @@ class nr extends O {
|
|
|
1824
1824
|
e?.remove();
|
|
1825
1825
|
return;
|
|
1826
1826
|
}
|
|
1827
|
-
const n =
|
|
1827
|
+
const n = Xe(this, t), i = this.georef, s = n?.georef;
|
|
1828
1828
|
if (!n || !i || !s) {
|
|
1829
1829
|
e?.remove();
|
|
1830
1830
|
return;
|
|
@@ -1836,17 +1836,17 @@ class nr extends O {
|
|
|
1836
1836
|
[d, c]
|
|
1837
1837
|
];
|
|
1838
1838
|
for (const [b, w] of m)
|
|
1839
|
-
for (let y = 0; y <
|
|
1840
|
-
const A = y /
|
|
1839
|
+
for (let y = 0; y < Se; y++) {
|
|
1840
|
+
const A = y / Se, v = [b[0] + (w[0] - b[0]) * A, b[1] + (w[1] - b[1]) * A], $ = i.project(v);
|
|
1841
1841
|
$ && l.push(`${$.xMm.toFixed(3)},${$.yMm.toFixed(3)}`);
|
|
1842
1842
|
}
|
|
1843
1843
|
if (l.length < 3) {
|
|
1844
1844
|
e?.remove();
|
|
1845
1845
|
return;
|
|
1846
1846
|
}
|
|
1847
|
-
const f = this.ownerDocument, g = e ?? f.createElementNS(
|
|
1847
|
+
const f = this.ownerDocument, g = e ?? f.createElementNS(Me, "svg");
|
|
1848
1848
|
g.setAttribute(Et, ""), g.setAttribute("width", `${o}mm`), g.setAttribute("height", `${a}mm`), g.setAttribute("viewBox", `0 0 ${o} ${a}`), g.style.cssText = "position:absolute;inset:0;pointer-events:none;", g.replaceChildren();
|
|
1849
|
-
const p = f.createElementNS(
|
|
1849
|
+
const p = f.createElementNS(Me, "polygon");
|
|
1850
1850
|
p.setAttribute("points", l.join(" ")), p.setAttribute("fill", "none"), p.setAttribute("stroke", this.getAttribute("overview-stroke") || "#e63946"), p.setAttribute("stroke-width", "0.4"), g.appendChild(p), e || this.appendChild(g);
|
|
1851
1851
|
}
|
|
1852
1852
|
// -------------------------------------------------------------------------
|
|
@@ -1938,7 +1938,9 @@ class nr extends O {
|
|
|
1938
1938
|
* the only source a page without the runtime has.
|
|
1939
1939
|
*/
|
|
1940
1940
|
attributions() {
|
|
1941
|
-
|
|
1941
|
+
if (this.mode !== "live") return se(this.getAttribute("attribution"));
|
|
1942
|
+
const t = this.settledSource;
|
|
1943
|
+
return t?.kind === "raster" ? se(t.el.getAttribute("attribution")) : this.liveMap?.attributions?.() ?? [];
|
|
1942
1944
|
}
|
|
1943
1945
|
/**
|
|
1944
1946
|
* Point this frame's camera at a lon/lat box — the atlas's per-page refit.
|
|
@@ -2002,7 +2004,7 @@ class nr extends O {
|
|
|
2002
2004
|
l && (t.fillStyle = l, t.fillRect(0, 0, s, o));
|
|
2003
2005
|
const c = this.mode === "static" ? this.vector ? this.captureImage : this.raster : this.captureImage;
|
|
2004
2006
|
c && c.complete && c.naturalWidth > 0 && t.drawImage(c, 0, 0, s, o), this.paintOverview(t, e);
|
|
2005
|
-
const u = this.getAttribute("frame-stroke") || I(a?.getPropertyValue("--om-carto-frame-stroke")?.trim()) || "#333333", h =
|
|
2007
|
+
const u = this.getAttribute("frame-stroke") || I(a?.getPropertyValue("--om-carto-frame-stroke")?.trim()) || "#333333", h = Ce * e.pxPerMm;
|
|
2006
2008
|
h > 0 && (t.strokeStyle = u, t.lineWidth = h, t.strokeRect(h / 2, h / 2, s - h, o - h));
|
|
2007
2009
|
}
|
|
2008
2010
|
paintOverview(t, e) {
|
|
@@ -2013,15 +2015,15 @@ class nr extends O {
|
|
|
2013
2015
|
}), t.closePath(), t.stroke(), t.restore());
|
|
2014
2016
|
}
|
|
2015
2017
|
}
|
|
2016
|
-
x("om-frame",
|
|
2018
|
+
x("om-frame", ir);
|
|
2017
2019
|
const at = "http://www.w3.org/2000/svg", Ln = ["single", "double", "line", "ticks"];
|
|
2018
|
-
class
|
|
2020
|
+
class sr extends O {
|
|
2019
2021
|
static observedAttributes = [...T["om-scalebar"]];
|
|
2020
2022
|
/** The geometry currently drawn — reused by the canvas exporter. */
|
|
2021
2023
|
get drawing() {
|
|
2022
2024
|
const e = U(this)?.georef;
|
|
2023
2025
|
if (!e) return null;
|
|
2024
|
-
const { w: n, h: i } = S(this), s =
|
|
2026
|
+
const { w: n, h: i } = S(this), s = Ke({
|
|
2025
2027
|
groundMetersPerMm: e.groundMetersPerMm(),
|
|
2026
2028
|
maxWidthMm: n,
|
|
2027
2029
|
segments: Number(this.getAttribute("segments")) || void 0,
|
|
@@ -2085,9 +2087,9 @@ class ir extends O {
|
|
|
2085
2087
|
t.textAlign = l.anchor === "middle" ? "center" : l.anchor === "end" ? "right" : "left", t.fillText(l.text, o(l.x), o(l.y));
|
|
2086
2088
|
}
|
|
2087
2089
|
}
|
|
2088
|
-
x("om-scalebar",
|
|
2090
|
+
x("om-scalebar", sr);
|
|
2089
2091
|
const Q = "http://www.w3.org/2000/svg";
|
|
2090
|
-
class
|
|
2092
|
+
class or extends O {
|
|
2091
2093
|
static observedAttributes = [...T["om-north"]];
|
|
2092
2094
|
/** Degrees clockwise from the page's "up", or null when unknowable. */
|
|
2093
2095
|
get bearing() {
|
|
@@ -2133,9 +2135,9 @@ class sr extends O {
|
|
|
2133
2135
|
t.save(), t.translate(l(h), l(s / 2)), t.rotate(n * Math.PI / 180), t.translate(-l(h), -l(s / 2)), t.fillStyle = a, t.strokeStyle = a, this.indicatorKind === "rose" && (t.lineWidth = l(0.2), t.beginPath(), t.arc(l(h), l(u / 2), l(Math.min(i, u) / 2), 0, Math.PI * 2), t.stroke()), t.beginPath(), t.moveTo(l(h), 0), t.lineTo(l(h + d), l(u)), t.lineTo(l(h), l(u - d * 0.55)), t.lineTo(l(h - d), l(u)), t.closePath(), t.fill(), t.font = `${l(c)}px ${o?.fontFamily || "system-ui, sans-serif"}`, t.textAlign = "center", t.textBaseline = "alphabetic", t.fillText("N", l(h), l(s)), t.restore();
|
|
2134
2136
|
}
|
|
2135
2137
|
}
|
|
2136
|
-
x("om-north",
|
|
2138
|
+
x("om-north", or);
|
|
2137
2139
|
const lt = "http://www.w3.org/2000/svg", Rn = ["rect", "ellipse", "line", "arrow"];
|
|
2138
|
-
class
|
|
2140
|
+
class ar extends O {
|
|
2139
2141
|
static observedAttributes = [...T["om-shape"]];
|
|
2140
2142
|
get kind() {
|
|
2141
2143
|
const t = this.getAttribute("kind");
|
|
@@ -2196,9 +2198,9 @@ class or extends O {
|
|
|
2196
2198
|
t.restore();
|
|
2197
2199
|
}
|
|
2198
2200
|
}
|
|
2199
|
-
x("om-shape",
|
|
2200
|
-
const
|
|
2201
|
-
class
|
|
2201
|
+
x("om-shape", ar);
|
|
2202
|
+
const xe = "data-om-carto-owned", In = ["contain", "cover", "fill"];
|
|
2203
|
+
class lr extends O {
|
|
2202
2204
|
static observedAttributes = [...T["om-image"]];
|
|
2203
2205
|
get fit() {
|
|
2204
2206
|
const t = this.getAttribute("fit");
|
|
@@ -2211,7 +2213,7 @@ class ar extends O {
|
|
|
2211
2213
|
this.applyPlacement(), this.style.display = "block", this.style.overflow = "hidden";
|
|
2212
2214
|
const t = this.getAttribute("src");
|
|
2213
2215
|
let e = this.image;
|
|
2214
|
-
!e && t && (e = this.ownerDocument.createElement("img"), e.setAttribute(
|
|
2216
|
+
!e && t && (e = this.ownerDocument.createElement("img"), e.setAttribute(xe, ""), e.alt = "", e.crossOrigin = "anonymous", this.appendChild(e)), e && (t && e.hasAttribute(xe) && e.getAttribute("src") !== t && e.setAttribute("src", t), e.style.width = "100%", e.style.height = "100%", e.style.objectFit = this.fit, e.style.display = "block");
|
|
2215
2217
|
}
|
|
2216
2218
|
paintCartograph(t, e) {
|
|
2217
2219
|
const n = this.image;
|
|
@@ -2227,7 +2229,7 @@ class ar extends O {
|
|
|
2227
2229
|
l === "cover" && (t.save(), t.beginPath(), t.rect(0, 0, o, a), t.clip()), t.drawImage(n, (o - d) / 2, (a - m) / 2, d, m), l === "cover" && t.restore();
|
|
2228
2230
|
}
|
|
2229
2231
|
}
|
|
2230
|
-
x("om-image",
|
|
2232
|
+
x("om-image", lr);
|
|
2231
2233
|
const Fn = /* @__PURE__ */ new Set(["PathLayer", "LineLayer", "ArcLayer", "TripsLayer", "GreatCircleLayer", "PathStyleLayer"]), On = /* @__PURE__ */ new Set(["ScatterplotLayer", "IconLayer", "TextLayer", "PointCloudLayer", "HeatmapLayer", "ScreenGridLayer"]), _n = /* @__PURE__ */ new Set(["COGLayer", "ZarrLayer", "BitmapLayer", "TerrainLayer", "ImageOverlay"]);
|
|
2232
2234
|
function Un(r) {
|
|
2233
2235
|
const t = r.type ?? "";
|
|
@@ -2303,7 +2305,7 @@ function qn(r) {
|
|
|
2303
2305
|
}
|
|
2304
2306
|
return t;
|
|
2305
2307
|
}
|
|
2306
|
-
function
|
|
2308
|
+
function cr(r) {
|
|
2307
2309
|
const t = [];
|
|
2308
2310
|
for (const e of r.querySelectorAll(":scope > om-legend-row")) {
|
|
2309
2311
|
if (e.hasAttribute("hide")) continue;
|
|
@@ -2318,15 +2320,15 @@ function lr(r) {
|
|
|
2318
2320
|
}
|
|
2319
2321
|
return t.sort((e, n) => (e.order ?? Number.POSITIVE_INFINITY) - (n.order ?? Number.POSITIVE_INFINITY));
|
|
2320
2322
|
}
|
|
2321
|
-
const
|
|
2322
|
-
class
|
|
2323
|
+
const ke = "data-om-carto-legend-rows";
|
|
2324
|
+
class ur extends O {
|
|
2323
2325
|
static observedAttributes = [...T["om-legend"]];
|
|
2324
2326
|
get derived() {
|
|
2325
2327
|
return this.getAttribute("derived") !== "false";
|
|
2326
2328
|
}
|
|
2327
2329
|
/** The rows this legend currently shows — recomputed on demand, never stored. */
|
|
2328
2330
|
get rows() {
|
|
2329
|
-
if (!this.derived) return
|
|
2331
|
+
if (!this.derived) return cr(this);
|
|
2330
2332
|
const n = U(this)?.mapElement?.getLayers?.();
|
|
2331
2333
|
return n ? zn(n, qn(this)) : [];
|
|
2332
2334
|
}
|
|
@@ -2355,9 +2357,9 @@ class cr extends O {
|
|
|
2355
2357
|
}
|
|
2356
2358
|
renderRows(t) {
|
|
2357
2359
|
const e = this.ownerDocument;
|
|
2358
|
-
this.querySelector(`:scope > [${
|
|
2360
|
+
this.querySelector(`:scope > [${ke}]`)?.remove(), Zr(this);
|
|
2359
2361
|
const n = e.createElement("div");
|
|
2360
|
-
n.setAttribute(
|
|
2362
|
+
n.setAttribute(ke, ""), n.style.cssText = `padding:${this.paddingMm}mm;font-size:${this.fontMm}mm;line-height:1.35;`;
|
|
2361
2363
|
const i = this.getAttribute("title");
|
|
2362
2364
|
if (i) {
|
|
2363
2365
|
const o = e.createElement("div");
|
|
@@ -2420,9 +2422,9 @@ class cr extends O {
|
|
|
2420
2422
|
const k = C.legend;
|
|
2421
2423
|
if (t.save(), t.font = `${m(2.1)}px ${d}`, t.globalAlpha = 0.7, t.fillText(k.field, m(N + 2.7), p), t.globalAlpha = 1, p += m(2.8), k.kind === "ramp") {
|
|
2422
2424
|
const L = Math.min(24, Math.max(1, G - 2.7)), R = N + 2.7, B = t.createLinearGradient(m(R), 0, m(R + L), 0);
|
|
2423
|
-
k.colors.forEach((
|
|
2424
|
-
const
|
|
2425
|
-
t.textAlign = "right", t.fillText(
|
|
2425
|
+
k.colors.forEach((gr, br) => B.addColorStop(k.colors.length === 1 ? 0 : br / (k.colors.length - 1), gr)), t.fillStyle = B, t.fillRect(m(R), p, m(L), m(2.4)), p += m(3.4), t.fillStyle = h, t.font = `${m(2.1)}px ${d}`, t.fillText(k.domain[0].toLocaleString("en-US"), m(R), p);
|
|
2426
|
+
const pr = k.domain[1].toLocaleString("en-US");
|
|
2427
|
+
t.textAlign = "right", t.fillText(pr, m(R + L), p), t.textAlign = "left", p += m(3.2);
|
|
2426
2428
|
} else {
|
|
2427
2429
|
const L = [...k.entries];
|
|
2428
2430
|
k.kind === "categories" && k.defaultColor && L.push({ color: k.defaultColor, label: "other" }), t.font = `${m(2.3)}px ${d}`;
|
|
@@ -2440,40 +2442,40 @@ const ct = (r, t) => {
|
|
|
2440
2442
|
const e = r.createElement("span");
|
|
2441
2443
|
return e.textContent = t, e;
|
|
2442
2444
|
};
|
|
2443
|
-
x("om-legend",
|
|
2444
|
-
const
|
|
2445
|
+
x("om-legend", ur);
|
|
2446
|
+
const $e = 48, zt = {
|
|
2445
2447
|
toLngLat: (r, t) => [r, t],
|
|
2446
2448
|
fromLngLat: (r) => [r[0], r[1]]
|
|
2447
2449
|
};
|
|
2448
|
-
function
|
|
2449
|
-
return !Number.isFinite(r) || r <= 0 ? 0 :
|
|
2450
|
+
function Ee(r, t = 5) {
|
|
2451
|
+
return !Number.isFinite(r) || r <= 0 ? 0 : Be(r / Math.max(1, t));
|
|
2450
2452
|
}
|
|
2451
2453
|
function Wn({ georef: r, plane: t = zt, interval: e, intervalX: n, intervalY: i, labels: s = "outside", format: o }) {
|
|
2452
2454
|
if (r.degenerate) return null;
|
|
2453
2455
|
const a = r.corners.map((y) => t.fromLngLat(y)), l = a.map((y) => y[0]), c = a.map((y) => y[1]);
|
|
2454
2456
|
if (l.some((y) => !Number.isFinite(y)) || c.some((y) => !Number.isFinite(y))) return null;
|
|
2455
|
-
const u = Math.min(...l), h = Math.max(...l), d = Math.min(...c), m = Math.max(...c), f =
|
|
2457
|
+
const u = Math.min(...l), h = Math.max(...l), d = Math.min(...c), m = Math.max(...c), f = Ne(n ?? e, Ee(h - u)), g = Ne(i ?? e, Ee(m - d));
|
|
2456
2458
|
if (f <= 0 || g <= 0 || (h - u) / f > 500 || (m - d) / g > 500) return null;
|
|
2457
2459
|
const p = [], b = [], w = o ?? Kn;
|
|
2458
2460
|
for (let y = Math.ceil(u / f) * f; y <= h + 1e-9; y += f) {
|
|
2459
|
-
const A =
|
|
2461
|
+
const A = Pe(r, t, y, d, m, "x");
|
|
2460
2462
|
if (A) {
|
|
2461
2463
|
p.push(A);
|
|
2462
|
-
const v = t === zt ?
|
|
2463
|
-
s !== "none" &&
|
|
2464
|
+
const v = t === zt ? nr(y) : y;
|
|
2465
|
+
s !== "none" && Le(b, A, r, w(v, "x"), "x", s);
|
|
2464
2466
|
}
|
|
2465
2467
|
}
|
|
2466
2468
|
for (let y = Math.ceil(d / g) * g; y <= m + 1e-9; y += g) {
|
|
2467
|
-
const A =
|
|
2468
|
-
A && (p.push(A), s !== "none" &&
|
|
2469
|
+
const A = Pe(r, t, y, u, h, "y");
|
|
2470
|
+
A && (p.push(A), s !== "none" && Le(b, A, r, w(y, "y"), "y", s));
|
|
2469
2471
|
}
|
|
2470
2472
|
return { lines: p, labels: b, intervalX: f, intervalY: g };
|
|
2471
2473
|
}
|
|
2472
|
-
const
|
|
2473
|
-
function
|
|
2474
|
+
const Ne = (r, t) => r != null && Number.isFinite(r) && r > 0 ? r : t;
|
|
2475
|
+
function Pe(r, t, e, n, i, s) {
|
|
2474
2476
|
const o = [];
|
|
2475
|
-
for (let l = 0; l <=
|
|
2476
|
-
const c = n + (i - n) * l /
|
|
2477
|
+
for (let l = 0; l <= $e; l++) {
|
|
2478
|
+
const c = n + (i - n) * l / $e, u = s === "x" ? t.toLngLat(e, c) : t.toLngLat(c, e);
|
|
2477
2479
|
if (!Number.isFinite(u[0]) || !Number.isFinite(u[1])) continue;
|
|
2478
2480
|
const h = r.project(u);
|
|
2479
2481
|
h && o.push(h);
|
|
@@ -2486,10 +2488,10 @@ function Bn(r, t, e) {
|
|
|
2486
2488
|
if (i === -1) return [];
|
|
2487
2489
|
let s = r.length - 1;
|
|
2488
2490
|
for (; s > i && !n(r[s]); ) s--;
|
|
2489
|
-
return r.slice(Math.max(0, i - 1), Math.min(r.length, s + 2)).map((a) => ({ xMm:
|
|
2491
|
+
return r.slice(Math.max(0, i - 1), Math.min(r.length, s + 2)).map((a) => ({ xMm: Te(a.xMm, 0, t), yMm: Te(a.yMm, 0, e) }));
|
|
2490
2492
|
}
|
|
2491
|
-
const
|
|
2492
|
-
function
|
|
2493
|
+
const Te = (r, t, e) => Math.min(e, Math.max(t, r));
|
|
2494
|
+
function Le(r, t, e, n, i, s) {
|
|
2493
2495
|
if (i === "x") {
|
|
2494
2496
|
const o = t.points.reduce((a, l) => l.yMm > a.yMm ? l : a);
|
|
2495
2497
|
if (Math.abs(o.yMm - e.heightMm) > 0.5) return;
|
|
@@ -2510,7 +2512,7 @@ function Vn(r, t) {
|
|
|
2510
2512
|
return `${c}°${String(u).padStart(2, "0")}′${String(h).padStart(2, "0")}″${e}`;
|
|
2511
2513
|
}
|
|
2512
2514
|
const ut = "http://www.w3.org/2000/svg", Hn = ["solid", "cross", "markers"], j = 1.4;
|
|
2513
|
-
class
|
|
2515
|
+
class hr extends O {
|
|
2514
2516
|
static observedAttributes = [...T["om-graticule"]];
|
|
2515
2517
|
resolvedPlane = null;
|
|
2516
2518
|
resolvedPlaneKey = null;
|
|
@@ -2632,7 +2634,7 @@ function Yn(r, t) {
|
|
|
2632
2634
|
}
|
|
2633
2635
|
return n <= 1 ? e : null;
|
|
2634
2636
|
}
|
|
2635
|
-
x("om-graticule",
|
|
2637
|
+
x("om-graticule", hr);
|
|
2636
2638
|
function Xn(r, t) {
|
|
2637
2639
|
if (r == null || typeof r != "object") return;
|
|
2638
2640
|
const e = r.properties;
|
|
@@ -2719,8 +2721,8 @@ function si(r, t, e) {
|
|
|
2719
2721
|
return n.set(l, c + 1), `${c === 0 ? l : `${l}-${c + 1}`}.${e}`;
|
|
2720
2722
|
});
|
|
2721
2723
|
}
|
|
2722
|
-
const
|
|
2723
|
-
class
|
|
2724
|
+
const Re = "data-om-carto-pager", oi = "data-om-carto-screen-only", ai = "onlymap-cartograph", li = "onlymap-cartograph-host";
|
|
2725
|
+
class mr extends O {
|
|
2724
2726
|
static observedAttributes = [...T["om-atlas"]];
|
|
2725
2727
|
/**
|
|
2726
2728
|
* Pages are SNAPSHOTTED when iteration first starts. A streaming or polling
|
|
@@ -2895,14 +2897,14 @@ class hr extends O {
|
|
|
2895
2897
|
renderPager() {
|
|
2896
2898
|
const t = this.closest("om-cartograph");
|
|
2897
2899
|
if (!t) return;
|
|
2898
|
-
const e = t.querySelector(`:scope > [${
|
|
2900
|
+
const e = t.querySelector(`:scope > [${Re}]`), n = this.count;
|
|
2899
2901
|
if (this.getAttribute("pager") === "none" || n === 0) {
|
|
2900
2902
|
e?.remove(), this.pager = null;
|
|
2901
2903
|
return;
|
|
2902
2904
|
}
|
|
2903
2905
|
const i = this.ownerDocument, s = e ?? i.createElement("div");
|
|
2904
2906
|
if (!e) {
|
|
2905
|
-
s.setAttribute(
|
|
2907
|
+
s.setAttribute(Re, ""), s.setAttribute(oi, ""), s.setAttribute("role", "navigation"), s.setAttribute("aria-label", "Atlas pages"), s.style.cssText = "position:absolute;left:50%;bottom:4mm;transform:translateX(-50%);z-index:2147483000;display:flex;align-items:center;gap:8px;padding:4px 10px;border-radius:999px;background:rgba(20,20,24,.82);color:#fff;font:12px/1.2 system-ui,sans-serif;box-shadow:0 2px 10px rgba(0,0,0,.35);user-select:none;pointer-events:auto;";
|
|
2906
2908
|
for (const [u, h, d] of [
|
|
2907
2909
|
[-1, "‹", "Previous page"],
|
|
2908
2910
|
[1, "›", "Next page"]
|
|
@@ -2934,8 +2936,8 @@ class hr extends O {
|
|
|
2934
2936
|
this.style.display = "none", this.refresh();
|
|
2935
2937
|
}
|
|
2936
2938
|
}
|
|
2937
|
-
x("om-atlas",
|
|
2938
|
-
class ci extends
|
|
2939
|
+
x("om-atlas", mr);
|
|
2940
|
+
class ci extends qe {
|
|
2939
2941
|
static observedAttributes = [...T["om-source"]];
|
|
2940
2942
|
connectedCallback() {
|
|
2941
2943
|
this.style.display = "none";
|
|
@@ -2950,7 +2952,7 @@ class ci extends Ge {
|
|
|
2950
2952
|
}
|
|
2951
2953
|
}
|
|
2952
2954
|
const ui = /* @__PURE__ */ new Set(["class", "style", "id", "hidden", "title", "lang", "dir", "slot", "part", "role", "tabindex"]), hi = /* @__PURE__ */ new Set(["style", "script", "img", "template", "om-map"]), mi = ["data-om-carto-credit", "data-om-carto-marks", "data-om-carto-flattened"], di = /* @__PURE__ */ new Set(["om-text", "om-legend", "om-scalebar", "om-north", "om-shape", "om-image"]), fi = /* @__PURE__ */ new Set(["om-frame", "om-legend", "om-scalebar", "om-north", "om-graticule", "om-text", "om-shape", "om-image"]), pi = 0.02, gi = (r) => Math.max(0, Number(r.getAttribute("bleed")) || 0);
|
|
2953
|
-
function
|
|
2955
|
+
function dr(r) {
|
|
2954
2956
|
const t = r.tagName.toLowerCase();
|
|
2955
2957
|
return r.id ? `${t}#${r.id}` : t;
|
|
2956
2958
|
}
|
|
@@ -2969,9 +2971,9 @@ function yi(r, t) {
|
|
|
2969
2971
|
const n = new RegExp(`(?:^|;)\\s*${t}\\s*:\\s*(-?[\\d.]+)mm`, "i").exec(e);
|
|
2970
2972
|
return n ? Number(n[1]) : null;
|
|
2971
2973
|
}
|
|
2972
|
-
function
|
|
2974
|
+
function fr(r) {
|
|
2973
2975
|
const t = [], e = (o, a, l, c, u) => {
|
|
2974
|
-
t.push({ severity: o, element:
|
|
2976
|
+
t.push({ severity: o, element: dr(a), ...u ? { attribute: u } : {}, message: l, fix: c });
|
|
2975
2977
|
}, n = [...r.querySelectorAll("om-cartograph")];
|
|
2976
2978
|
if (n.length === 0 && r.tagName?.toLowerCase() === "om-cartograph" && n.push(r), n.length === 0)
|
|
2977
2979
|
return { valid: !0, errors: [], warnings: [] };
|
|
@@ -2981,15 +2983,15 @@ function dr(r) {
|
|
|
2981
2983
|
}
|
|
2982
2984
|
function wi(r, t) {
|
|
2983
2985
|
const e = r.getAttribute("size"), n = H(r, "width") != null && H(r, "height") != null;
|
|
2984
|
-
e && !
|
|
2986
|
+
e && !oe.includes(e) && !n && t(
|
|
2985
2987
|
"error",
|
|
2986
2988
|
r,
|
|
2987
2989
|
`Unknown page size "${e}" and no width/height to fall back on.`,
|
|
2988
|
-
`Use one of ${
|
|
2990
|
+
`Use one of ${oe.join(", ")}, or give width= and height= in millimetres.`,
|
|
2989
2991
|
"size"
|
|
2990
2992
|
);
|
|
2991
2993
|
const i = r.getAttribute("cvd");
|
|
2992
|
-
i && i.trim().toLowerCase() !== "none" && !qt(i) && t("warning", r, `Unknown cvd="${i}" — no simulation applied.`, `Use one of ${
|
|
2994
|
+
i && i.trim().toLowerCase() !== "none" && !qt(i) && t("warning", r, `Unknown cvd="${i}" — no simulation applied.`, `Use one of ${Sr.join(", ")}.`, "cvd"), r.hasAttribute("crop-marks") && gi(r) <= 0 && t("warning", r, "crop-marks needs bleed to draw into — trim marks sit outside the page box.", 'Add bleed="3" (mm), or drop crop-marks.', "crop-marks");
|
|
2993
2995
|
const s = H(r, "safe-zone");
|
|
2994
2996
|
if (s != null && s > 0) {
|
|
2995
2997
|
const m = dt(r.getAttribute("size"), r.getAttribute("width"), r.getAttribute("height"), r.getAttribute("orientation"));
|
|
@@ -3026,7 +3028,7 @@ function wi(r, t) {
|
|
|
3026
3028
|
g.box.w <= 0 || g.box.h <= 0 || p.box.w <= 0 || p.box.h <= 0 || bi(g.box, p.box) && t(
|
|
3027
3029
|
"warning",
|
|
3028
3030
|
g.el,
|
|
3029
|
-
`Overlaps ${
|
|
3031
|
+
`Overlaps ${dr(p.el)} on the page.`,
|
|
3030
3032
|
"Move one of them — furniture overlapping furniture usually means a stale layout (frames may sit under anything)."
|
|
3031
3033
|
);
|
|
3032
3034
|
}
|
|
@@ -3215,9 +3217,9 @@ function Ci(r, t, e) {
|
|
|
3215
3217
|
'Write the rows as <om-legend-row color= label= shape=> children and set derived="false".',
|
|
3216
3218
|
"derived"
|
|
3217
3219
|
);
|
|
3218
|
-
const s =
|
|
3220
|
+
const s = cr(r);
|
|
3219
3221
|
if (s.length < 2) return;
|
|
3220
|
-
const o =
|
|
3222
|
+
const o = kr(s.map((a) => ({ label: a.label, color: a.color, layer: a.layerId })));
|
|
3221
3223
|
if (o.collapses.length > 0 && o.worstType) {
|
|
3222
3224
|
const a = o.collapses.filter((c) => c.type === o.worstType), l = a.slice(0, 3).map((c) => `"${c.a.label}"/"${c.b.label}"`).join(", ");
|
|
3223
3225
|
e(
|
|
@@ -3272,7 +3274,7 @@ function ki(r, t, e) {
|
|
|
3272
3274
|
if (!i) return;
|
|
3273
3275
|
const s = X(i.getAttribute("corners")), o = Y(i.getAttribute("crs")), a = S(i);
|
|
3274
3276
|
if (!s || !o || a.w <= 0 || a.h <= 0) return;
|
|
3275
|
-
const l = tt({ corners: s, widthMm: a.w, heightMm: a.h, crsForward: o }), c = S(r), u =
|
|
3277
|
+
const l = tt({ corners: s, widthMm: a.w, heightMm: a.h, crsForward: o }), c = S(r), u = Ke({
|
|
3276
3278
|
groundMetersPerMm: l.groundMetersPerMm(),
|
|
3277
3279
|
maxWidthMm: c.w,
|
|
3278
3280
|
segments: H(r, "segments") ?? void 0,
|
|
@@ -3308,12 +3310,12 @@ function $i(r, t, e) {
|
|
|
3308
3310
|
}
|
|
3309
3311
|
}
|
|
3310
3312
|
function Oi(r) {
|
|
3311
|
-
return
|
|
3313
|
+
return fr(Fr(r));
|
|
3312
3314
|
}
|
|
3313
3315
|
async function _i(r) {
|
|
3314
|
-
const t =
|
|
3316
|
+
const t = fr(r), e = [...r.querySelectorAll("om-frame")].filter((a) => a.querySelector(":scope > om-map"));
|
|
3315
3317
|
if (e.length === 0) return t;
|
|
3316
|
-
const { loadCore: n } = await Promise.resolve().then(() =>
|
|
3318
|
+
const { loadCore: n } = await Promise.resolve().then(() => wr), i = await n(), s = [...t.errors], o = [...t.warnings];
|
|
3317
3319
|
for (const a of e) {
|
|
3318
3320
|
const l = a.id ? `om-frame#${a.id}` : "om-frame", c = i.validateManifest(a);
|
|
3319
3321
|
for (const u of c.errors) s.push({ ...u, element: `${l} > ${u.element}` });
|
|
@@ -3322,51 +3324,51 @@ async function _i(r) {
|
|
|
3322
3324
|
return { valid: s.length === 0, errors: s, warnings: o };
|
|
3323
3325
|
}
|
|
3324
3326
|
function Ui() {
|
|
3325
|
-
x("om-cartograph",
|
|
3327
|
+
x("om-cartograph", Qe), x("om-text", tr), x("om-frame", ir), x("om-scalebar", sr), x("om-north", or), x("om-shape", ar), x("om-image", lr), x("om-legend", ur), x("om-graticule", hr), x("om-atlas", mr), x("om-source", ci);
|
|
3326
3328
|
}
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
+
Ie(() => import("@nika-js/onlymap"));
|
|
3330
|
+
Ir();
|
|
3329
3331
|
export {
|
|
3330
3332
|
T as CARTOGRAPH_ELEMENT_ATTRS,
|
|
3331
3333
|
bt as CARTOGRAPH_FORMAT,
|
|
3332
3334
|
yt as CARTOGRAPH_TAG_NAMES,
|
|
3333
3335
|
Ei as CARTOGRAPH_THEMES,
|
|
3334
|
-
|
|
3336
|
+
xr as COLLAPSE_THRESHOLD,
|
|
3335
3337
|
Wt as CVD_MATRICES,
|
|
3336
3338
|
ft as CVD_TYPES,
|
|
3337
|
-
|
|
3339
|
+
Sr as CVD_VALUES,
|
|
3338
3340
|
zt as GEOGRAPHIC_PLANE,
|
|
3339
3341
|
Ur as INERT_RESERVED_CARTOGRAPH_ATTRS,
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
+
De as MAX_CANVAS_AREA,
|
|
3343
|
+
Ue as MAX_CANVAS_DIMENSION,
|
|
3342
3344
|
Nt as MAX_CATEGORY_ENTRIES,
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3345
|
+
mr as OmAtlasElement,
|
|
3346
|
+
Qe as OmCartographElement,
|
|
3347
|
+
ir as OmFrameElement,
|
|
3348
|
+
hr as OmGraticuleElement,
|
|
3349
|
+
lr as OmImageElement,
|
|
3350
|
+
ur as OmLegendElement,
|
|
3351
|
+
or as OmNorthElement,
|
|
3352
|
+
sr as OmScalebarElement,
|
|
3353
|
+
ar as OmShapeElement,
|
|
3354
|
+
tr as OmTextElement,
|
|
3353
3355
|
Jt as PAGE_PRESETS,
|
|
3354
|
-
|
|
3356
|
+
oe as PAGE_SIZE_NAMES,
|
|
3355
3357
|
z as PLACED_ATTR_NAMES,
|
|
3356
3358
|
D as PX_PER_MM,
|
|
3357
3359
|
Br as SCALE_GROUP_SEPARATOR,
|
|
3358
|
-
|
|
3360
|
+
Lr as URL_ACTION_TIMEOUT_MS,
|
|
3359
3361
|
rn as alignOffset,
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
+
Je as allFrames,
|
|
3363
|
+
$r as applyCvdToCanvas,
|
|
3362
3364
|
Yr as applyTokens,
|
|
3363
|
-
|
|
3365
|
+
Rr as applyUrlActions,
|
|
3364
3366
|
Gt as atlasFields,
|
|
3365
3367
|
Fi as boundsArea,
|
|
3366
3368
|
S as boxMm,
|
|
3367
3369
|
Wn as buildGraticule,
|
|
3368
3370
|
ti as buildPages,
|
|
3369
|
-
|
|
3371
|
+
Ke as buildScalebar,
|
|
3370
3372
|
Wr as buildScalebarDrawing,
|
|
3371
3373
|
Y as builtinCrsForward,
|
|
3372
3374
|
Ni as canvasMeasurer,
|
|
@@ -3374,59 +3376,59 @@ export {
|
|
|
3374
3376
|
Ri as cornersFromBounds,
|
|
3375
3377
|
Ut as cornersFromCamera,
|
|
3376
3378
|
tt as createFrameGeoref,
|
|
3377
|
-
|
|
3379
|
+
Mr as createZip,
|
|
3378
3380
|
Ui as defineCartographElements,
|
|
3379
3381
|
ee as deltaE00,
|
|
3380
3382
|
zn as deriveLegendRows,
|
|
3381
|
-
|
|
3383
|
+
Er as ensureCvdFilters,
|
|
3382
3384
|
Zn as featureBounds,
|
|
3383
3385
|
F as fieldOf,
|
|
3384
|
-
|
|
3386
|
+
Xe as findFrame,
|
|
3385
3387
|
Vn as formatDms,
|
|
3386
3388
|
Kr as formatScaleDenominator,
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
+
Ir as installUrlActions,
|
|
3390
|
+
yr as isCoreLoaded,
|
|
3389
3391
|
Xr as isoDate,
|
|
3390
3392
|
en as layoutText,
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
+
kr as lintLegendColours,
|
|
3394
|
+
Fe as loadCore,
|
|
3393
3395
|
Ii as maxGeoreferenceablePitch,
|
|
3394
3396
|
Pi as mercatorForward,
|
|
3395
3397
|
Ti as mercatorInverse,
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
+
Ee as niceInterval,
|
|
3399
|
+
Be as niceNumberBelow,
|
|
3398
3400
|
Ot as normalizeCrs,
|
|
3399
3401
|
vn as northBearingDegrees,
|
|
3400
|
-
|
|
3402
|
+
Ye as ownerCartograph,
|
|
3401
3403
|
Qn as padBounds,
|
|
3402
3404
|
Xt as paintEnvForDpi,
|
|
3403
|
-
|
|
3405
|
+
Cr as parseColor,
|
|
3404
3406
|
X as parseCorners,
|
|
3405
3407
|
ri as parseSort,
|
|
3406
3408
|
J as peekCore,
|
|
3407
3409
|
mt as readCamera,
|
|
3408
|
-
|
|
3410
|
+
cr as readLiteralRows,
|
|
3409
3411
|
qn as readOverrides,
|
|
3410
3412
|
U as referencedFrame,
|
|
3411
3413
|
Jn as rejectionFor,
|
|
3412
3414
|
Bt as renderCartograph,
|
|
3413
|
-
|
|
3415
|
+
je as renderCartographAtlas,
|
|
3414
3416
|
_t as resolveCrsForward,
|
|
3415
3417
|
qt as resolveCvdType,
|
|
3416
3418
|
si as resolveFilenames,
|
|
3417
3419
|
dt as resolvePageSize,
|
|
3418
3420
|
Vr as resolveToken,
|
|
3419
|
-
|
|
3421
|
+
He as resolveTokens,
|
|
3420
3422
|
Dn as rowColorFor,
|
|
3421
3423
|
Sn as sanitizeAdoptedMap,
|
|
3422
3424
|
ii as sanitizeFilename,
|
|
3423
3425
|
An as scaleVariation,
|
|
3424
|
-
|
|
3426
|
+
Ie as setCoreLoader,
|
|
3425
3427
|
Qt as simulate,
|
|
3426
3428
|
Un as swatchShapeFor,
|
|
3427
3429
|
Hr as tokensIn,
|
|
3428
3430
|
Li as utmDef,
|
|
3429
|
-
|
|
3431
|
+
fr as validateCartograph,
|
|
3430
3432
|
_i as validateCartographDeep,
|
|
3431
3433
|
Oi as validateCartographString,
|
|
3432
3434
|
ie as whenPageReady
|