@fxi/zartigl 0.12.0 → 0.13.1
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/README.md +11 -5
- package/dist/catalog.js +1 -1
- package/dist/{engine-DM-lalJq.js → engine-Bhb-WayM.js} +368 -341
- package/dist/engine.d.ts +21 -0
- package/dist/engine.js +21 -21
- package/dist/{index-Bh7M4QEc.js → index-DsKvU_FK.js} +1 -1
- package/dist/zartigl.d.ts +30 -9
- package/dist/zartigl.js +2557 -4305
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,10 @@ ARCO layers of [MapX](https://app.mapx.org).
|
|
|
47
47
|
npm install @fxi/zartigl maplibre-gl
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
Its dependencies `numcodecs` and `pako` stay imports for the host's bundler.
|
|
51
|
+
A bundler that ignores package `exports`, such as webpack 4, aliases
|
|
52
|
+
`numcodecs/blosc$` to `numcodecs/dist/blosc.js` (as MapX does).
|
|
53
|
+
|
|
50
54
|
```ts
|
|
51
55
|
import maplibregl from "maplibre-gl";
|
|
52
56
|
import { Zartigl } from "@fxi/zartigl";
|
|
@@ -83,12 +87,14 @@ Pass `layer` and `source` together when both should switch atomically.
|
|
|
83
87
|
|
|
84
88
|
`source` takes a source id or a preference:
|
|
85
89
|
|
|
86
|
-
- `"geovideo"`: fast;
|
|
90
|
+
- `"geovideo"`: fast; its archive's whole timeline, at the surface and at the
|
|
91
|
+
depth levels the archive publishes (about ten, dense near the surface).
|
|
87
92
|
- `"zarr"`: all native dates and depths; heavier on the client, for analysis.
|
|
88
|
-
- `"auto"`: the entry's default mode, GeoVideo when it has one. No date
|
|
89
|
-
switches sources: a date outside the archive snaps to its nearest
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
- `"auto"`: the entry's default mode, GeoVideo when it has one. No date or
|
|
94
|
+
depth ever switches sources: a date outside the archive snaps to its nearest
|
|
95
|
+
sample, a depth to the nearest published level. A field whose depths are not
|
|
96
|
+
published yet shows its surface, with `getDepthMeta().locked`. WMTS only
|
|
97
|
+
when the entry has neither.
|
|
92
98
|
- `"wmts"`: rendered by the server, palette and legend included; no
|
|
93
99
|
particles, and the layer style has no effect.
|
|
94
100
|
|
package/dist/catalog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, L as r, P as t, h as o, R as l, i, j as y, g as L, k as S, l as E, n as c, o as g, q as T, t as d, m, a as n, p as C, e as R, d as _, u as f, v as p, r as A, w as v, c as Y, x as u, b as P, s as k } from "./index-
|
|
1
|
+
import { C as s, L as r, P as t, h as o, R as l, i, j as y, g as L, k as S, l as E, n as c, o as g, q as T, t as d, m, a as n, p as C, e as R, d as _, u as f, v as p, r as A, w as v, c as Y, x as u, b as P, s as k } from "./index-DsKvU_FK.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CATALOG_URL,
|
|
4
4
|
r as LAYER_STYLE_DEFAULTS,
|