@nika-js/onlymap 0.6.26 → 0.7.0

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 (33) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +2 -2
  3. package/dist/{LercDecode.es-B4KknLMs.js → LercDecode.es-CYOgDeVu.js} +1 -1
  4. package/dist/{basemap-C4bmWq6M.js → basemap-0rGUZkQT.js} +1 -1
  5. package/dist/elements/om-map.d.ts +9 -1
  6. package/dist/{geoparquet-BPMda753.js → geoparquet-Cau8fzH7.js} +1 -1
  7. package/dist/{index-DMT_7aV3.js → index-BF3xZe9d.js} +1 -1
  8. package/dist/{index-DK5w4OxN.js → index-Bt3U7sbb.js} +1 -1
  9. package/dist/{index-B5hsHnPl.js → index-CpSUZ-J3.js} +1 -1
  10. package/dist/{index-DtU_XhTX.js → index-CriPOt1s.js} +2 -2
  11. package/dist/{index-COuIQk2Z.js → index-CxOS31XG.js} +11193 -10962
  12. package/dist/index.d.ts +1 -1
  13. package/dist/layer-registry.d.ts +10 -0
  14. package/dist/{lerc-BNW5A6zN.js → lerc-aeqKo4fK.js} +2 -2
  15. package/dist/onlymap.standalone.js +29316 -28616
  16. package/dist/onlymapjs.js +91 -89
  17. package/dist/{raster-eMqzBMQf.js → raster-D70FrkLt.js} +1049 -790
  18. package/dist/raster-identify.d.ts +19 -0
  19. package/dist/{raster-pipeline-Dg-GSDP3.js → raster-pipeline-A-zvBnKU.js} +660 -450
  20. package/dist/raster-pipeline.d.ts +109 -14
  21. package/dist/raster.d.ts +91 -1
  22. package/dist/react.js +253 -234
  23. package/dist/runtime-core.d.ts +23 -0
  24. package/dist/version.d.ts +1 -1
  25. package/dist/widget-layout.d.ts +18 -0
  26. package/dist/{zarr-Dv7OiUcg.js → zarr-DmrbmSNx.js} +10 -3
  27. package/docs/design/cog-v2.md +223 -0
  28. package/llms.txt +1 -1
  29. package/onlymapjs.attributes.json +9 -0
  30. package/onlymapjs.html-data.json +24 -0
  31. package/package.json +1 -1
  32. package/skills/onlymapjs/SKILL.md +1 -1
  33. package/skills/onlymapjs/references/syntax.md +12 -7
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Raster pixel identify (COG v2 phase 4, issue #13) — the EAGER seam
3
+ * between the lazy raster chunk and runtime-core. The chunk registers an
4
+ * identify closure per deck layer id; the pick path consults it when a
5
+ * click/hover lands on no vector feature. Zero dependencies so the eager
6
+ * bundle stays raster-free; the Map is module-scoped, mirroring the layer
7
+ * ids that are already required to be unique per manifest.
8
+ */
9
+ export interface RasterIdentifyResult {
10
+ /** Raw per-band values at the picked pixel (Float32 precision — float64 sources truncate, the ticket's documented cost). */
11
+ values: number[];
12
+ /** 1-based band numbers, aligned with `values`. */
13
+ bands: number[];
14
+ /** True when every sampled value equals the source's nodata sentinel. */
15
+ nodata: boolean;
16
+ }
17
+ export declare function registerRasterIdentify(deckLayerId: string, fn: (lngLat: [number, number]) => RasterIdentifyResult | null): void;
18
+ export declare function unregisterRasterIdentify(deckLayerId: string): void;
19
+ export declare function rasterIdentify(deckLayerId: string, lngLat: [number, number]): RasterIdentifyResult | null;