@nika-js/onlymap 0.11.10 → 0.11.11

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +1 -1
  3. package/dist/{basemap-Cc8v5hPA.js → basemap-QT4ua-dL.js} +333 -320
  4. package/dist/basemap-request.d.ts +24 -0
  5. package/dist/{geoparquet-B9p5-Yxf.js → geoparquet-hOsdfZJa.js} +1 -1
  6. package/dist/{globe-view-BF6-01N_.js → globe-view-BSGTUqWc.js} +1 -1
  7. package/dist/{hillshade-Dd7MQHfp.js → hillshade-D2Ps3Nim.js} +1 -1
  8. package/dist/{index-BaR4MzNc.js → index-BO7MtTkn.js} +3 -3
  9. package/dist/{index-CwoqJ6IK.js → index-Bxue4Psc.js} +3 -3
  10. package/dist/{index-T5LATpR7.js → index-Bzypgr1v.js} +1 -1
  11. package/dist/{index-Bwdaim-c.js → index-CevWTqBO.js} +18 -18
  12. package/dist/{index-CawlYDgE.js → index-D1ZjhP2H.js} +1 -1
  13. package/dist/{index-C_0KCx9L.js → index-DBt_2x-w.js} +1 -1
  14. package/dist/{index-C9gVsJaG.js → index-DjYxw-8H.js} +2 -2
  15. package/dist/{index-CCY7Rk1s.js → index-DudIuhJa.js} +1 -1
  16. package/dist/{index-Dk12Fazj.js → index-Dwc4s3mc.js} +1 -1
  17. package/dist/{lerc-CElHRqrE.js → lerc-DQuf93SN.js} +1 -1
  18. package/dist/onlymap.standalone.js +241 -228
  19. package/dist/onlymapjs.js +1 -1
  20. package/dist/{post-process-effect-VAE0lQ4c.js → post-process-effect-B3j_nBzy.js} +1 -1
  21. package/dist/{raster-Cn8jugd2.js → raster-CvAJ-h_g.js} +3 -3
  22. package/dist/{raster-pipeline-D26Sl0X2.js → raster-pipeline-CusoihQ3.js} +1 -1
  23. package/dist/{text-on-path-C6SLSkus.js → text-on-path-D9u5SYCo.js} +1 -1
  24. package/dist/version.d.ts +1 -1
  25. package/dist/{zarr-Do5FzYXm.js → zarr-DWb_nikR.js} +2 -2
  26. package/docs/basemaps.md +1 -1
  27. package/docs/cartograph.md +2 -2
  28. package/package.json +1 -1
  29. package/skills/onlymapjs/SKILL.md +1 -1
  30. package/skills/onlymapjs/references/syntax.md +2 -2
