isard 1.1.0 → 1.2.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 +33 -0
- package/dist/basemap/basemaps.d.ts +1 -1
- package/dist/basemap/basemaps.js +2 -2
- package/dist/basemap/basemaps.js.map +1 -1
- package/dist/basemap/grid.d.ts +5 -5
- package/dist/basemap/grid.js +59 -65
- package/dist/basemap/grid.js.map +1 -1
- package/dist/basemap/mvt.d.ts +1 -1
- package/dist/basemap/mvt.js +6 -6
- package/dist/basemap/mvt.js.map +1 -1
- package/dist/basemap/pmtiles.d.ts +10 -10
- package/dist/basemap/pmtiles.js +39 -31
- package/dist/basemap/pmtiles.js.map +1 -1
- package/dist/basemap/resample.d.ts +2 -2
- package/dist/basemap/resample.js +16 -14
- package/dist/basemap/resample.js.map +1 -1
- package/dist/basemap/terrain.d.ts +3 -3
- package/dist/basemap/terrain.js +6 -6
- package/dist/basemap/terrain.js.map +1 -1
- package/dist/basemap/vectorstyle.d.ts +12 -10
- package/dist/basemap/vectorstyle.js +128 -110
- package/dist/basemap/vectorstyle.js.map +1 -1
- package/dist/basemap/vectortiles.d.ts +11 -11
- package/dist/basemap/vectortiles.js +141 -103
- package/dist/basemap/vectortiles.js.map +1 -1
- package/dist/basemap/wmts.d.ts +3 -3
- package/dist/basemap/wmts.js +16 -11
- package/dist/basemap/wmts.js.map +1 -1
- package/dist/basemap.worker.js +2 -2
- package/dist/basemap.worker.js.map +14 -13
- package/dist/bind/layers.d.ts +13 -4
- package/dist/bind/layers.js +64 -40
- package/dist/bind/layers.js.map +1 -1
- package/dist/data/crs.d.ts +10 -10
- package/dist/data/crs.js +38 -34
- package/dist/data/crs.js.map +1 -1
- package/dist/data/gpx.d.ts +1 -1
- package/dist/data/gpx.js +20 -20
- package/dist/data/gpx.js.map +1 -1
- package/dist/data/kml.d.ts +1 -1
- package/dist/data/kml.js +42 -39
- package/dist/data/kml.js.map +1 -1
- package/dist/data/topojson.d.ts +1 -1
- package/dist/data/topojson.js +15 -10
- package/dist/data/topojson.js.map +1 -1
- package/dist/data/xml.d.ts +5 -5
- package/dist/data/xml.js +19 -18
- package/dist/data/xml.js.map +1 -1
- package/dist/decoder.worker.js +4 -4
- package/dist/decoder.worker.js.map +6 -6
- package/dist/engine/decoders.d.ts +2 -2
- package/dist/engine/decoders.js +28 -25
- package/dist/engine/decoders.js.map +1 -1
- package/dist/engine/loader.js +13 -14
- package/dist/engine/loader.js.map +1 -1
- package/dist/engine/requests.d.ts +1 -1
- package/dist/engine/requests.js +19 -16
- package/dist/engine/requests.js.map +1 -1
- package/dist/engine-loader.d.ts +8 -8
- package/dist/engine-loader.js +27 -27
- package/dist/engine-loader.js.map +1 -1
- package/dist/geoplateforme.d.ts +10 -10
- package/dist/geoplateforme.js +22 -20
- package/dist/geoplateforme.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js.map +1 -1
- package/dist/isard_bg.wasm +0 -0
- package/dist/isard_core_bg.wasm +0 -0
- package/dist/isard_points_bg.wasm +0 -0
- package/dist/layers/extrusions.d.ts +1 -1
- package/dist/layers/extrusions.js +10 -5
- package/dist/layers/extrusions.js.map +1 -1
- package/dist/layers/features.d.ts +10 -10
- package/dist/layers/features.js +41 -42
- package/dist/layers/features.js.map +1 -1
- package/dist/layers/glyphs.d.ts +3 -3
- package/dist/layers/glyphs.js +34 -40
- package/dist/layers/glyphs.js.map +1 -1
- package/dist/layers/icons.d.ts +8 -8
- package/dist/layers/icons.js +76 -68
- package/dist/layers/icons.js.map +1 -1
- package/dist/layers/layers.d.ts +1 -1
- package/dist/layers/layers.js +33 -29
- package/dist/layers/layers.js.map +1 -1
- package/dist/layers/panoramas.d.ts +2 -2
- package/dist/layers/panoramas.js +52 -41
- package/dist/layers/panoramas.js.map +1 -1
- package/dist/layers/pointclouds.d.ts +3 -3
- package/dist/layers/pointclouds.js +25 -33
- package/dist/layers/pointclouds.js.map +1 -1
- package/dist/layers/symbols.d.ts +1 -1
- package/dist/layers/symbols.js +68 -71
- package/dist/layers/symbols.js.map +1 -1
- package/dist/map/basemap-layers.d.ts +26 -0
- package/dist/map/basemap-layers.js +61 -0
- package/dist/map/basemap-layers.js.map +1 -0
- package/dist/map/canvas.d.ts +17 -0
- package/dist/map/canvas.js +56 -0
- package/dist/map/canvas.js.map +1 -0
- package/dist/map/checks.d.ts +11 -0
- package/dist/map/checks.js +39 -0
- package/dist/map/checks.js.map +1 -0
- package/dist/map/credits.d.ts +17 -0
- package/dist/map/credits.js +34 -0
- package/dist/map/credits.js.map +1 -0
- package/dist/map/engine-settings.d.ts +15 -0
- package/dist/map/engine-settings.js +45 -0
- package/dist/map/engine-settings.js.map +1 -0
- package/dist/map/engines.d.ts +41 -0
- package/dist/map/engines.js +77 -0
- package/dist/map/engines.js.map +1 -0
- package/dist/map/events.d.ts +14 -0
- package/dist/map/events.js +46 -0
- package/dist/map/events.js.map +1 -0
- package/dist/map/frame-loop.d.ts +61 -0
- package/dist/map/frame-loop.js +139 -0
- package/dist/map/frame-loop.js.map +1 -0
- package/dist/map/hover-pick.d.ts +30 -0
- package/dist/map/hover-pick.js +56 -0
- package/dist/map/hover-pick.js.map +1 -0
- package/dist/map/layer-spec.d.ts +42 -0
- package/dist/map/layer-spec.js +34 -0
- package/dist/map/layer-spec.js.map +1 -0
- package/dist/map/layer-stack.d.ts +36 -0
- package/dist/map/layer-stack.js +101 -0
- package/dist/map/layer-stack.js.map +1 -0
- package/dist/map/overlay-host.d.ts +36 -0
- package/dist/map/overlay-host.js +101 -0
- package/dist/map/overlay-host.js.map +1 -0
- package/dist/map/panorama-host.d.ts +5 -0
- package/dist/map/panorama-host.js +32 -0
- package/dist/map/panorama-host.js.map +1 -0
- package/dist/map/raster-source.d.ts +11 -0
- package/dist/map/raster-source.js +26 -0
- package/dist/map/raster-source.js.map +1 -0
- package/dist/map/symbol-atlases.d.ts +26 -0
- package/dist/map/symbol-atlases.js +59 -0
- package/dist/map/symbol-atlases.js.map +1 -0
- package/dist/map/viewshed.d.ts +5 -0
- package/dist/map/viewshed.js +28 -0
- package/dist/map/viewshed.js.map +1 -0
- package/dist/map/workers.d.ts +46 -0
- package/dist/map/workers.js +73 -0
- package/dist/map/workers.js.map +1 -0
- package/dist/map.d.ts +33 -120
- package/dist/map.js +164 -689
- package/dist/map.js.map +1 -1
- package/dist/react/Control.d.ts +11 -0
- package/dist/react/Control.js +18 -0
- package/dist/react/Control.js.map +1 -0
- package/dist/react/CustomLayer.d.ts +11 -0
- package/dist/react/CustomLayer.js +30 -0
- package/dist/react/CustomLayer.js.map +1 -0
- package/dist/react/IsardMap.d.ts +43 -0
- package/dist/react/IsardMap.js +146 -0
- package/dist/react/IsardMap.js.map +1 -0
- package/dist/react/Layer.d.ts +42 -0
- package/dist/react/Layer.js +74 -0
- package/dist/react/Layer.js.map +1 -0
- package/dist/react/Marker.d.ts +24 -0
- package/dist/react/Marker.js +53 -0
- package/dist/react/Marker.js.map +1 -0
- package/dist/react/Panel.d.ts +11 -0
- package/dist/react/Panel.js +37 -0
- package/dist/react/Panel.js.map +1 -0
- package/dist/react/Popup.d.ts +18 -0
- package/dist/react/Popup.js +60 -0
- package/dist/react/Popup.js.map +1 -0
- package/dist/react/Swipe.d.ts +9 -0
- package/dist/react/Swipe.js +41 -0
- package/dist/react/Swipe.js.map +1 -0
- package/dist/react/Viewshed.d.ts +5 -0
- package/dist/react/Viewshed.js +28 -0
- package/dist/react/Viewshed.js.map +1 -0
- package/dist/react/context.d.ts +32 -0
- package/dist/react/context.js +20 -0
- package/dist/react/context.js.map +1 -0
- package/dist/react/index.d.ts +15 -108
- package/dist/react/index.js +10 -397
- package/dist/react/index.js.map +1 -1
- package/dist/settings.d.ts +5 -9
- package/dist/settings.js +17 -15
- package/dist/settings.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.js.map +1 -1
- package/dist/ui/controls.js +6 -4
- package/dist/ui/controls.js.map +1 -1
- package/dist/ui/interaction.d.ts +2 -2
- package/dist/ui/interaction.js +8 -7
- package/dist/ui/interaction.js.map +1 -1
- package/dist/ui/overlay.js +18 -20
- package/dist/ui/overlay.js.map +1 -1
- package/dist/ui/style.d.ts +1 -1
- package/dist/ui/style.js +2 -2
- package/dist/ui/style.js.map +1 -1
- package/dist/util/animation.d.ts +3 -3
- package/dist/util/animation.js +6 -6
- package/dist/util/animation.js.map +1 -1
- package/dist/util/color.d.ts +1 -1
- package/dist/util/color.js +14 -16
- package/dist/util/color.js.map +1 -1
- package/dist/util/geo.d.ts +6 -6
- package/dist/util/geo.js +12 -12
- package/dist/util/geo.js.map +1 -1
- package/dist/util/guards.d.ts +7 -0
- package/dist/util/guards.js +8 -0
- package/dist/util/guards.js.map +1 -0
- package/dist/util/lru.js.map +1 -1
- package/dist/wasm/isard.d.ts +168 -0
- package/dist/wasm/isard.js +146 -0
- package/dist/wasm/isard_core.d.ts +144 -0
- package/dist/wasm/isard_core.js +122 -0
- package/dist/workers/basemap.worker.d.ts +3 -3
- package/dist/workers/basemap.worker.js +94 -83
- package/dist/workers/basemap.worker.js.map +1 -1
- package/package.json +1 -1
package/dist/map.d.ts
CHANGED
|
@@ -2,109 +2,78 @@
|
|
|
2
2
|
* The map: canvas, camera, layers, events, overlays, credits and the frame loop. Frames are drawn on demand only: an
|
|
3
3
|
* idle map costs nothing. Hover events are coalesced to one per frame, so the values computed for a mouse position are
|
|
4
4
|
* drawn in the same frame. The engine's loading is in engine-loader.ts, its settings from the options in settings.ts,
|
|
5
|
-
* the camera animations in animation.ts
|
|
5
|
+
* the camera animations in animation.ts; the parts of the map with a state of their own (the drawing order of the
|
|
6
|
+
* layers, the overlays and controls, the frame loop, the hover picking, the workers…) in map/.
|
|
6
7
|
*/
|
|
7
8
|
import { type PmtilesOptions, VectorTiles, type VectorTilesOptions } from './basemap/vectortiles.ts';
|
|
8
9
|
import { ExtrusionLayer, type ExtrusionOptions } from './layers/extrusions.ts';
|
|
9
10
|
import { CircleLayer, type CircleOptions, FillLayer, type FillOptions, LineLayer, type LineOptions } from './layers/features.ts';
|
|
10
|
-
import {
|
|
11
|
+
import type { ImageOptions, Pixels } from './layers/icons.ts';
|
|
11
12
|
import { CustomLayer, type CustomLayerInterface, GroundLayer, type GroundOptions, type Layer, ModelLayer, type ModelOptions, NetworkLayer, RasterLayer, Tiles3dLayer } from './layers/layers.ts';
|
|
12
13
|
import { type PanoramaOptions, type Panoramas } from './layers/panoramas.ts';
|
|
13
14
|
import { PointCloudLayer, type PointCloudOptions } from './layers/pointclouds.ts';
|
|
14
15
|
import { SymbolLayer, type SymbolOptions } from './layers/symbols.ts';
|
|
16
|
+
import { type HoverPicking } from './map/hover-pick.ts';
|
|
17
|
+
import { type LayerSpec } from './map/layer-spec.ts';
|
|
15
18
|
import type { AnimationOptions, AtmosphereOptions, Basemap, FeatureHit, FirstPersonView, FlyToOptions, GeoMapOptions, LoadingMode, LonLat, MapEvents, NetworkOptions, Point, Projection, RasterOptions, SwipeOptions, TerrainModel, TerrainOptions, Tiles3dOptions, ViewshedOptions } from './types.ts';
|
|
16
19
|
import { type Control, type ControlPosition } from './ui/controls.ts';
|
|
17
20
|
import type { Camera, PickHit, RasterLayerStats } from './wasm/isard.js';
|
|
21
|
+
export type { LayerSpec } from './map/layer-spec.ts';
|
|
18
22
|
/** A map (see `GeoMap.create`); layers take it as their host */
|
|
19
23
|
export declare class GeoMap {
|
|
20
24
|
#private;
|
|
21
25
|
readonly canvas: HTMLCanvasElement;
|
|
22
|
-
/**
|
|
23
|
-
private readonly
|
|
24
|
-
/** The
|
|
25
|
-
private
|
|
26
|
-
|
|
27
|
-
private readonly
|
|
28
|
-
/**
|
|
29
|
-
private readonly
|
|
26
|
+
/** The engine class (core, or with 3D Tiles) and the engine with 3D Tiles loaded when needed */
|
|
27
|
+
private readonly engines;
|
|
28
|
+
/** The layers in drawing order and those kept on top */
|
|
29
|
+
private readonly stack;
|
|
30
|
+
/** The basemap and the hillshade */
|
|
31
|
+
private readonly basemaps;
|
|
32
|
+
/** The glyphs and icons of the symbol layers */
|
|
33
|
+
private readonly atlases;
|
|
34
|
+
/** The workers of the vector tiles, the relief and the reprojected rasters */
|
|
35
|
+
private readonly workers;
|
|
30
36
|
private readonly container;
|
|
31
|
-
/**
|
|
32
|
-
private readonly
|
|
33
|
-
private readonly corners;
|
|
34
|
-
private readonly controls;
|
|
35
|
-
private readonly positioned;
|
|
36
|
-
/** Canvas size in CSS pixels, kept on resize so placing overlays never reads the layout */
|
|
37
|
-
private size;
|
|
38
|
-
/** Layers in drawing order (bottom first), to recreate them after a context loss */
|
|
39
|
-
private readonly layers;
|
|
37
|
+
/** The canvas in the container, the markers and popups over it, the controls in its corners */
|
|
38
|
+
private readonly overlays;
|
|
40
39
|
private readonly settings;
|
|
41
40
|
/** The WebGL context is lost: nothing is drawn until it is restored */
|
|
42
41
|
private lost;
|
|
42
|
+
private gone;
|
|
43
43
|
private readonly listeners;
|
|
44
|
+
/** Frames drawn on demand, with their events */
|
|
45
|
+
private readonly frames;
|
|
44
46
|
private readonly resizeObserver;
|
|
45
47
|
private readonly interaction;
|
|
46
|
-
private loader;
|
|
47
|
-
/** The class of the engine: without 3D Tiles until a 3D Tiles layer is added, unless asked for from the start */
|
|
48
|
-
private engineClass;
|
|
49
|
-
/** The module of the engine with 3D Tiles once it runs this map (the decoding workers run it too) */
|
|
50
|
-
private tiles3dModule;
|
|
51
|
-
/** The engine with 3D Tiles is loading, for the 3D Tiles layers added on the core engine */
|
|
52
|
-
private upgrading;
|
|
53
|
-
/** What loading the engine with 3D Tiles and its workers needs */
|
|
54
|
-
private readonly tiles3dOptions;
|
|
55
|
-
private gone;
|
|
56
48
|
/** The map is of the Earth: a basemap by default */
|
|
57
49
|
private readonly earth;
|
|
58
50
|
/** The body, as the option named it */
|
|
59
51
|
private readonly body;
|
|
60
|
-
|
|
61
|
-
private
|
|
62
|
-
/**
|
|
63
|
-
private readonly
|
|
64
|
-
/** Credits of the raster layers that have some (basemaps, hillshade, the Géoplateforme's rasters…) */
|
|
65
|
-
private readonly rasterCredits;
|
|
66
|
-
private animation;
|
|
67
|
-
private hoverPoint;
|
|
68
|
-
/** Frame polling the engine for the answer of the hover picking, 0 if none */
|
|
69
|
-
private hoverPoll;
|
|
70
|
-
/** Polls of the hover picking under way: given up after `MAX_POLLS` (an answer that never comes) */
|
|
71
|
-
private hoverPolls;
|
|
52
|
+
/** Credits of the raster layers that have some, and the attribution controls told when they change */
|
|
53
|
+
private readonly credits;
|
|
54
|
+
/** The picking for 'hoverfeature', its answer emitted on a later frame */
|
|
55
|
+
private readonly hoverPick;
|
|
72
56
|
/** What 'hoverfeature' looks for: within `radius` CSS pixels, in `layers` only if given */
|
|
73
|
-
hoverPicking:
|
|
74
|
-
radius?: number;
|
|
75
|
-
layers?: readonly Layer[];
|
|
76
|
-
};
|
|
77
|
-
private frameRequest;
|
|
78
|
-
private lastCamera;
|
|
79
|
-
/** The camera moved since the last 'moveend' */
|
|
80
|
-
private moving;
|
|
81
|
-
/** The last frame found everything loaded ('idle' sent) */
|
|
82
|
-
private settled;
|
|
83
|
-
private inFrame;
|
|
84
|
-
/** The camera of the frame being drawn: what `getCamera` gives the custom layers while the engine is busy */
|
|
85
|
-
private frameCamera;
|
|
57
|
+
hoverPicking: HoverPicking;
|
|
86
58
|
/** Vector tiles made by `vectorTiles()`, destroyed with the map */
|
|
87
59
|
private readonly vectorSets;
|
|
88
|
-
/** The workers drawing vector tiles, shared by every `VectorTiles` of the map; created on first use */
|
|
89
|
-
private basemapPool;
|
|
90
60
|
/** Stops watching the device pixel ratio */
|
|
91
|
-
private unwatchRatio;
|
|
61
|
+
private readonly unwatchRatio;
|
|
92
62
|
/** Stops following the page's request headers (`setRequestHeaders`) */
|
|
93
63
|
private unwatchHeaders;
|
|
94
64
|
/** Stops listening to the canvas's context loss and restoration */
|
|
95
65
|
private readonly unwatchContext;
|
|
96
|
-
/** The loaders of the relief by encoding, URL and floor: the same loader for the same tiles (the engine keeps its
|
|
97
|
-
* tiles when only the exaggeration changes) */
|
|
98
|
-
private readonly terrainLoaders;
|
|
99
66
|
/** Loads the engine (once per page) and creates a map filling `container` */
|
|
100
67
|
static create(container: HTMLElement, given?: GeoMapOptions): Promise<GeoMap>;
|
|
101
68
|
private constructor();
|
|
102
69
|
/** The element the map was created in */
|
|
103
70
|
getContainer(): HTMLElement;
|
|
104
71
|
getCanvas(): HTMLCanvasElement;
|
|
72
|
+
/** Layers in drawing order (bottom first) */
|
|
73
|
+
private get layers();
|
|
74
|
+
/** Layers new layers go under */
|
|
75
|
+
private get onTop();
|
|
105
76
|
private createEngine;
|
|
106
|
-
/** The decoding workers of 3D Tiles, with the engine that has them (they run its module) and unless turned off */
|
|
107
|
-
private startLoader;
|
|
108
77
|
/** A 3D Tiles layer or a model on the core engine: loads the engine with 3D Tiles, then rebuilds the map on it
|
|
109
78
|
* (camera, settings and layers kept, as after a context loss); the layer is created then */
|
|
110
79
|
private upgrade;
|
|
@@ -130,13 +99,7 @@ export declare class GeoMap {
|
|
|
130
99
|
*/
|
|
131
100
|
setSwipe(options: SwipeOptions | undefined): void;
|
|
132
101
|
private applySwipe;
|
|
133
|
-
/** Takes a layer out of the drawing order (to put it back elsewhere, or for good) */
|
|
134
|
-
private unlist;
|
|
135
102
|
private addLayer;
|
|
136
|
-
/** Index in the engine of the layer at `index`: the layers waiting for the engine with 3D Tiles are not in it yet */
|
|
137
|
-
private engineIndex;
|
|
138
|
-
/** Moves a layer under all the others */
|
|
139
|
-
private toBottom;
|
|
140
103
|
/** Listens to an event; returns the function that stops listening */
|
|
141
104
|
on<K extends keyof MapEvents>(type: K, listener: (event: MapEvents[K]) => void): () => void;
|
|
142
105
|
/**
|
|
@@ -199,18 +162,17 @@ export declare class GeoMap {
|
|
|
199
162
|
setLoading(mode: LoadingMode): void;
|
|
200
163
|
/** Space behind the globe (stars, atmosphere halo) */
|
|
201
164
|
setSky(enabled: boolean): void;
|
|
165
|
+
/** The viewshed set, set again in a new engine */
|
|
166
|
+
private viewshed;
|
|
202
167
|
/** Tints what can be seen from a point and what is hidden from it, within a range, all around or within a cone
|
|
203
168
|
* (`direction`): the relief, extrusions, 3D Tiles and models hide what lies behind them (only what the map has
|
|
204
169
|
* loaded for its view). Several observers (16 at most): what any of them sees is seen, what is hidden from all those
|
|
205
170
|
* that reach it is hidden, in the colors and opacity of the first. Undefined or none removes it */
|
|
206
|
-
/** The viewshed set, set again in a new engine */
|
|
207
|
-
private viewshed;
|
|
208
171
|
setViewshed(options: ViewshedOptions | readonly ViewshedOptions[] | undefined): void;
|
|
209
172
|
/** Relief under the basemap: true for the body's terrain model (on the Earth the worldwide Terrain Tiles, NASA's
|
|
210
173
|
* on the Moon and Mars), one of the Earth's models by name (`'ign'`), its options, or false; on another body, its
|
|
211
174
|
* options with a `url` */
|
|
212
175
|
setTerrain(terrain: boolean | TerrainModel | TerrainOptions): void;
|
|
213
|
-
private attributionChanged;
|
|
214
176
|
/** Color behind the map, a CSS color (its alpha ignored) */
|
|
215
177
|
setBackground(color: string): void;
|
|
216
178
|
/** Tile counters of the raster layers, for diagnostics */
|
|
@@ -232,10 +194,6 @@ export declare class GeoMap {
|
|
|
232
194
|
}): FeatureHit | undefined;
|
|
233
195
|
/** A hit with its layer handle and feature; undefined if the layer is gone */
|
|
234
196
|
private featureHit;
|
|
235
|
-
/** Asks the engine what is under the pointer; its answer, read without waiting for the GPU, comes on a later frame */
|
|
236
|
-
private requestHoverPick;
|
|
237
|
-
private readonly pollHoverPick;
|
|
238
|
-
private cancelHoverPick;
|
|
239
197
|
/** Screen point (CSS pixels) of a position on the ground (the relief), or `height` metres above it, undefined
|
|
240
198
|
* behind the camera */
|
|
241
199
|
project(lonLat: LonLat, height?: number): Point | undefined;
|
|
@@ -325,15 +283,6 @@ export declare class GeoMap {
|
|
|
325
283
|
* basemap.
|
|
326
284
|
*/
|
|
327
285
|
vectorTiles(options?: VectorTilesOptions): VectorTiles;
|
|
328
|
-
/**
|
|
329
|
-
* The workers decoding the relief and reprojecting rasters: the map's pool, unless the map has no workers
|
|
330
|
-
* (`workers: false` or 0, or none in this browser): that is done in the page then
|
|
331
|
-
*/
|
|
332
|
-
private decodingPool;
|
|
333
|
-
private readonly remoteHeights;
|
|
334
|
-
private readonly remoteReprojection;
|
|
335
|
-
/** The loader of the relief tiles of `url` in a PNG encoding (one per URL, encoding and floor) */
|
|
336
|
-
private readonly terrainLoader;
|
|
337
286
|
/** Adds a layer, under `before` if given */
|
|
338
287
|
private place;
|
|
339
288
|
/** Textured meshes in 3D Tiles (photogrammetry, buildings), drawn with depth over the basemap */
|
|
@@ -358,42 +307,6 @@ export declare class GeoMap {
|
|
|
358
307
|
}): CustomLayer;
|
|
359
308
|
/** Asks for a frame; several calls before the next frame draw it once */
|
|
360
309
|
requestRender(): void;
|
|
361
|
-
private frame;
|
|
362
|
-
private drawFrame;
|
|
363
|
-
/** Resizes when the device pixel ratio changes (browser zoom, a window moved to another screen) */
|
|
364
|
-
private watchRatio;
|
|
365
310
|
private resize;
|
|
366
311
|
destroy(): void;
|
|
367
312
|
}
|
|
368
|
-
/** A layer by its type and the options of its `add…` method (`GeoMap.add`) */
|
|
369
|
-
export type LayerSpec<P = Record<string, unknown>> = ({
|
|
370
|
-
type: 'lines';
|
|
371
|
-
} & LineOptions<P>) | ({
|
|
372
|
-
type: 'circles';
|
|
373
|
-
} & CircleOptions<P>) | ({
|
|
374
|
-
type: 'fills';
|
|
375
|
-
} & FillOptions<P>) | ({
|
|
376
|
-
type: 'symbols';
|
|
377
|
-
} & SymbolOptions<P>) | ({
|
|
378
|
-
type: 'extrusions';
|
|
379
|
-
} & ExtrusionOptions<P>) | ({
|
|
380
|
-
type: 'raster';
|
|
381
|
-
} & RasterOptions & {
|
|
382
|
-
before?: Layer;
|
|
383
|
-
}) | ({
|
|
384
|
-
type: 'ground';
|
|
385
|
-
} & GroundOptions & {
|
|
386
|
-
before?: Layer;
|
|
387
|
-
}) | ({
|
|
388
|
-
type: 'network';
|
|
389
|
-
} & NetworkOptions) | ({
|
|
390
|
-
type: 'tiles3d';
|
|
391
|
-
} & Tiles3dOptions) | ({
|
|
392
|
-
type: 'pointcloud';
|
|
393
|
-
} & PointCloudOptions & {
|
|
394
|
-
before?: Layer;
|
|
395
|
-
}) | ({
|
|
396
|
-
type: 'models';
|
|
397
|
-
} & ModelOptions & {
|
|
398
|
-
before?: Layer;
|
|
399
|
-
});
|