@nika-js/onlymap 0.11.1 → 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 +15 -0
- package/README.md +3 -3
- package/dist/attribution.d.ts +27 -0
- package/dist/{basemap-CHFwxaRT.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/cluster-options.d.ts +11 -0
- package/dist/elements/om-map.d.ts +6 -0
- package/dist/{geoparquet-DBzSJJz_.js → geoparquet-3V4KrvQN.js} +1 -1
- package/dist/{globe-view-D0eDmIGO.js → globe-view-D4Tlyff-.js} +1 -1
- package/dist/{hillshade-DodGS9DL.js → hillshade-BC8QiJRP.js} +1 -1
- package/dist/{index-CrnprTab.js → index-BPCIxI1b.js} +1 -1
- package/dist/{index-Ca5y3OLs.js → index-BUE-VzWx.js} +1 -1
- package/dist/{index-BGvTOkkE.js → index-BqFwoWp9.js} +1 -1
- package/dist/{index-em-_HmNV.js → index-C1f14saD.js} +3 -3
- package/dist/{index-DH1_IQmW.js → index-DgutJ5y2.js} +3 -3
- package/dist/{index-C7Tpf_BA.js → index-DpUl6z5-.js} +1 -1
- package/dist/{index-5iFHs_bW.js → index-iwTA46AA.js} +1 -1
- package/dist/{index-wRR0a71N.js → index-p5XXAoNa.js} +2 -2
- package/dist/{index-D04CeeYu.js → index-pu3BNjzA.js} +11202 -11134
- package/dist/layers/cluster-layer.d.ts +7 -0
- package/dist/{lerc-KZgSVKKQ.js → lerc-DWtJKNQk.js} +1 -1
- package/dist/onlymap.standalone.js +19242 -19130
- package/dist/onlymapjs.js +1 -1
- package/dist/{post-process-effect-eJXo3MSl.js → post-process-effect-mQdMaWQE.js} +1 -1
- package/dist/{raster-CHuauCiR.js → raster-DtUDOXfy.js} +3 -3
- package/dist/{raster-pipeline-Coou2lF-.js → raster-pipeline-hQh5cG3e.js} +1 -1
- package/dist/runtime-core.d.ts +22 -0
- package/dist/{text-on-path-DUfdTGzX.js → text-on-path-CcfoZqXD.js} +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-BYLzFMeQ.js → zarr-Qo4A_t7d.js} +2 -2
- package/docs/cartograph.md +27 -3
- package/llms.txt +3 -3
- package/onlymapjs.attributes.json +12 -0
- package/onlymapjs.html-data.json +20 -0
- package/package.json +1 -1
- package/skills/onlymapjs/SKILL.md +1 -1
- package/skills/onlymapjs/references/syntax.md +9 -6
|
@@ -47,6 +47,9 @@ export declare const DEFAULT_CLUSTER_LABEL_EXPR = "$count_abbreviated";
|
|
|
47
47
|
/** The accessor props a cluster row is styled through — `getCluster*`, never the host's own. */
|
|
48
48
|
export declare const CLUSTER_ACCESSOR_PROPS: readonly ["getClusterRadius", "getClusterFillColor", "getClusterLineColor", "getClusterLabel", "getClusterIcon"];
|
|
49
49
|
export type ClusterAccessorProp = (typeof CLUSTER_ACCESSOR_PROPS)[number];
|
|
50
|
+
/** Where the count sits on the bubble: centred, or pushed to an edge/corner — a badge over a photo. */
|
|
51
|
+
export declare const CLUSTER_LABEL_POSITIONS: readonly ["center", "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"];
|
|
52
|
+
export type ClusterLabelPosition = (typeof CLUSTER_LABEL_POSITIONS)[number];
|
|
50
53
|
/**
|
|
51
54
|
* Registered onto every CLUSTER_CAPABLE type (layer-registry.ts). `deckProp`
|
|
52
55
|
* is the prop-bag key extraction looks for; none of these ever reaches deck.
|
|
@@ -68,6 +71,14 @@ export interface ClusterOptions {
|
|
|
68
71
|
aggregates: ClusterAggregate[];
|
|
69
72
|
click: ClusterClick;
|
|
70
73
|
label: boolean;
|
|
74
|
+
/** `cluster-label-position` — centred (default) or at an edge/corner of the bubble. */
|
|
75
|
+
labelPosition: ClusterLabelPosition;
|
|
76
|
+
/** `cluster-label-background` — a pill behind the count, as RGB(A); absent = none (a thin dark halo on the text instead). */
|
|
77
|
+
labelBackground?: number[];
|
|
78
|
+
/** `cluster-label-color` — the count's colour as RGB(A); absent = white. */
|
|
79
|
+
labelColor?: number[];
|
|
80
|
+
/** `cluster-label-size` — the count's font size in px (default 12). */
|
|
81
|
+
labelSize: number;
|
|
71
82
|
/** `cluster-icon-atlas` / `cluster-icon-mapping` — the glyph sheet a NAME from `get-cluster-icon` resolves in. */
|
|
72
83
|
iconAtlas?: string;
|
|
73
84
|
iconMapping?: Record<string, unknown>;
|
|
@@ -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 };
|