@nika-js/onlymap 0.9.1 → 0.10.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 (79) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +26 -2
  3. package/dist/{basemap-DL0mk9Bf.js → basemap-9lXclX9H.js} +3882 -3980
  4. package/dist/cartograph/elements/om-frame.d.ts +67 -1
  5. package/dist/cartograph/georef.d.ts +18 -4
  6. package/dist/cartograph/schema.d.ts +11 -0
  7. package/dist/cartograph.js +1480 -1311
  8. package/dist/cartograph.standalone.js +1808 -1615
  9. package/dist/{cityjson-D_V5GY8b.js → cityjson-k-z1r6c0.js} +1 -1
  10. package/dist/{crs-DsDQ4Q4i.js → crs-BzE_KP4M.js} +25 -2
  11. package/dist/{crs-Ciu7Xs7a.js → crs-ChglCB3O.js} +39 -16
  12. package/dist/elements/om-map.d.ts +10 -0
  13. package/dist/{geoparquet-DJxZA0if.js → geoparquet-DFDZDBun.js} +10 -10
  14. package/dist/globe-view-D9wjfL0T.js +104 -0
  15. package/dist/hillshade-C2BQr6pd.js +298 -0
  16. package/dist/{hillshade-shader-n_zManfZ.js → hillshade-shader-DI2uLSNU.js} +15 -10
  17. package/dist/hillshade-shader.d.ts +18 -2
  18. package/dist/hillshade.d.ts +30 -0
  19. package/dist/{ifc-Dc-TdSJr.js → ifc-DXwePQRv.js} +131 -131
  20. package/dist/{index-CvuDsvnk.js → index-4Tvlt0iO.js} +47 -47
  21. package/dist/{index-BjcPjICh.js → index-Bn66l3KG.js} +59 -59
  22. package/dist/index-BuXrMq5D.js +322 -0
  23. package/dist/index-CNRbZHkK.js +459 -0
  24. package/dist/{index-DdTZSuAb.js → index-CkovmN47.js} +106 -106
  25. package/dist/index-CmuOizAF.js +641 -0
  26. package/dist/index-CvT5QHBS.js +65 -0
  27. package/dist/{index-vLXZuog4.js → index-DnVHKI61.js} +1 -1
  28. package/dist/{index-oY3XHIux.js → index-JjyDEqAS.js} +18178 -16943
  29. package/dist/index.d.ts +4 -0
  30. package/dist/layer-registry.d.ts +27 -0
  31. package/dist/{lerc-Bph62dCb.js → lerc-C1mQ_Kqq.js} +1 -1
  32. package/dist/onlymap.standalone.js +48211 -45574
  33. package/dist/onlymapjs.js +77 -74
  34. package/dist/parse-manifest.d.ts +6 -0
  35. package/dist/plane-camera.d.ts +59 -0
  36. package/dist/plane-layers.d.ts +56 -0
  37. package/dist/plane-tiles.d.ts +99 -0
  38. package/dist/plane-tileset.d.ts +31 -0
  39. package/dist/plane-warp.d.ts +91 -0
  40. package/dist/post-process-effect-DfslKPM6.js +197 -0
  41. package/dist/programmatic.d.ts +16 -1
  42. package/dist/projection.d.ts +118 -0
  43. package/dist/{raster-D-eTzCE3.js → raster-D2NzdjZE.js} +4 -4
  44. package/dist/{raster-pipeline-BlOnMPJe.js → raster-pipeline-qnD1icOv.js} +4 -3
  45. package/dist/runtime-core.d.ts +140 -1
  46. package/dist/serialize/clip.d.ts +50 -0
  47. package/dist/serialize/declutter.d.ts +44 -0
  48. package/dist/serialize/emit.d.ts +60 -0
  49. package/dist/serialize/index.d.ts +64 -0
  50. package/dist/serialize/strategy.d.ts +30 -0
  51. package/dist/serialize/style.d.ts +77 -0
  52. package/dist/snapshot.d.ts +46 -0
  53. package/dist/surface-anchor.d.ts +6 -0
  54. package/dist/text-on-path-Dm7vtNqt.js +146 -0
  55. package/dist/text-on-path.d.ts +157 -0
  56. package/dist/transform/buffer.d.ts +63 -0
  57. package/dist/transform/contour.d.ts +37 -0
  58. package/dist/transform/dot-density.d.ts +19 -0
  59. package/dist/transform/field.d.ts +80 -0
  60. package/dist/transform/geometry.d.ts +20 -0
  61. package/dist/transform/index.d.ts +29 -0
  62. package/dist/transform/simplify.d.ts +10 -0
  63. package/dist/transform/smooth.d.ts +12 -0
  64. package/dist/transform-stage.d.ts +92 -0
  65. package/dist/version.d.ts +1 -1
  66. package/dist/{zarr-BGDoEtFb.js → zarr-D5e5agMG.js} +2 -2
  67. package/docs/cartograph.md +12 -4
  68. package/docs/cartography.md +328 -0
  69. package/docs/design/arrows.md +182 -0
  70. package/docs/design/carto-substrate.md +1055 -0
  71. package/docs/design/extensions.md +250 -0
  72. package/llms.txt +2 -1
  73. package/onlymapjs.attributes.json +18 -0
  74. package/onlymapjs.html-data.json +169 -19
  75. package/package.json +1 -1
  76. package/skills/onlymapjs/SKILL.md +6 -2
  77. package/skills/onlymapjs/references/syntax.md +22 -2
  78. package/dist/hillshade-DR3TxO1a.js +0 -186
  79. package/dist/index-DO_w0tqR.js +0 -514
