@nika-js/onlymap 0.11.2 → 0.11.3
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 +10 -0
- package/README.md +2 -2
- package/dist/attribution.d.ts +27 -0
- package/dist/{basemap-BlMlSRTo.js → basemap-C6Ehu6fw.js} +923 -878
- package/dist/basemap.d.ts +11 -0
- package/dist/cartograph/elements/om-cartograph.d.ts +22 -0
- package/dist/cartograph/elements/om-frame.d.ts +8 -0
- package/dist/cartograph.js +1139 -1058
- package/dist/cartograph.standalone.js +1595 -1514
- package/dist/elements/om-map.d.ts +6 -0
- package/dist/{geoparquet-Bqhh_idk.js → geoparquet-3V4KrvQN.js} +1 -1
- package/dist/{globe-view-DQ0GLKSn.js → globe-view-D4Tlyff-.js} +1 -1
- package/dist/{hillshade-CxMG6ocE.js → hillshade-BC8QiJRP.js} +1 -1
- package/dist/{index-m-7enOKi.js → index-BPCIxI1b.js} +1 -1
- package/dist/{index-9W2ZrRyF.js → index-BUE-VzWx.js} +1 -1
- package/dist/{index-DklXFu6D.js → index-BqFwoWp9.js} +1 -1
- package/dist/{index-DO3-mfIk.js → index-C1f14saD.js} +3 -3
- package/dist/{index-DBYIrdvb.js → index-DgutJ5y2.js} +3 -3
- package/dist/{index-CdAb2VR8.js → index-DpUl6z5-.js} +1 -1
- package/dist/{index-aoMhS8VK.js → index-iwTA46AA.js} +1 -1
- package/dist/{index-CF7q_mKH.js → index-p5XXAoNa.js} +2 -2
- package/dist/{index-CE3n5pQz.js → index-pu3BNjzA.js} +51 -20
- package/dist/{lerc-vNjPdkTs.js → lerc-DWtJKNQk.js} +1 -1
- package/dist/onlymap.standalone.js +306 -231
- package/dist/onlymapjs.js +1 -1
- package/dist/{post-process-effect-eVlcdR0m.js → post-process-effect-mQdMaWQE.js} +1 -1
- package/dist/{raster-8iVEbDdp.js → raster-DtUDOXfy.js} +3 -3
- package/dist/{raster-pipeline-OqdVks6Y.js → raster-pipeline-hQh5cG3e.js} +1 -1
- package/dist/runtime-core.d.ts +22 -0
- package/dist/{text-on-path-C34MMnKY.js → text-on-path-CcfoZqXD.js} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-Dla-EY4o.js → zarr-Qo4A_t7d.js} +2 -2
- package/docs/cartograph.md +27 -3
- package/llms.txt +2 -2
- 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 +4 -3
|
@@ -355,6 +355,12 @@ export declare class OmMapElement extends HTMLElementBase {
|
|
|
355
355
|
* viewport rebuilt from its (geographic) camera.
|
|
356
356
|
*/
|
|
357
357
|
groundCorners(widthPx: number, heightPx: number): [number, number][] | null;
|
|
358
|
+
/**
|
|
359
|
+
* This map's basemap attribution as plain text, one entry per provider —
|
|
360
|
+
* what a printed sheet must carry. Empty before the basemap's style has
|
|
361
|
+
* loaded (listen for `om-attributions-changed`) and with no basemap.
|
|
362
|
+
*/
|
|
363
|
+
attributions(): string[];
|
|
358
364
|
/** The CRS this map is projected into, or null for Web Mercator. */
|
|
359
365
|
projectedCrs(): string | null;
|
|
360
366
|
/** Live Tileset3D per currently-present 3D-tiles layer — the paced-flyby driver's isLoaded() gate (same surface the warm-tiles action reads). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as L, j as x, a6 as A, a7 as E, a8 as d, a9 as h, aa as u, ab as z, p as V, W as Z, G as D } from "./index-
|
|
1
|
+
import { d as L, j as x, a6 as A, a7 as E, a8 as d, a9 as h, aa as u, ab as z, p as V, W as Z, G as D } from "./index-pu3BNjzA.js";
|
|
2
2
|
const c = Math.PI / 180, G = 180 / Math.PI;
|
|
3
3
|
function w(l, t = 0) {
|
|
4
4
|
const a = Math.min(180, l) * c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { al as P, am as T, an as N, ao as Z, c as B, ap as E, aq as C, ar as b, as as D, at as I, au as O } from "./index-
|
|
1
|
+
import { al as P, am as T, an as N, ao as Z, c as B, ap as E, aq as C, ar as b, as as D, at as I, au as O } from "./index-pu3BNjzA.js";
|
|
2
2
|
import { N as _, c as H } from "./hillshade-apron-Bem3DWyJ.js";
|
|
3
3
|
import { p as $, h as j, m as A, a as U } from "./hillshade-shader-DI2uLSNU.js";
|
|
4
4
|
function R(t, e, o) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aB as tt, aC as et, aD as j, at as nt, au as ot, aE as B, aF as rt, aG as U, aq as st, ar as _, aH as C, aI as it } from "./index-
|
|
1
|
+
import { aB as tt, aC as et, aD as j, at as nt, au as ot, aE as B, aF as rt, aG as U, aq as st, ar as _, aH as C, aI as it } from "./index-pu3BNjzA.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);
|
|
@@ -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-pu3BNjzA.js";
|
|
2
|
+
import { P as s } from "./post-process-effect-mQdMaWQE.js";
|
|
3
|
+
import { G as pa, a as na } from "./globe-view-D4Tlyff-.js";
|
|
4
4
|
export {
|
|
5
5
|
t as AmbientLight,
|
|
6
6
|
o as Attribute,
|
|
@@ -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 H, ai as V, aj as X, ak as K } 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-pu3BNjzA.js";
|
|
2
|
+
import { ah as H, ai as V, aj as X, ak as K } from "./index-pu3BNjzA.js";
|
|
3
|
+
import { P as h } from "./post-process-effect-mQdMaWQE.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,4 +1,4 @@
|
|
|
1
|
-
import { bx as Be, by as le, bz as ce, bA as De, bB as Oe, bC as ke } from "./index-
|
|
1
|
+
import { bx as Be, by as le, bz as ce, bA as De, bB as Oe, bC as ke } from "./index-pu3BNjzA.js";
|
|
2
2
|
import { y as ve, a as he, z as G, R as J, A as ue, C as Fe, F as xe, n as je, S as Ie, E as Ne } from "./recordbatch-Bpc0uxFn.js";
|
|
3
3
|
import { g as V, a as fe, b as Le, c as Ue, d as Me, e as qe, m as Ve } from "./table-accessors-CYWTzpQI.js";
|
|
4
4
|
import { c as $e } from "./convert-arrow-schema-DrAihRf9.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-
|
|
1
|
+
import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-pu3BNjzA.js";
|
|
2
2
|
import { w as gs, t as Hs, f as Ws, m as Qs } from "./mgrs-BY9bIvp4.js";
|
|
3
3
|
import { c as Xs } from "./convert-arrow-schema-DrAihRf9.js";
|
|
4
4
|
import { y as Ys, A as bt, a as Ks, z as Vs, R as Zs } from "./recordbatch-Bpc0uxFn.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aM as R, aN as S, aO as E, aP as N, aQ as h, aR as w, aS as W, aT as O, aU as x, aV as I, aW as B, aX as _, aY as P, aZ as k, a_ as $, a$ as z, b0 as C, b1 as F, b2 as v, b3 as M, b4 as p, b5 as U } from "./index-
|
|
2
|
-
import { b6 as $e, b7 as ze, b8 as Ce, b9 as ve, ba as Me, bb as Ue, bc as je, bd as De, be as qe, bf as Je, bg as Ve, bh as Ge, bi as He, bj as Qe, bk as Xe, bl as Ye, bm as Ze, bn as Ke, bo as et, bp as tt, bq as nt, br as rt, bs as at, bt as st, bu as ot } from "./index-
|
|
1
|
+
import { aM as R, aN as S, aO as E, aP as N, aQ as h, aR as w, aS as W, aT as O, aU as x, aV as I, aW as B, aX as _, aY as P, aZ as k, a_ as $, a$ as z, b0 as C, b1 as F, b2 as v, b3 as M, b4 as p, b5 as U } from "./index-pu3BNjzA.js";
|
|
2
|
+
import { b6 as $e, b7 as ze, b8 as Ce, b9 as ve, ba as Me, bb as Ue, bc as je, bd as De, be as qe, bf as Je, bg as Ve, bh as Ge, bi as He, bj as Qe, bk as Xe, bl as Ye, bm as Ze, bn as Ke, bo as et, bp as tt, bq as nt, br as rt, bs as at, bt as st, bu as ot } from "./index-pu3BNjzA.js";
|
|
3
3
|
import { g as j, i as D } from "./table-accessors-CYWTzpQI.js";
|
|
4
4
|
async function q(t, e, n = {}, r = {}) {
|
|
5
5
|
const a = R(t), s = S.getWorkerFarm(n), { source: o } = n, c = { name: a, source: o };
|
|
@@ -31145,7 +31145,7 @@ const rie = {
|
|
|
31145
31145
|
}, sie = {
|
|
31146
31146
|
match: (t, e) => ["csv", "tsv"].includes(xo(t) ?? "") || /text\/(csv|tab-separated-values)/i.test(e ?? ""),
|
|
31147
31147
|
parse: async (t) => {
|
|
31148
|
-
const [e, i, n] = await Promise.all([t.text(), import("./index-
|
|
31148
|
+
const [e, i, n] = await Promise.all([t.text(), import("./index-DpUl6z5-.js"), import("./index-p5XXAoNa.js")]), r = await n.parse(e, i.CSVLoader, { csv: { shape: "object-row-table" } });
|
|
31149
31149
|
return oie(r.data) ?? r.data;
|
|
31150
31150
|
}
|
|
31151
31151
|
};
|
|
@@ -31167,7 +31167,7 @@ const aie = {
|
|
|
31167
31167
|
parse: async (t, e) => {
|
|
31168
31168
|
t.body?.cancel().catch(() => {
|
|
31169
31169
|
});
|
|
31170
|
-
const [i, n] = await Promise.all([import("./index-
|
|
31170
|
+
const [i, n] = await Promise.all([import("./index-p5XXAoNa.js"), import("./index-iwTA46AA.js")]), r = t.url || e, s = /* @__PURE__ */ new Map(), o = (m) => {
|
|
31171
31171
|
const v = String(m);
|
|
31172
31172
|
let _ = s.get(v);
|
|
31173
31173
|
return _ || (_ = rk(v), s.set(v, _)), _.then((w) => w.clone());
|
|
@@ -31180,13 +31180,13 @@ const aie = {
|
|
|
31180
31180
|
}, lie = {
|
|
31181
31181
|
match: (t, e) => xo(t) === "kml" || /application\/vnd\.google-earth\.kml/i.test(e ?? ""),
|
|
31182
31182
|
parse: async (t) => {
|
|
31183
|
-
const [e, i, n] = await Promise.all([t.text(), import("./index-
|
|
31183
|
+
const [e, i, n] = await Promise.all([t.text(), import("./index-p5XXAoNa.js"), import("./index-BPCIxI1b.js")]);
|
|
31184
31184
|
return ql(await i.parse(e, n.KMLLoader));
|
|
31185
31185
|
}
|
|
31186
31186
|
}, cie = /* @__PURE__ */ new Set(["waypoint", "track", "route"]), uie = {
|
|
31187
31187
|
match: (t, e) => xo(t) === "gpx" || /application\/gpx\+xml/i.test(e ?? ""),
|
|
31188
31188
|
parse: async (t, e) => {
|
|
31189
|
-
const [i, n, r] = await Promise.all([t.text(), import("./index-
|
|
31189
|
+
const [i, n, r] = await Promise.all([t.text(), import("./index-p5XXAoNa.js"), import("./index-BPCIxI1b.js")]), o = ((await n.parse(i, r.GPXLoader)).features ?? []).map((l) => {
|
|
31190
31190
|
const u = l.properties?._gpxType, h = u === "trk" ? "track" : u === "rte" ? "route" : "waypoint";
|
|
31191
31191
|
return { ...l, properties: { ...l.properties, _gpxKind: h } };
|
|
31192
31192
|
}), a = e.split("#")[1]?.toLowerCase().replace(/s$/, "");
|
|
@@ -31219,7 +31219,7 @@ const aie = {
|
|
|
31219
31219
|
t.arrayBuffer(),
|
|
31220
31220
|
import("./index-BYbMtNVH.js"),
|
|
31221
31221
|
import("./index-CgPV7QlM.js"),
|
|
31222
|
-
import("./geoparquet-
|
|
31222
|
+
import("./geoparquet-3V4KrvQN.js")
|
|
31223
31223
|
]), o = new Uint8Array(i);
|
|
31224
31224
|
if (o.length < 8 || o[0] !== 80 || o[1] !== 65 || o[2] !== 82 || o[3] !== 49)
|
|
31225
31225
|
throw new Error(`data="${e}": not a Parquet file (missing PAR1 magic bytes).`);
|
|
@@ -69802,7 +69802,7 @@ un({
|
|
|
69802
69802
|
type: "COGLayer",
|
|
69803
69803
|
carriesRasterWindow: !0,
|
|
69804
69804
|
carriesRasterIdentify: !0,
|
|
69805
|
-
loadClass: () => import("./raster-
|
|
69805
|
+
loadClass: () => import("./raster-DtUDOXfy.js").then((t) => t.r).then((t) => t.OmCOGLayer),
|
|
69806
69806
|
props: [
|
|
69807
69807
|
{ attr: "src", kind: "scalar", deckProp: "geotiff", type: "string", required: !0 },
|
|
69808
69808
|
// COG v2 (issue #13): 1-based band selection — a single band (colormap-
|
|
@@ -69838,7 +69838,7 @@ un({
|
|
|
69838
69838
|
});
|
|
69839
69839
|
un({
|
|
69840
69840
|
type: "ZarrLayer",
|
|
69841
|
-
loadClass: () => import("./zarr-
|
|
69841
|
+
loadClass: () => import("./zarr-Qo4A_t7d.js").then((t) => t.OmZarrLayer),
|
|
69842
69842
|
props: [
|
|
69843
69843
|
{ attr: "src", kind: "scalar", deckProp: "src", type: "string", required: !0 },
|
|
69844
69844
|
{ attr: "variable", kind: "scalar", deckProp: "variable", type: "string" },
|
|
@@ -69870,7 +69870,7 @@ un({
|
|
|
69870
69870
|
});
|
|
69871
69871
|
un({
|
|
69872
69872
|
type: "HillshadeLayer",
|
|
69873
|
-
loadClass: () => import("./hillshade-
|
|
69873
|
+
loadClass: () => import("./hillshade-BC8QiJRP.js").then((t) => t.OmHillshadeLayer),
|
|
69874
69874
|
warpsInPlane: !0,
|
|
69875
69875
|
props: [
|
|
69876
69876
|
{ attr: "src", kind: "scalar", deckProp: "src", type: "string", required: !0 },
|
|
@@ -69900,7 +69900,7 @@ un({
|
|
|
69900
69900
|
});
|
|
69901
69901
|
un({
|
|
69902
69902
|
type: "TextOnPathLayer",
|
|
69903
|
-
loadClass: () => import("./text-on-path-
|
|
69903
|
+
loadClass: () => import("./text-on-path-CcfoZqXD.js").then((t) => t.OmTextOnPathLayer),
|
|
69904
69904
|
props: [
|
|
69905
69905
|
{ attr: "get-path", kind: "accessor", deckProp: "getPath", type: "string" },
|
|
69906
69906
|
{ attr: "get-text", kind: "accessor", deckProp: "getText", type: "string" },
|
|
@@ -83309,7 +83309,7 @@ class d5 {
|
|
|
83309
83309
|
`[onlymapjs] basemap="${e}" (Mapbox GL) is not implemented yet in this version — falling back to standalone (no basemap). Use a maplibre-* basemap instead (no token required).`
|
|
83310
83310
|
);
|
|
83311
83311
|
else {
|
|
83312
|
-
this.mode = "basemap", this.basemapAttr = e, import("./basemap-
|
|
83312
|
+
this.mode = "basemap", this.basemapAttr = e, import("./basemap-C6Ehu6fw.js").then(({ MapLibreBasemapAdapter: s }) => {
|
|
83313
83313
|
this.destroyed || i !== this.rendererGeneration || (this.basemap = new s(
|
|
83314
83314
|
this.parent,
|
|
83315
83315
|
// this.basemapAttr, not the captured param: a style switch that
|
|
@@ -83324,10 +83324,10 @@ class d5 {
|
|
|
83324
83324
|
...this.pickCallbacks(n),
|
|
83325
83325
|
onError: r
|
|
83326
83326
|
},
|
|
83327
|
-
this.basemapOptions?.attribution !== !1,
|
|
83327
|
+
this.basemapOptions?.attribution !== !1 && !this.isInCartographFrame(),
|
|
83328
83328
|
this.chromeHosts.attribution,
|
|
83329
83329
|
this.deterministic
|
|
83330
|
-
), this.pendingLayers = void 0, this.maxPitch != null && this.basemap.setMaxPitch(this.maxPitch), this.minZoom != null && this.basemap.setMinZoom(this.minZoom), this.installHoverGate(this.basemap.getOverlayDeckInternal()), this.basemap.onLoad(() => n.onLoad?.()), this.basemap.onMove((o) => {
|
|
83330
|
+
), this.basemap.onAttributionsChange(() => n.onAttributionsChange?.()), this.pendingLayers = void 0, this.maxPitch != null && this.basemap.setMaxPitch(this.maxPitch), this.minZoom != null && this.basemap.setMinZoom(this.minZoom), this.installHoverGate(this.basemap.getOverlayDeckInternal()), this.basemap.onLoad(() => n.onLoad?.()), this.basemap.onMove((o) => {
|
|
83331
83331
|
this.refreshZoomGates(), n.onViewportChange?.(o);
|
|
83332
83332
|
}));
|
|
83333
83333
|
});
|
|
@@ -83611,7 +83611,7 @@ class d5 {
|
|
|
83611
83611
|
this.postProcess = null, this.applyEffects();
|
|
83612
83612
|
return;
|
|
83613
83613
|
}
|
|
83614
|
-
import("./index-
|
|
83614
|
+
import("./index-DgutJ5y2.js").then(({ buildPostProcessEffects: i }) => {
|
|
83615
83615
|
this.destroyed || this.effectsIR !== e || (this.postProcess = i(e, this.pixelsPerMm()), this.applyEffects());
|
|
83616
83616
|
});
|
|
83617
83617
|
}
|
|
@@ -83952,7 +83952,7 @@ class d5 {
|
|
|
83952
83952
|
* than the export failing.
|
|
83953
83953
|
*/
|
|
83954
83954
|
async captureBand(e, i) {
|
|
83955
|
-
const { bandScaleFor: n } = await import("./index-
|
|
83955
|
+
const { bandScaleFor: n } = await import("./index-BqFwoWp9.js"), r = n(i);
|
|
83956
83956
|
return this.withCapturePixelRatio(r, async () => {
|
|
83957
83957
|
this.bandIsolation = e ? new Set(e) : null;
|
|
83958
83958
|
try {
|
|
@@ -83974,7 +83974,7 @@ class d5 {
|
|
|
83974
83974
|
async resolvedPostProcessPass() {
|
|
83975
83975
|
const e = this.buildEffects();
|
|
83976
83976
|
if (e.length === 0) return { present: !1 };
|
|
83977
|
-
const { PostProcessEffect: i } = await import("./index-
|
|
83977
|
+
const { PostProcessEffect: i } = await import("./index-C1f14saD.js");
|
|
83978
83978
|
for (const n of e)
|
|
83979
83979
|
if (n instanceof i) {
|
|
83980
83980
|
const r = n;
|
|
@@ -84381,6 +84381,26 @@ class d5 {
|
|
|
84381
84381
|
}
|
|
84382
84382
|
return o;
|
|
84383
84383
|
}
|
|
84384
|
+
/**
|
|
84385
|
+
* Inside a cartograph frame, the basemap attribution moves to the sheet: the
|
|
84386
|
+
* page credits each provider once, in a corner, instead of every frame
|
|
84387
|
+
* printing its own control over the map.
|
|
84388
|
+
*
|
|
84389
|
+
* Asked when the basemap is CREATED, not when this core is. A frame marks
|
|
84390
|
+
* an inline map on its first render, a microtask after connect; a page that
|
|
84391
|
+
* already has the core loaded boots that map synchronously, before the mark
|
|
84392
|
+
* — so a decision taken at construction said "no frame" for every inline
|
|
84393
|
+
* map on such a page. The adapter is built after an async chunk load, by
|
|
84394
|
+
* which time the mark is always there. The mark is read, never `om-frame`
|
|
84395
|
+
* named, for the CDN gate's reason given at the badge decision.
|
|
84396
|
+
*/
|
|
84397
|
+
isInCartographFrame() {
|
|
84398
|
+
return !!this.parent.closest?.("[data-om-carto-frame]");
|
|
84399
|
+
}
|
|
84400
|
+
/** The basemap's attribution as plain text — empty with no basemap. See MapLibreBasemapAdapter.attributions(). */
|
|
84401
|
+
attributions() {
|
|
84402
|
+
return this.basemap?.attributions() ?? [];
|
|
84403
|
+
}
|
|
84384
84404
|
/** The CRS this map is projected into, or null for a Web Mercator map. */
|
|
84385
84405
|
projectedCrs() {
|
|
84386
84406
|
return this.plane?.projection.code ?? null;
|
|
@@ -84412,7 +84432,7 @@ class d5 {
|
|
|
84412
84432
|
const { width: n, height: r } = i, s = (v) => {
|
|
84413
84433
|
const _ = i.project([v[0], v[1]]);
|
|
84414
84434
|
return [_[0], _[1]];
|
|
84415
|
-
}, o = i.unproject([n / 2, r / 2]), a = i.unproject([n / 2 + 1, r / 2]), l = Math.max(_a([o[0], o[1]], [a[0], a[1]]), 1e-9), u = await this.resolvedPostProcessPass(), { serializeToSvg: h } = await import("./index-
|
|
84435
|
+
}, o = i.unproject([n / 2, r / 2]), a = i.unproject([n / 2 + 1, r / 2]), l = Math.max(_a([o[0], o[1]], [a[0], a[1]]), 1e-9), u = await this.resolvedPostProcessPass(), { serializeToSvg: h } = await import("./index-BqFwoWp9.js"), m = await h(this.lastIRs, {
|
|
84416
84436
|
width: n,
|
|
84417
84437
|
height: r,
|
|
84418
84438
|
project: s,
|
|
@@ -85154,7 +85174,7 @@ function _5(t, e, i, n, r, s) {
|
|
|
85154
85174
|
if (u) return u;
|
|
85155
85175
|
const h = `${r}|${l}#${o.length}`;
|
|
85156
85176
|
if (!Qy.has(h)) {
|
|
85157
|
-
const m = import("./index-
|
|
85177
|
+
const m = import("./index-BUE-VzWx.js").then(async ({ runTransforms: v }) => {
|
|
85158
85178
|
JP(a, l, await v(o, e, i, n, r));
|
|
85159
85179
|
}).catch((v) => {
|
|
85160
85180
|
console.error(`[onlymapjs] ${r} failed to load the geometry transforms:`, v), JP(a, l, t);
|
|
@@ -85388,7 +85408,7 @@ function T5({ layerIRs: t, core: e, mapEl: i, selection: n, history: r, featureT
|
|
|
85388
85408
|
}
|
|
85389
85409
|
};
|
|
85390
85410
|
}
|
|
85391
|
-
const E5 = "0.11.
|
|
85411
|
+
const E5 = "0.11.3", XRe = "https://om-api.nika.eco/v1/t", co = { endpoint: XRe };
|
|
85392
85412
|
function YRe(t) {
|
|
85393
85413
|
for (const e of Object.keys(t))
|
|
85394
85414
|
co[e] = t[e];
|
|
@@ -87771,6 +87791,9 @@ class lPe extends Eo {
|
|
|
87771
87791
|
onMapPoint: (o, a, l) => this.handleMapPoint(o, a, l),
|
|
87772
87792
|
onSnapPoint: (o) => this.handleSnapPoint(o),
|
|
87773
87793
|
onTilesetLoad: (o, a) => this.dispatchEvent(new CustomEvent("om-tileset-load", { detail: { layerId: o, tileset: a } })),
|
|
87794
|
+
// Bubbles: a cartograph listens on the PAGE for any of its frames' maps,
|
|
87795
|
+
// because it prints their attributions in one corner of the sheet.
|
|
87796
|
+
onAttributionsChange: () => this.dispatchEvent(new CustomEvent("om-attributions-changed", { bubbles: !0 })),
|
|
87774
87797
|
onRouteResolved: (o, a) => this.dispatchEvent(new CustomEvent("om-route-resolved", { detail: { layerId: o, route: a } })),
|
|
87775
87798
|
// Georeferenced-model placement quality (spec: "flag approximate BIM
|
|
87776
87799
|
// georeferencing"). NOTE: an earlier draft auto-applied terrain here
|
|
@@ -88535,6 +88558,14 @@ class lPe extends Eo {
|
|
|
88535
88558
|
groundCorners(e, i) {
|
|
88536
88559
|
return this.core?.groundCorners(e, i) ?? null;
|
|
88537
88560
|
}
|
|
88561
|
+
/**
|
|
88562
|
+
* This map's basemap attribution as plain text, one entry per provider —
|
|
88563
|
+
* what a printed sheet must carry. Empty before the basemap's style has
|
|
88564
|
+
* loaded (listen for `om-attributions-changed`) and with no basemap.
|
|
88565
|
+
*/
|
|
88566
|
+
attributions() {
|
|
88567
|
+
return this.core?.attributions() ?? [];
|
|
88568
|
+
}
|
|
88538
88569
|
/** The CRS this map is projected into, or null for Web Mercator. */
|
|
88539
88570
|
projectedCrs() {
|
|
88540
88571
|
return this.core?.projectedCrs() ?? null;
|
|
@@ -88717,7 +88748,7 @@ class lPe extends Eo {
|
|
|
88717
88748
|
this.core?.setEffects([]);
|
|
88718
88749
|
return;
|
|
88719
88750
|
}
|
|
88720
|
-
import("./index-
|
|
88751
|
+
import("./index-DgutJ5y2.js").then(({ parseEffectEls: i }) => {
|
|
88721
88752
|
!this.core || !this.isConnected || this.core.setEffects(i(this));
|
|
88722
88753
|
});
|
|
88723
88754
|
}
|
|
@@ -90551,7 +90582,7 @@ async function OBe(t) {
|
|
|
90551
90582
|
e(t);
|
|
90552
90583
|
}
|
|
90553
90584
|
async function YPe() {
|
|
90554
|
-
return import("./raster-
|
|
90585
|
+
return import("./raster-DtUDOXfy.js").then((t) => t.r);
|
|
90555
90586
|
}
|
|
90556
90587
|
const kBe = {
|
|
90557
90588
|
registerLayer: un,
|