package/dist/onlymapjs.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bP as e, bQ as r, bR as t, as as c, C as o, bS as i, c as n, bT as d, bU as l, bV as S, bW as E, ah as g, bX as L, bY as T, bZ as _, b_ as A, b$ as p, c0 as m, c1 as I, c2 as D, L as M, g as u, c3 as b, c4 as y, c5 as f, c6 as O, c7 as P, bE as R, c8 as C, ap as N, c9 as F, aB as h, ca as B, W as v, cb as x, aA as G, cc as U, cd as W, ce as w, cf as Y, cg as k, ch as X, ci as H, cj as K, ck as V, cl as j, cm as z, cn as J, co as q, cp as Q, cq as Z, cr as $, ak as aa, cs as sa, ct as ea, cu as ra, cv as ta, cw as ca, cx as oa, cy as ia, cz as na, cA as da, cB as la, cC as Sa, cD as Ea, aq as ga, cE as La, cF as Ta, ae as _a, cG as Aa, cH as pa, cI as ma, cJ as Ia, cK as Da, cL as Ma, cM as ua, cN as ba, cO as ya, cP as fa, cQ as Oa, cR as Pa, cS as Ra, cT as Ca, cU as Na, cV as Fa, cW as ha, cX as Ba, cY as va, cZ as xa, c_ as Ga, c$ as Ua, d0 as Wa, d1 as wa, d2 as Ya, d3 as ka, d4 as Xa, d5 as Ha, d6 as Ka, aC as Va, d7 as ja, d8 as za, d9 as Ja, da as qa, db as Qa, dc as Za, dd as $a, de as as, df as ss, dg as es, dh as rs, di as ts, dj as cs, dk as os, dl as is, dm as ns, dn as ds } from "./index-Bwdaim-c.js";
1
+ import { bP as e, bQ as r, bR as t, as as c, C as o, bS as i, c as n, bT as d, bU as l, bV as S, bW as E, ah as g, bX as L, bY as T, bZ as _, b_ as A, b$ as p, c0 as m, c1 as I, c2 as D, L as M, g as u, c3 as b, c4 as y, c5 as f, c6 as O, c7 as P, bE as R, c8 as C, ap as N, c9 as F, aB as h, ca as B, W as v, cb as x, aA as G, cc as U, cd as W, ce as w, cf as Y, cg as k, ch as X, ci as H, cj as K, ck as V, cl as j, cm as z, cn as J, co as q, cp as Q, cq as Z, cr as $, ak as aa, cs as sa, ct as ea, cu as ra, cv as ta, cw as ca, cx as oa, cy as ia, cz as na, cA as da, cB as la, cC as Sa, cD as Ea, aq as ga, cE as La, cF as Ta, ae as _a, cG as Aa, cH as pa, cI as ma, cJ as Ia, cK as Da, cL as Ma, cM as ua, cN as ba, cO as ya, cP as fa, cQ as Oa, cR as Pa, cS as Ra, cT as Ca, cU as Na, cV as Fa, cW as ha, cX as Ba, cY as va, cZ as xa, c_ as Ga, c$ as Ua, d0 as Wa, d1 as wa, d2 as Ya, d3 as ka, d4 as Xa, d5 as Ha, d6 as Ka, aC as Va, d7 as ja, d8 as za, d9 as Ja, da as qa, db as Qa, dc as Za, dd as $a, de as as, df as ss, dg as es, dh as rs, di as ts, dj as cs, dk as os, dl as is, dm as ns, dn as ds } from "./index-CevWTqBO.js";
2
2
  export {
3
3
  e as ALL_POSITION_VALUES,
4
4
  r as AUDIT_EXEMPTIONS,
@@ -1,4 +1,4 @@
1
- import { av as m, aw as h, ax as P, ay as S, az as C } from "./index-Bwdaim-c.js";
1
+ import { av as m, aw as h, ax as P, ay as S, az as C } from "./index-CevWTqBO.js";
2
2
  const x = (
3
3
  /* wgsl */
4
4
  `struct VertexInputs {
@@ -1,7 +1,7 @@
1
- import { c as se, t as $e, i as Ct, a as ke, s as Lt, C as It, b as Gt, F as vt, A as Et, d as Ft, R as ye, e as At, p as jt, m as Rt, f as Mt, g as We, h as Ut, r as le, j as Ot, k as xt, l as Kt, n as Dt } from "./raster-pipeline-D26Sl0X2.js";
1
+ import { c as se, t as $e, i as Ct, a as ke, s as Lt, C as It, b as Gt, F as vt, A as Et, d as Ft, R as ye, e as At, p as jt, m as Rt, f as Mt, g as We, h as Ut, r as le, j as Ot, k as xt, l as Kt, n as Dt } from "./raster-pipeline-CusoihQ3.js";
2
2
  import { N as Nt, c as zt } from "./hillshade-apron-Bem3DWyJ.js";
3
3
  import { r as Bt } from "./hillshade-shader-DI2uLSNU.js";
4
- import { bK as _t, bL as $t } from "./index-Bwdaim-c.js";
4
+ import { bK as _t, bL as $t } from "./index-CevWTqBO.js";
5
5
  import we from "./index-CW1n5LdO.js";
6
6
  function kt(e, t) {
7
7
  const n = e.length / 3, r = new Uint8ClampedArray(n * 4), o = 0, i = n, a = n * 2;
@@ -1072,7 +1072,7 @@ j.set(f.Zstd, () => import("./zstd-jXobGRcq.js").then((e) => e.decode));
1072
1072
  j.set(f.Jpeg, () => Promise.resolve(ce));
1073
1073
  j.set(f.Jpeg6, () => Promise.resolve(ce));
1074
1074
  j.set(f.Webp, () => Promise.resolve(ce));
1075
- j.set(f.Lerc, () => import("./lerc-CElHRqrE.js").then((e) => e.decode));
1075
+ j.set(f.Lerc, () => import("./lerc-DQuf93SN.js").then((e) => e.decode));
1076
1076
  async function ue(e, t, n) {
1077
1077
  const r = j.get(t);
1078
1078
  if (!r)
@@ -1,5 +1,5 @@
1
1
  import { w as he } from "./mgrs-BY9bIvp4.js";
2
- import { a3 as de, bD as fe, bE as re, c as oe, bF as me, G as pe, bG as ge, aK as Z, bH as ve, N as be, bI as xe, bJ as Pe, al as Te, ap as ie } from "./index-Bwdaim-c.js";
2
+ import { a3 as de, bD as fe, bE as re, c as oe, bF as me, G as pe, bG as ge, aK as Z, bH as ve, N as be, bI as xe, bJ as Pe, al as Te, ap as ie } from "./index-CevWTqBO.js";
3
3
  import { p as ye, a as Le, h as we } from "./hillshade-shader-DI2uLSNU.js";
4
4
  function Oe(n, e, t) {
5
5
  const { projectedCorners: s } = e, { topLeft: r, topRight: o, bottomRight: i, bottomLeft: a } = s, c = t(r[0], r[1]), u = t(o[0], o[1]), l = t(i[0], i[1]), d = t(a[0], a[1]), f = [
@@ -1,4 +1,4 @@
1
- import { c as E, a3 as N } from "./index-Bwdaim-c.js";
1
+ import { c as E, a3 as N } from "./index-CevWTqBO.js";
2
2
  const z = Math.PI / 180, O = 45, I = 24, T = /* @__PURE__ */ new Map();
3
3
  let b = null;
4
4
  function W(e) {
package/dist/version.d.ts CHANGED
@@ -5,4 +5,4 @@
5
5
  * the build rootDir, and a `define` would need repeating across vite/vitest/
6
6
  * vite-node configs.
7
7
  */
8
- export declare const LIBRARY_VERSION = "0.11.10";
8
+ export declare const LIBRARY_VERSION = "0.11.11";
@@ -1,5 +1,5 @@
1
- import { A as ur, d as lr, R as zt, e as fr, m as dr, p as St, f as hr, k as pr, l as mr } from "./raster-pipeline-D26Sl0X2.js";
2
- import { c as gr } from "./index-Bwdaim-c.js";
1
+ import { A as ur, d as lr, R as zt, e as fr, m as dr, p as St, f as hr, k as pr, l as mr } from "./raster-pipeline-CusoihQ3.js";
2
+ import { c as gr } from "./index-CevWTqBO.js";
3
3
  import $t from "./index-CW1n5LdO.js";
4
4
  var Et;
5
5
  function h(e, t, n) {
package/docs/basemaps.md CHANGED
@@ -18,7 +18,7 @@ The `basemap` attribute on `<om-map>` selects what renders under your data layer
18
18
  | `positron` | OpenFreeMap | none | Ultra-clean light style — the classic dataviz backdrop. |
19
19
  | `dark-matter` | [CARTO](https://github.com/CartoDB/basemap-styles) | none | Dark dataviz style. Attribution required (rendered automatically). |
20
20
  | `voyager` | CARTO | none | Balanced light style with labels. |
21
- | `osm` | [openstreetmap.org](https://operations.osmfoundation.org/policies/tiles/) | none | The classic raster look. **Policy-constrained**: donation-funded, no uptime guarantee; commercial apps should prefer a vector preset or a paid provider. |
21
+ | `osm` | [openstreetmap.org](https://operations.osmfoundation.org/policies/tiles/) | none | The classic raster look. **Policy-constrained**: donation-funded, no uptime guarantee; commercial apps should prefer a vector preset or a paid provider. Works from a page opened from disk (`file://`) too: tile requests carry the `X-Requested-With` header OSM asks for from pages that send no Referer — without it, Firefox got a grid of "Access blocked" tiles, and so did Chrome on a hard reload. |
22
22
  | `satellite` | [EOX Sentinel-2 cloudless](https://cloudless.eox.at) | none | Keyless satellite imagery: the 2016 cloud-free Sentinel-2 mosaic, worldwide. CC BY 4.0, so commercial use is fine with the credit it renders. 10 m imagery: sharp to about zoom 13–14, softer beyond (the map stops fetching at 14 and stretches). For street-level detail or current imagery, use `maptiler-satellite`. |
23
23
  | `maptiler-streets` / `maptiler-dataviz` / `maptiler-satellite` | [MapTiler](https://docs.maptiler.com/cloud/api/maps/) | **required** | Free tier available; `maptiler-satellite` is sharp, current imagery to street level. |
24
24
  | `maplibre` | MapLibre demo tiles | none | Country-level outlines only — fine for smoke tests, not production. |
@@ -22,8 +22,8 @@ to PDF at true page size via CSS `@page` and exports PNG/JPEG at print DPI throu
22
22
  <html>
23
23
  <head>
24
24
  <meta charset="utf-8">
25
- <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.11.10/dist/cartograph.standalone.js"></script>
26
- <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.10/dist/cartograph.css">
25
+ <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.11.11/dist/cartograph.standalone.js"></script>
26
+ <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.11/dist/cartograph.css">
27
27
  </head>
28
28
  <body>
29
29
  <om-cartograph cartograph-id="cg-lot-12" format="cartograph/2" size="A4" theme="minimal"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nika-js/onlymap",
3
- "version": "0.11.10",
3
+ "version": "0.11.11",
4
4
  "description": "Declarative deck.gl maps for HTML and React — interactive WebGL mapping with GeoJSON/CSV/Arrow data, MapLibre basemaps, widgets, popups, and live streams from a custom-element manifest or typed React components. TypeScript, no build step.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "publishConfig": {
@@ -23,7 +23,7 @@ Use OnlyMapJS as a declarative HTML map library. Write custom elements such as `
23
23
  </script>
24
24
  ```
25
25
 
26
- For no-build CDN pages, use the single-file standalone bundle from a raw-file CDN — `https://unpkg.com/@nika-js/onlymap@0.11.10` (the bare package URL serves `dist/onlymap.standalone.js`) — plus `<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.10/dist/onlymapjs.css">`. Never a rebundling CDN (esm.sh, skypack): re-bundling duplicates the deck.gl/luma.gl runtime and every layer fails shader compilation.
26
+ For no-build CDN pages, use the single-file standalone bundle from a raw-file CDN — `https://unpkg.com/@nika-js/onlymap@0.11.11` (the bare package URL serves `dist/onlymap.standalone.js`) — plus `<link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.11/dist/onlymapjs.css">`. Never a rebundling CDN (esm.sh, skypack): re-bundling duplicates the deck.gl/luma.gl runtime and every layer fails shader compilation.
27
27
 
28
28
  ## React Projects
29
29
 
@@ -16,8 +16,8 @@ Vite/npm project:
16
16
  Static CDN page (raw-file CDNs only — unpkg/jsDelivr; never esm.sh or another rebundling CDN, which duplicates the WebGL runtime and breaks layer shaders):
17
17
 
18
18
  ```html
19
- <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.10/dist/onlymapjs.css">
20
- <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.11.10"></script>
19
+ <link rel="stylesheet" href="https://unpkg.com/@nika-js/onlymap@0.11.11/dist/onlymapjs.css">
20
+ <script type="module" src="https://unpkg.com/@nika-js/onlymap@0.11.11"></script>
21
21
  ```
22
22
 
23
23
  Always include `onlymapjs.css` — it carries the MapLibre basemap styles and the no-JS fallback rules (`<om-fallback>` / default banner). For the fallback to work in script-disabled previews it must load without JavaScript: a real `<link rel="stylesheet">` or inlined `<style>` on no-build pages (a bundler-emitted stylesheet is fine in npm projects).