package/dist/index.d.ts CHANGED
@@ -32,6 +32,7 @@ import { registerWidget } from "./widget-registry";
32
32
  import { registerAction } from "./actions";
33
33
  import { registerBasemap, configureBasemap } from "./basemap-registry";
34
34
  import { registerTerrain } from "./terrain";
35
+ import { registerCrs } from "./projection";
35
36
  import { registerRoutingProvider } from "./providers";
36
37
  import { configureTelemetry } from "./telemetry";
37
38
  import { configureLicense, setKeepBadge, badgeMode } from "./license";
@@ -59,6 +60,8 @@ export type { BasemapPreset, BasemapStyle } from "./basemap-registry";
59
60
  export { LIGHTING_PRESET_NAMES, resolveLighting, solarAzElDegrees } from "./scene-lighting";
60
61
  export type { LightingIR, LightingOptions, LightingPresetName } from "./scene-lighting";
61
62
  export { registerTerrain, getTerrain, parseTerrainAttrs } from "./terrain";
63
+ export { registerCrs, resolveProjection, registeredCrsCodes } from "./projection";
64
+ export type { Projection, PlaneUnits, LngLatPair, PlaneXY } from "./projection";
62
65
  export type { TerrainPreset, TerrainIR, ElevationDecoder, LayerTerrainMode } from "./terrain";
63
66
  export { registerRoutingProvider, getRoutingProvider, lineStringLengthMeters } from "./providers";
64
67
  export type { RoutingProvider, Route, RouteRequest, RouteWaypoint, RouteLeg } from "./providers";
@@ -132,6 +135,7 @@ export declare const OmMap: {
132
135
  registerSource: typeof registerSource;
133
136
  registerBasemap: typeof registerBasemap;
134
137
  registerTerrain: typeof registerTerrain;
138
+ registerCrs: typeof registerCrs;
135
139
  registerRoutingProvider: typeof registerRoutingProvider;
136
140
  configureBasemap: typeof configureBasemap;
137
141
  configureData: typeof configureData;
@@ -83,7 +83,34 @@ export interface LayerSchema {
83
83
  carriesRasterWindow?: boolean;
84
84
  /** Answers pixel-identify queries (COG v2 phase 4) via the eager raster-identify registry — the pick path synthesizes a selection from its per-band values when a click/hover lands on no vector feature. */
85
85
  carriesRasterIdentify?: boolean;
86
+ /**
87
+ * Draws Web Mercator raster tiles, so on a PROJECTED map it needs the plane
88
+ * itself rather than projected geometry: its tiles have to be re-indexed
89
+ * from the plane's geography and drawn as subdivided warped meshes
90
+ * (docs/design/carto-substrate.md §9, Phase 6). The runtime injects
91
+ * `_planeFrame` only into these types — a flag on the schema for the same
92
+ * reason `carriesTileset` is one, so the list has a single home instead of
93
+ * a type-name check in the renderer.
94
+ */
95
+ warpsInPlane?: boolean;
86
96
  }
97
+ /**
98
+ * Layer types whose geometry comes from a WEB MERCATOR TILE PYRAMID.
99
+ *
100
+ * On a projected map these cannot work by projecting their data — they have
101
+ * none; deck indexes their tiles from the viewport, and an `OrthographicView`
102
+ * sends it down the Cartesian branch, which produces indices that mean nothing
103
+ * in an OSM pyramid (C24/C25). `HillshadeLayer` is the one type taught to
104
+ * re-index and warp, and it says so with `warpsInPlane`.
105
+ *
106
+ * Listed here rather than in the validator so "which layers understand a
107
+ * plane" has ONE home: the flag says which do, this says which would need to.
108
+ * Teaching a new type to warp is then setting the flag, and the validator
109
+ * stops refusing it without being edited.
110
+ */
111
+ export declare const MERCATOR_PYRAMID_TYPES: readonly string[];
112
+ /** Whether this type draws Mercator-pyramid tiles and has NOT been taught the plane. */
113
+ export declare function needsMercatorPyramid(type: string): boolean;
87
114
  export declare function registerLayer(schema: Omit<LayerSchema, "tier"> & {
88
115
  tier?: LayerSchema["tier"];
89
116
  }): void;
@@ -1,4 +1,4 @@
1
- import { C as o, D as s } from "./raster-D-eTzCE3.js";
1
+ import { C as o, D as s } from "./raster-D2NzdjZE.js";
2
2
  var t;
3
3
  (function(e) {
4
4
  e[e.None = 0] = "None", e[e.Deflate = 1] = "Deflate", e[e.Zstd = 2] = "Zstd";