@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.
- package/CHANGELOG.md +18 -0
- package/README.md +26 -2
- package/dist/{basemap-DL0mk9Bf.js → basemap-9lXclX9H.js} +3882 -3980
- package/dist/cartograph/elements/om-frame.d.ts +67 -1
- package/dist/cartograph/georef.d.ts +18 -4
- package/dist/cartograph/schema.d.ts +11 -0
- package/dist/cartograph.js +1480 -1311
- package/dist/cartograph.standalone.js +1808 -1615
- package/dist/{cityjson-D_V5GY8b.js → cityjson-k-z1r6c0.js} +1 -1
- package/dist/{crs-DsDQ4Q4i.js → crs-BzE_KP4M.js} +25 -2
- package/dist/{crs-Ciu7Xs7a.js → crs-ChglCB3O.js} +39 -16
- package/dist/elements/om-map.d.ts +10 -0
- package/dist/{geoparquet-DJxZA0if.js → geoparquet-DFDZDBun.js} +10 -10
- package/dist/globe-view-D9wjfL0T.js +104 -0
- package/dist/hillshade-C2BQr6pd.js +298 -0
- package/dist/{hillshade-shader-n_zManfZ.js → hillshade-shader-DI2uLSNU.js} +15 -10
- package/dist/hillshade-shader.d.ts +18 -2
- package/dist/hillshade.d.ts +30 -0
- package/dist/{ifc-Dc-TdSJr.js → ifc-DXwePQRv.js} +131 -131
- package/dist/{index-CvuDsvnk.js → index-4Tvlt0iO.js} +47 -47
- package/dist/{index-BjcPjICh.js → index-Bn66l3KG.js} +59 -59
- package/dist/index-BuXrMq5D.js +322 -0
- package/dist/index-CNRbZHkK.js +459 -0
- package/dist/{index-DdTZSuAb.js → index-CkovmN47.js} +106 -106
- package/dist/index-CmuOizAF.js +641 -0
- package/dist/index-CvT5QHBS.js +65 -0
- package/dist/{index-vLXZuog4.js → index-DnVHKI61.js} +1 -1
- package/dist/{index-oY3XHIux.js → index-JjyDEqAS.js} +18178 -16943
- package/dist/index.d.ts +4 -0
- package/dist/layer-registry.d.ts +27 -0
- package/dist/{lerc-Bph62dCb.js → lerc-C1mQ_Kqq.js} +1 -1
- package/dist/onlymap.standalone.js +48211 -45574
- package/dist/onlymapjs.js +77 -74
- package/dist/parse-manifest.d.ts +6 -0
- package/dist/plane-camera.d.ts +59 -0
- package/dist/plane-layers.d.ts +56 -0
- package/dist/plane-tiles.d.ts +99 -0
- package/dist/plane-tileset.d.ts +31 -0
- package/dist/plane-warp.d.ts +91 -0
- package/dist/post-process-effect-DfslKPM6.js +197 -0
- package/dist/programmatic.d.ts +16 -1
- package/dist/projection.d.ts +118 -0
- package/dist/{raster-D-eTzCE3.js → raster-D2NzdjZE.js} +4 -4
- package/dist/{raster-pipeline-BlOnMPJe.js → raster-pipeline-qnD1icOv.js} +4 -3
- package/dist/runtime-core.d.ts +140 -1
- package/dist/serialize/clip.d.ts +50 -0
- package/dist/serialize/declutter.d.ts +44 -0
- package/dist/serialize/emit.d.ts +60 -0
- package/dist/serialize/index.d.ts +64 -0
- package/dist/serialize/strategy.d.ts +30 -0
- package/dist/serialize/style.d.ts +77 -0
- package/dist/snapshot.d.ts +46 -0
- package/dist/surface-anchor.d.ts +6 -0
- package/dist/text-on-path-Dm7vtNqt.js +146 -0
- package/dist/text-on-path.d.ts +157 -0
- package/dist/transform/buffer.d.ts +63 -0
- package/dist/transform/contour.d.ts +37 -0
- package/dist/transform/dot-density.d.ts +19 -0
- package/dist/transform/field.d.ts +80 -0
- package/dist/transform/geometry.d.ts +20 -0
- package/dist/transform/index.d.ts +29 -0
- package/dist/transform/simplify.d.ts +10 -0
- package/dist/transform/smooth.d.ts +12 -0
- package/dist/transform-stage.d.ts +92 -0
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-BGDoEtFb.js → zarr-D5e5agMG.js} +2 -2
- package/docs/cartograph.md +12 -4
- package/docs/cartography.md +328 -0
- package/docs/design/arrows.md +182 -0
- package/docs/design/carto-substrate.md +1055 -0
- package/docs/design/extensions.md +250 -0
- package/llms.txt +2 -1
- package/onlymapjs.attributes.json +18 -0
- package/onlymapjs.html-data.json +169 -19
- package/package.json +1 -1
- package/skills/onlymapjs/SKILL.md +6 -2
- package/skills/onlymapjs/references/syntax.md +22 -2
- package/dist/hillshade-DR3TxO1a.js +0 -186
- 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;
|
package/dist/layer-registry.d.ts
CHANGED
|
@@ -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;
|