olamaps-web-sdk 1.1.3 → 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/dist/OlaMaps-CyKBhQoC.js +33122 -0
- package/dist/index.d.ts +557 -20
- package/dist/index.js +157 -54622
- package/dist/maplibre-gl-BIFSxk4Y.js +23979 -0
- package/dist/olamaps-web-sdk.umd.js +207 -167
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,228 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { AlphaImage } from 'maplibre-gl';
|
|
2
|
+
import { AroundCenterOptions } from 'maplibre-gl';
|
|
3
|
+
import { BackgroundLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
4
|
+
import { BBox } from 'geojson';
|
|
5
|
+
import { BooleanTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
6
|
+
import { Bucket } from 'maplibre-gl';
|
|
7
|
+
import { CalculateTileZoomFunction } from 'maplibre-gl';
|
|
8
|
+
import { CameraExpression } from '@maplibre/maplibre-gl-style-spec';
|
|
9
|
+
import { CameraForBoundsOptions } from 'maplibre-gl';
|
|
10
|
+
import { CameraFunctionSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
11
|
+
import { CameraUpdateTransformFunction } from 'maplibre-gl';
|
|
12
|
+
import { CanonicalTileRange } from 'maplibre-gl';
|
|
13
|
+
import { CanvasSourceSpecification } from 'maplibre-gl';
|
|
14
|
+
import { CenterZoomBearing } from 'maplibre-gl';
|
|
15
|
+
import { CircleLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
16
|
+
import { CollatorExpressionSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
17
|
+
import { CollatorTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
18
|
+
import { Color } from '@maplibre/maplibre-gl-style-spec';
|
|
19
|
+
import { ColorArray } from '@maplibre/maplibre-gl-style-spec';
|
|
20
|
+
import { ColorArraySpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
21
|
+
import { ColorArrayTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
22
|
+
import { ColorReliefLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
23
|
+
import { ColorSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
24
|
+
import { ColorTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
25
|
+
import { CompositeExpression } from '@maplibre/maplibre-gl-style-spec';
|
|
26
|
+
import { CompositeFunctionSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
27
|
+
import { ConstantExpression } from '@maplibre/maplibre-gl-style-spec';
|
|
28
|
+
import { ControlPosition } from 'maplibre-gl';
|
|
29
|
+
import { Coordinates } from 'maplibre-gl';
|
|
30
|
+
import { CoveringTilesOptions } from 'maplibre-gl';
|
|
31
|
+
import { CreateTileMeshOptions } from 'maplibre-gl';
|
|
32
|
+
import { CustomLayerInterface } from 'maplibre-gl';
|
|
33
|
+
import { CustomRenderMethod } from 'maplibre-gl';
|
|
34
|
+
import { CustomRenderMethodInput } from 'maplibre-gl';
|
|
35
|
+
import { DashEntry } from 'maplibre-gl';
|
|
36
|
+
import { DataDrivenPropertyValueSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
37
|
+
import { Definition } from '@maplibre/maplibre-gl-style-spec';
|
|
38
|
+
import { DiffOperations } from '@maplibre/maplibre-gl-style-spec';
|
|
39
|
+
import { DiffOperationsMap } from '@maplibre/maplibre-gl-style-spec';
|
|
40
|
+
import { Dispatcher } from 'maplibre-gl';
|
|
41
|
+
import { DragPanOptions } from 'maplibre-gl';
|
|
42
|
+
import { ErrorTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
43
|
+
import { EvaluationContext } from '@maplibre/maplibre-gl-style-spec';
|
|
44
|
+
import { EvaluationKind } from '@maplibre/maplibre-gl-style-spec';
|
|
45
|
+
import { ExpectedTypes } from '@maplibre/maplibre-gl-style-spec';
|
|
46
|
+
import { ExpiryData } from 'maplibre-gl';
|
|
47
|
+
import { Expression } from '@maplibre/maplibre-gl-style-spec';
|
|
48
|
+
import { ExpressionFilterSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
49
|
+
import { ExpressionInputType } from '@maplibre/maplibre-gl-style-spec';
|
|
50
|
+
import { ExpressionParser } from '@maplibre/maplibre-gl-style-spec';
|
|
51
|
+
import { ExpressionRegistration } from '@maplibre/maplibre-gl-style-spec';
|
|
52
|
+
import { ExpressionRegistry } from '@maplibre/maplibre-gl-style-spec';
|
|
53
|
+
import { ExpressionSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
54
|
+
import { ExpressionSpecificationDefinition } from '@maplibre/maplibre-gl-style-spec';
|
|
55
|
+
import { ExpressionType } from '@maplibre/maplibre-gl-style-spec';
|
|
56
|
+
import { Feature } from '@maplibre/maplibre-gl-style-spec';
|
|
57
|
+
import { FeatureCollection } from 'geojson';
|
|
58
|
+
import { FeatureFilter } from '@maplibre/maplibre-gl-style-spec';
|
|
59
|
+
import { FeatureIdentifier } from 'maplibre-gl';
|
|
60
|
+
import { FeatureIndex } from 'maplibre-gl';
|
|
61
|
+
import { FeatureState } from '@maplibre/maplibre-gl-style-spec';
|
|
62
|
+
import { FillExtrusionLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
63
|
+
import { FillLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
64
|
+
import { FilterExpression } from '@maplibre/maplibre-gl-style-spec';
|
|
65
|
+
import { FilterSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
66
|
+
import { Formatted } from '@maplibre/maplibre-gl-style-spec';
|
|
67
|
+
import { FormattedSection } from '@maplibre/maplibre-gl-style-spec';
|
|
68
|
+
import { FormattedSectionExpression } from '@maplibre/maplibre-gl-style-spec';
|
|
69
|
+
import { FormattedSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
70
|
+
import { FormattedTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
71
|
+
import { GeoJSON as GeoJSON_2 } from 'geojson';
|
|
72
|
+
import { GeoJSONFeature } from 'maplibre-gl';
|
|
73
|
+
import { GeoJSONFeatureDiff } from 'maplibre-gl';
|
|
74
|
+
import { GeoJSONFeatureId } from 'maplibre-gl';
|
|
75
|
+
import { GeoJsonGeometryTypes } from 'geojson';
|
|
76
|
+
import { GeoJsonObject } from 'geojson';
|
|
77
|
+
import { GeoJsonProperties } from 'geojson';
|
|
78
|
+
import { GeoJSONSourceDiff } from 'maplibre-gl';
|
|
79
|
+
import { GeoJSONSourceSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
80
|
+
import { GeoJsonTypes } from 'geojson';
|
|
81
|
+
import { Geometry } from 'geojson';
|
|
82
|
+
import { GeometryCollection } from 'geojson';
|
|
83
|
+
import { GeometryObject } from 'geojson';
|
|
84
|
+
import { GestureOptions } from 'maplibre-gl';
|
|
85
|
+
import { GlyphPosition } from 'maplibre-gl';
|
|
86
|
+
import { GlyphPositions } from 'maplibre-gl';
|
|
87
|
+
import { Handler } from 'maplibre-gl';
|
|
88
|
+
import { HandlerResult } from 'maplibre-gl';
|
|
89
|
+
import { HCLColor } from '@maplibre/maplibre-gl-style-spec';
|
|
90
|
+
import { HeatmapLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
91
|
+
import { HillshadeLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
92
|
+
import { IActor } from 'maplibre-gl';
|
|
93
|
+
import { ICanonicalTileID } from '@maplibre/maplibre-gl-style-spec';
|
|
94
|
+
import { ILngLat } from '@maplibre/maplibre-gl-style-spec';
|
|
95
|
+
import { ILngLatLike } from '@maplibre/maplibre-gl-style-spec';
|
|
96
|
+
import { ImageAtlas } from 'maplibre-gl';
|
|
97
|
+
import { ImageSourceSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
98
|
+
import { IMercatorCoordinate } from '@maplibre/maplibre-gl-style-spec';
|
|
99
|
+
import { IndicesType } from 'maplibre-gl';
|
|
100
|
+
import { InterpolationColorSpace } from '@maplibre/maplibre-gl-style-spec';
|
|
101
|
+
import { InterpolationSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
102
|
+
import { InterpolationType } from '@maplibre/maplibre-gl-style-spec';
|
|
103
|
+
import { LABColor } from '@maplibre/maplibre-gl-style-spec';
|
|
104
|
+
import { LayerWithRef } from '@maplibre/maplibre-gl-style-spec';
|
|
105
|
+
import { LegacyFilterSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
106
|
+
import { LightSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
107
|
+
import { LineLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
108
|
+
import { LineString } from 'geojson';
|
|
109
|
+
import { Listener } from 'maplibre-gl';
|
|
110
|
+
import { LngLatBoundsLike } from 'maplibre-gl';
|
|
111
|
+
import { LngLatLike } from 'maplibre-gl';
|
|
112
|
+
import { MapContextEvent } from 'maplibre-gl';
|
|
113
|
+
import { MapDataEvent } from 'maplibre-gl';
|
|
114
|
+
import { MapEventType } from 'maplibre-gl';
|
|
115
|
+
import { MapGeoJSONFeature } from 'maplibre-gl';
|
|
116
|
+
import { MapLayerEventType } from 'maplibre-gl';
|
|
117
|
+
import { MapLayerMouseEvent } from 'maplibre-gl';
|
|
118
|
+
import { MapLayerTouchEvent } from 'maplibre-gl';
|
|
119
|
+
import { MapLibreZoomEvent } from 'maplibre-gl';
|
|
120
|
+
import { MapProjectionEvent } from 'maplibre-gl';
|
|
121
|
+
import { MapSourceDataEvent } from 'maplibre-gl';
|
|
122
|
+
import { MapSourceDataType } from 'maplibre-gl';
|
|
123
|
+
import { MapStyleDataEvent } from 'maplibre-gl';
|
|
124
|
+
import { MapStyleImageMissingEvent } from 'maplibre-gl';
|
|
125
|
+
import { MapTerrainEvent } from 'maplibre-gl';
|
|
126
|
+
import { MessageType } from 'maplibre-gl';
|
|
127
|
+
import { MultiLineString } from 'geojson';
|
|
128
|
+
import { MultiPoint } from 'geojson';
|
|
129
|
+
import { MultiPolygon } from 'geojson';
|
|
130
|
+
import { NullTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
131
|
+
import { NumberArray } from '@maplibre/maplibre-gl-style-spec';
|
|
132
|
+
import { NumberArraySpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
133
|
+
import { NumberArrayTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
134
|
+
import { NumberTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
135
|
+
import { ObjectTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
6
136
|
import * as OlaMapsGl from 'maplibre-gl';
|
|
7
|
-
import {
|
|
137
|
+
import { OverscaledTileID } from 'maplibre-gl';
|
|
138
|
+
import { Padding } from '@maplibre/maplibre-gl-style-spec';
|
|
139
|
+
import { PaddingSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
140
|
+
import { PaddingTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
141
|
+
import { ParsingError } from '@maplibre/maplibre-gl-style-spec';
|
|
142
|
+
import { Point } from 'geojson';
|
|
143
|
+
import { Point2D } from '@maplibre/maplibre-gl-style-spec';
|
|
144
|
+
import { PointLike } from 'maplibre-gl';
|
|
145
|
+
import { Polygon } from 'geojson';
|
|
146
|
+
import { Position } from 'geojson';
|
|
147
|
+
import { ProjectionData } from 'maplibre-gl';
|
|
148
|
+
import { ProjectionDefinition } from '@maplibre/maplibre-gl-style-spec';
|
|
149
|
+
import { ProjectionDefinitionT } from '@maplibre/maplibre-gl-style-spec';
|
|
150
|
+
import { ProjectionDefinitionTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
151
|
+
import { ProjectionSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
152
|
+
import { PromoteIdSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
153
|
+
import { PropertyCallback } from '@maplibre/maplibre-gl-style-spec';
|
|
154
|
+
import { PropertyValueSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
155
|
+
import { QueryRenderedFeaturesOptions } from 'maplibre-gl';
|
|
156
|
+
import { QuerySourceFeatureOptions } from 'maplibre-gl';
|
|
157
|
+
import { RasterDEMSourceSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
158
|
+
import { RasterLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
159
|
+
import { RasterSourceSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
160
|
+
import { RequestParameters } from 'maplibre-gl';
|
|
161
|
+
import { RequestResponseMessageMap } from 'maplibre-gl';
|
|
162
|
+
import { RequestTransformFunction } from 'maplibre-gl';
|
|
163
|
+
import { ResolvedImage } from '@maplibre/maplibre-gl-style-spec';
|
|
164
|
+
import { ResolvedImageOptions } from '@maplibre/maplibre-gl-style-spec';
|
|
165
|
+
import { ResolvedImageSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
166
|
+
import { ResolvedImageTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
167
|
+
import { ResourceType } from 'maplibre-gl';
|
|
168
|
+
import { RGBColor } from '@maplibre/maplibre-gl-style-spec';
|
|
169
|
+
import { SchemaSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
170
|
+
import { SetClusterOptions } from 'maplibre-gl';
|
|
171
|
+
import { SkySpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
172
|
+
import { Source } from 'maplibre-gl';
|
|
173
|
+
import { SourceClass } from 'maplibre-gl';
|
|
174
|
+
import { SourceExpression } from '@maplibre/maplibre-gl-style-spec';
|
|
175
|
+
import { SourceFunctionSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
176
|
+
import { SpriteSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
177
|
+
import { StringTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
178
|
+
import { StyleExpression } from '@maplibre/maplibre-gl-style-spec';
|
|
179
|
+
import { StyleGlyph } from 'maplibre-gl';
|
|
180
|
+
import { StyleImage } from 'maplibre-gl';
|
|
181
|
+
import { StyleImageData } from 'maplibre-gl';
|
|
182
|
+
import { StyleImageInterface } from 'maplibre-gl';
|
|
183
|
+
import { StyleImageMetadata } from 'maplibre-gl';
|
|
184
|
+
import { StyleOptions } from 'maplibre-gl';
|
|
185
|
+
import { StylePropertyExpression } from '@maplibre/maplibre-gl-style-spec';
|
|
186
|
+
import { StylePropertySpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
187
|
+
import { StyleSetterOptions } from 'maplibre-gl';
|
|
188
|
+
import { StyleSwapOptions } from 'maplibre-gl';
|
|
189
|
+
import { Subscription } from 'maplibre-gl';
|
|
190
|
+
import { SymbolLayerSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
191
|
+
import { TerrainSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
192
|
+
import { TextFit } from 'maplibre-gl';
|
|
193
|
+
import { Tile } from 'maplibre-gl';
|
|
194
|
+
import { TileMesh } from 'maplibre-gl';
|
|
195
|
+
import { TransformConstrainFunction } from 'maplibre-gl';
|
|
196
|
+
import { TransformStyleFunction } from 'maplibre-gl';
|
|
197
|
+
import { TransitionSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
198
|
+
import { Type } from '@maplibre/maplibre-gl-style-spec';
|
|
199
|
+
import { Unit } from 'maplibre-gl';
|
|
200
|
+
import { UpdateImageOptions } from 'maplibre-gl';
|
|
201
|
+
import { ValidationError } from '@maplibre/maplibre-gl-style-spec';
|
|
202
|
+
import { ValueTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
203
|
+
import { Varargs } from '@maplibre/maplibre-gl-style-spec';
|
|
204
|
+
import { VariableAnchorOffsetCollection } from '@maplibre/maplibre-gl-style-spec';
|
|
205
|
+
import { VariableAnchorOffsetCollectionTypeT } from '@maplibre/maplibre-gl-style-spec';
|
|
206
|
+
import { VectorSourceSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
207
|
+
import { VerticalAlign } from '@maplibre/maplibre-gl-style-spec';
|
|
208
|
+
import { VideoSourceSpecification } from '@maplibre/maplibre-gl-style-spec';
|
|
209
|
+
import { WebGLContextAttributesWithType } from 'maplibre-gl';
|
|
210
|
+
import { WorkerTileResult } from 'maplibre-gl';
|
|
8
211
|
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
212
|
+
export declare const default3dTIleset = "https://api.olamaps.io/tiles/vector/v1/3dtiles/tileset.json";
|
|
213
|
+
|
|
214
|
+
export declare const defaultStyleJson = "https://api.olamaps.io/tiles/vector/v1/styles/default-light-standard/style.json?key=0.4.0";
|
|
215
|
+
|
|
216
|
+
export declare const getCookie: (name: string) => string;
|
|
217
|
+
|
|
218
|
+
export declare const getOlaMapIcon: (oemColor: string) => string;
|
|
219
|
+
|
|
220
|
+
declare interface MapStyle {
|
|
221
|
+
id: string;
|
|
222
|
+
styleJson: string;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export declare type mapStyleIds = "bolt-dark" | "bolt-light" | "eclipse-dark-lite" | "eclipse-dark-standard" | "eclipse-dark-full" | "eclipse-light-lite" | "eclipse-light-standard" | "eclipse-light-full" | "vintage-dark" | "vintage-light" | "positron" | "osm-bright" | "osm-basic" | "dark-matter" | "fiord-color" | "default-light-lite" | "default-light-standard" | "default-ultra-light-standard" | "default-light-standard-hi" | "default-light-standard-kn" | "default-light-standard-mr" | "default-light-standard-te" | "default-light-standard-ta" | "default-light-standard-ml" | "default-light-standard-regional" | "default-light-full" | "default-dark-lite" | "default-dark-standard" | "default-dark-standard-hi" | "default-dark-standard-mr" | "default-dark-standard-kn" | "default-dark-standard-ta" | "default-dark-standard-te" | "default-dark-standard-ride-stat" | "default-dark-full" | "default-earth-lite" | "default-earth-standard" | "default-earth-full" | "silver-osm";
|
|
12
226
|
|
|
13
227
|
declare interface olaMapProps {
|
|
14
228
|
apiKey: string;
|
|
@@ -18,23 +232,346 @@ declare interface olaMapProps {
|
|
|
18
232
|
}
|
|
19
233
|
|
|
20
234
|
export declare class OlaMaps {
|
|
21
|
-
private olaMaps;
|
|
22
235
|
private apiKey;
|
|
23
236
|
private accessToken;
|
|
24
237
|
mode: string;
|
|
25
238
|
private threedTileset;
|
|
239
|
+
private olaMaps;
|
|
26
240
|
constructor({ apiKey, accessToken, mode, threedTileset }: olaMapProps);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
addGeolocateControls(options: GeolocateControlOptions): OlaMapsGl.GeolocateControl;
|
|
34
|
-
getMercatorCoordinate(): typeof OlaMapsGl.MercatorCoordinate;
|
|
35
|
-
addMarker(options?: MarkerOptions): OlaMapsGl.Marker;
|
|
36
|
-
addPopup(options?: PopupOptions): OlaMapsGl.Popup;
|
|
241
|
+
init(options?: any): Promise<any>;
|
|
242
|
+
addNavigationControls(options?: any): any;
|
|
243
|
+
addGeolocateControls(options: any): any;
|
|
244
|
+
getMercatorCoordinate(): any;
|
|
245
|
+
addMarker(options?: any): any;
|
|
246
|
+
addPopup(options?: any): any;
|
|
37
247
|
getStaticMap(url: string, elementID: string): void;
|
|
248
|
+
private fetchStaticMap;
|
|
249
|
+
private static _marker;
|
|
250
|
+
private static _popup;
|
|
251
|
+
private static _navigationControl;
|
|
252
|
+
private static _geolocateControl;
|
|
253
|
+
private static _scaleControl;
|
|
254
|
+
private static _fullscreenControl;
|
|
255
|
+
private static _attributionControl;
|
|
256
|
+
private static _terrainControl;
|
|
257
|
+
private static _lngLat;
|
|
258
|
+
private static _lngLatBounds;
|
|
259
|
+
private static _point;
|
|
260
|
+
private static _mercatorCoordinate;
|
|
261
|
+
private static _mapMouseEvent;
|
|
262
|
+
private static _mapTouchEvent;
|
|
263
|
+
private static _mapWheelEvent;
|
|
264
|
+
private static _ajaxError;
|
|
265
|
+
static get Marker(): any;
|
|
266
|
+
static get Popup(): any;
|
|
267
|
+
static get NavigationControl(): any;
|
|
268
|
+
static get GeolocateControl(): any;
|
|
269
|
+
static get ScaleControl(): any;
|
|
270
|
+
private static createMockConstructor;
|
|
271
|
+
static get FullscreenControl(): any;
|
|
272
|
+
static get AttributionControl(): any;
|
|
273
|
+
static get TerrainControl(): any;
|
|
274
|
+
static get LngLat(): any;
|
|
275
|
+
static get LngLatBounds(): any;
|
|
276
|
+
static get Point(): any;
|
|
277
|
+
static get MercatorCoordinate(): any;
|
|
278
|
+
static get MapMouseEvent(): any;
|
|
279
|
+
static get MapTouchEvent(): any;
|
|
280
|
+
static get MapWheelEvent(): any;
|
|
281
|
+
static get AJAXError(): any;
|
|
282
|
+
private static initializeStaticProperties;
|
|
38
283
|
}
|
|
39
284
|
|
|
285
|
+
export declare type OlaMapStyle = MapStyle[];
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* OlaMapsWeb namespace - Contains ONLY type definitions for MapLibre GL components
|
|
289
|
+
*
|
|
290
|
+
* Usage:
|
|
291
|
+
* ```typescript
|
|
292
|
+
* // Use for TypeScript type annotations
|
|
293
|
+
* const marker: OlaMapsWeb.Marker = new OlaMaps.Marker();
|
|
294
|
+
* const map: OlaMapsWeb.Map = await olaMaps.init();
|
|
295
|
+
* const options: OlaMapsWeb.NavigationControlOptions = { showCompass: true };
|
|
296
|
+
* ```
|
|
297
|
+
*/
|
|
298
|
+
export declare namespace OlaMapsWeb {
|
|
299
|
+
export type Marker = OlaMapsGl.Marker;
|
|
300
|
+
export type Popup = OlaMapsGl.Popup;
|
|
301
|
+
export type NavigationControl = OlaMapsGl.NavigationControl;
|
|
302
|
+
export type GeolocateControl = OlaMapsGl.GeolocateControl;
|
|
303
|
+
export type ScaleControl = OlaMapsGl.ScaleControl;
|
|
304
|
+
export type FullscreenControl = OlaMapsGl.FullscreenControl;
|
|
305
|
+
export type AttributionControl = OlaMapsGl.AttributionControl;
|
|
306
|
+
export type TerrainControl = OlaMapsGl.TerrainControl;
|
|
307
|
+
export type LogoControl = OlaMapsGl.LogoControl;
|
|
308
|
+
export type GlobeControl = OlaMapsGl.GlobeControl;
|
|
309
|
+
export type IControl = OlaMapsGl.IControl;
|
|
310
|
+
export type Map = OlaMapsGl.Map;
|
|
311
|
+
export type MapOptions = OlaMapsGl.MapOptions;
|
|
312
|
+
export type MarkerOptions = OlaMapsGl.MarkerOptions;
|
|
313
|
+
export type PopupOptions = OlaMapsGl.PopupOptions;
|
|
314
|
+
export type NavigationControlOptions = OlaMapsGl.NavigationControlOptions;
|
|
315
|
+
export type GeolocateControlOptions = OlaMapsGl.GeolocateControlOptions;
|
|
316
|
+
export type ScaleControlOptions = OlaMapsGl.ScaleControlOptions;
|
|
317
|
+
export type FullscreenControlOptions = OlaMapsGl.FullscreenControlOptions;
|
|
318
|
+
export type AttributionControlOptions = OlaMapsGl.AttributionControlOptions;
|
|
319
|
+
export type LogoControlOptions = OlaMapsGl.LogoControlOptions;
|
|
320
|
+
export type LngLat = OlaMapsGl.LngLat;
|
|
321
|
+
export type LngLatBounds = OlaMapsGl.LngLatBounds;
|
|
322
|
+
export type Point = OlaMapsGl.Point;
|
|
323
|
+
export type MercatorCoordinate = OlaMapsGl.MercatorCoordinate;
|
|
324
|
+
export type EdgeInsets = OlaMapsGl.EdgeInsets;
|
|
325
|
+
export type PaddingOptions = OlaMapsGl.PaddingOptions;
|
|
326
|
+
export type Offset = OlaMapsGl.Offset;
|
|
327
|
+
export type Alignment = OlaMapsGl.Alignment;
|
|
328
|
+
export type PositionAnchor = OlaMapsGl.PositionAnchor;
|
|
329
|
+
export type GeoJSONSource = OlaMapsGl.GeoJSONSource;
|
|
330
|
+
export type VectorTileSource = OlaMapsGl.VectorTileSource;
|
|
331
|
+
export type RasterTileSource = OlaMapsGl.RasterTileSource;
|
|
332
|
+
export type RasterDEMTileSource = OlaMapsGl.RasterDEMTileSource;
|
|
333
|
+
export type ImageSource = OlaMapsGl.ImageSource;
|
|
334
|
+
export type VideoSource = OlaMapsGl.VideoSource;
|
|
335
|
+
export type CanvasSource = OlaMapsGl.CanvasSource;
|
|
336
|
+
export type MapMouseEvent = OlaMapsGl.MapMouseEvent;
|
|
337
|
+
export type MapTouchEvent = OlaMapsGl.MapTouchEvent;
|
|
338
|
+
export type MapWheelEvent = OlaMapsGl.MapWheelEvent;
|
|
339
|
+
export type Event = OlaMapsGl.Event;
|
|
340
|
+
export type Evented = OlaMapsGl.Evented;
|
|
341
|
+
export type AJAXError = OlaMapsGl.AJAXError;
|
|
342
|
+
export type CameraOptions = OlaMapsGl.CameraOptions;
|
|
343
|
+
export type AnimationOptions = OlaMapsGl.AnimationOptions;
|
|
344
|
+
export type JumpToOptions = OlaMapsGl.JumpToOptions;
|
|
345
|
+
export type EaseToOptions = OlaMapsGl.EaseToOptions;
|
|
346
|
+
export type FlyToOptions = OlaMapsGl.FlyToOptions;
|
|
347
|
+
export type FitBoundsOptions = OlaMapsGl.FitBoundsOptions;
|
|
348
|
+
export type StyleSpecification = OlaMapsGl.StyleSpecification;
|
|
349
|
+
export type LayerSpecification = OlaMapsGl.LayerSpecification;
|
|
350
|
+
export type SourceSpecification = OlaMapsGl.SourceSpecification;
|
|
351
|
+
export type Style = OlaMapsGl.Style;
|
|
352
|
+
export type PropertyValueSpecification<T> = PropertyValueSpecification<T>;
|
|
353
|
+
export type DataDrivenPropertyValueSpecification<T> = DataDrivenPropertyValueSpecification<T>;
|
|
354
|
+
export type CameraFunctionSpecification<T> = CameraFunctionSpecification<T>;
|
|
355
|
+
export type SourceFunctionSpecification<T> = SourceFunctionSpecification<T>;
|
|
356
|
+
export type CompositeFunctionSpecification<T> = CompositeFunctionSpecification<T>;
|
|
357
|
+
export type ExpressionParser = ExpressionParser;
|
|
358
|
+
export type BoxZoomHandler = OlaMapsGl.BoxZoomHandler;
|
|
359
|
+
export type CooperativeGesturesHandler = OlaMapsGl.CooperativeGesturesHandler;
|
|
360
|
+
export type DoubleClickZoomHandler = OlaMapsGl.DoubleClickZoomHandler;
|
|
361
|
+
export type DragPanHandler = OlaMapsGl.DragPanHandler;
|
|
362
|
+
export type DragRotateHandler = OlaMapsGl.DragRotateHandler;
|
|
363
|
+
export type KeyboardHandler = OlaMapsGl.KeyboardHandler;
|
|
364
|
+
export type ScrollZoomHandler = OlaMapsGl.ScrollZoomHandler;
|
|
365
|
+
export type TwoFingersTouchPitchHandler = OlaMapsGl.TwoFingersTouchPitchHandler;
|
|
366
|
+
export type TwoFingersTouchRotateHandler = OlaMapsGl.TwoFingersTouchRotateHandler;
|
|
367
|
+
export type TwoFingersTouchZoomHandler = OlaMapsGl.TwoFingersTouchZoomHandler;
|
|
368
|
+
export type TwoFingersTouchZoomRotateHandler = OlaMapsGl.TwoFingersTouchZoomRotateHandler;
|
|
369
|
+
export type Hash = OlaMapsGl.Hash;
|
|
370
|
+
export type GeoJSON = GeoJSON_2;
|
|
371
|
+
export type Geometry = Geometry;
|
|
372
|
+
export type GeometryCollection = GeometryCollection;
|
|
373
|
+
export type GeoJSONPoint = Point;
|
|
374
|
+
export type MultiPoint = MultiPoint;
|
|
375
|
+
export type LineString = LineString;
|
|
376
|
+
export type MultiLineString = MultiLineString;
|
|
377
|
+
export type Polygon = Polygon;
|
|
378
|
+
export type MultiPolygon = MultiPolygon;
|
|
379
|
+
export type FeatureCollection = FeatureCollection;
|
|
380
|
+
export type GeoJsonProperties = GeoJsonProperties;
|
|
381
|
+
export type Position = Position;
|
|
382
|
+
export type BBox = BBox;
|
|
383
|
+
export type ExpiryData = ExpiryData;
|
|
384
|
+
export type RequestParameters = RequestParameters;
|
|
385
|
+
export type LngLatLike = LngLatLike;
|
|
386
|
+
export type OverscaledTileID = OverscaledTileID;
|
|
387
|
+
export type Listener = Listener;
|
|
388
|
+
export type AlphaImage = AlphaImage;
|
|
389
|
+
export type StyleImageData = StyleImageData;
|
|
390
|
+
export type TextFit = TextFit;
|
|
391
|
+
export type StyleImageMetadata = StyleImageMetadata;
|
|
392
|
+
export type StyleImage = StyleImage;
|
|
393
|
+
export type StyleImageInterface = StyleImageInterface;
|
|
394
|
+
export type MapGeoJSONFeature = MapGeoJSONFeature;
|
|
395
|
+
export type GeoJSONFeature = GeoJSONFeature;
|
|
396
|
+
export type LngLatBoundsLike = LngLatBoundsLike;
|
|
397
|
+
export type Dispatcher = Dispatcher;
|
|
398
|
+
export type GeoJSONFeatureId = GeoJSONFeatureId;
|
|
399
|
+
export type GeoJSONSourceDiff = GeoJSONSourceDiff;
|
|
400
|
+
export type GeoJSONFeatureDiff = GeoJSONFeatureDiff;
|
|
401
|
+
export type SetClusterOptions = SetClusterOptions;
|
|
402
|
+
export type Coordinates = Coordinates;
|
|
403
|
+
export type UpdateImageOptions = UpdateImageOptions;
|
|
404
|
+
export type CanonicalTileRange = CanonicalTileRange;
|
|
405
|
+
export type CanvasSourceSpecification = CanvasSourceSpecification;
|
|
406
|
+
export type CoveringTilesOptions = CoveringTilesOptions;
|
|
407
|
+
export type CalculateTileZoomFunction = CalculateTileZoomFunction;
|
|
408
|
+
export type Source = Source;
|
|
409
|
+
export type SourceClass = SourceClass;
|
|
410
|
+
export type StyleGlyph = StyleGlyph;
|
|
411
|
+
export type GlyphPosition = GlyphPosition;
|
|
412
|
+
export type GlyphPositions = GlyphPositions;
|
|
413
|
+
export type DashEntry = DashEntry;
|
|
414
|
+
export type ResourceType = ResourceType;
|
|
415
|
+
export type RequestTransformFunction = RequestTransformFunction;
|
|
416
|
+
export type ProjectionData = ProjectionData;
|
|
417
|
+
export type TransformConstrainFunction = TransformConstrainFunction;
|
|
418
|
+
export type FeatureIndex = FeatureIndex;
|
|
419
|
+
export type WorkerTileResult = WorkerTileResult;
|
|
420
|
+
export type QueryRenderedFeaturesOptions = QueryRenderedFeaturesOptions;
|
|
421
|
+
export type QuerySourceFeatureOptions = QuerySourceFeatureOptions;
|
|
422
|
+
export type Tile = Tile;
|
|
423
|
+
export type ImageAtlas = ImageAtlas;
|
|
424
|
+
export type CustomRenderMethodInput = CustomRenderMethodInput;
|
|
425
|
+
export type CustomRenderMethod = CustomRenderMethod;
|
|
426
|
+
export type CustomLayerInterface = CustomLayerInterface;
|
|
427
|
+
export type FeatureIdentifier = FeatureIdentifier;
|
|
428
|
+
export type StyleOptions = StyleOptions;
|
|
429
|
+
export type StyleSetterOptions = StyleSetterOptions;
|
|
430
|
+
export type TransformStyleFunction = TransformStyleFunction;
|
|
431
|
+
export type StyleSwapOptions = StyleSwapOptions;
|
|
432
|
+
export type Bucket = Bucket;
|
|
433
|
+
export type MessageType = MessageType;
|
|
434
|
+
export type RequestResponseMessageMap = RequestResponseMessageMap;
|
|
435
|
+
export type IActor = IActor;
|
|
436
|
+
export type Subscription = Subscription;
|
|
437
|
+
export type DragPanOptions = DragPanOptions;
|
|
438
|
+
export type PointLike = PointLike;
|
|
439
|
+
export type CenterZoomBearing = CenterZoomBearing;
|
|
440
|
+
export type CameraForBoundsOptions = CameraForBoundsOptions;
|
|
441
|
+
export type CameraUpdateTransformFunction = CameraUpdateTransformFunction;
|
|
442
|
+
export type Handler = Handler;
|
|
443
|
+
export type HandlerResult = HandlerResult;
|
|
444
|
+
export type ControlPosition = ControlPosition;
|
|
445
|
+
export type MapLayerMouseEvent = MapLayerMouseEvent;
|
|
446
|
+
export type MapLayerTouchEvent = MapLayerTouchEvent;
|
|
447
|
+
export type MapSourceDataType = MapSourceDataType;
|
|
448
|
+
export type MapLayerEventType = MapLayerEventType;
|
|
449
|
+
export type MapEventType = MapEventType;
|
|
450
|
+
export type MapStyleDataEvent = MapStyleDataEvent;
|
|
451
|
+
export type MapSourceDataEvent = MapSourceDataEvent;
|
|
452
|
+
export type MapLibreZoomEvent = MapLibreZoomEvent;
|
|
453
|
+
export type MapDataEvent = MapDataEvent;
|
|
454
|
+
export type MapTerrainEvent = MapTerrainEvent;
|
|
455
|
+
export type MapProjectionEvent = MapProjectionEvent;
|
|
456
|
+
export type MapContextEvent = MapContextEvent;
|
|
457
|
+
export type MapStyleImageMissingEvent = MapStyleImageMissingEvent;
|
|
458
|
+
export type AroundCenterOptions = AroundCenterOptions;
|
|
459
|
+
export type GestureOptions = GestureOptions;
|
|
460
|
+
export type WebGLContextAttributesWithType = WebGLContextAttributesWithType;
|
|
461
|
+
export type Unit = Unit;
|
|
462
|
+
export type CreateTileMeshOptions = CreateTileMeshOptions;
|
|
463
|
+
export type TileMesh = TileMesh;
|
|
464
|
+
export type IndicesType = IndicesType;
|
|
465
|
+
export type ColorSpecification = ColorSpecification;
|
|
466
|
+
export type ProjectionDefinitionT = ProjectionDefinitionT;
|
|
467
|
+
export type PaddingSpecification = PaddingSpecification;
|
|
468
|
+
export type NumberArraySpecification = NumberArraySpecification;
|
|
469
|
+
export type ColorArraySpecification = ColorArraySpecification;
|
|
470
|
+
export type SpriteSpecification = SpriteSpecification;
|
|
471
|
+
export type FormattedSpecification = FormattedSpecification;
|
|
472
|
+
export type ResolvedImageSpecification = ResolvedImageSpecification;
|
|
473
|
+
export type PromoteIdSpecification = PromoteIdSpecification;
|
|
474
|
+
export type ExpressionInputType = ExpressionInputType;
|
|
475
|
+
export type CollatorExpressionSpecification = CollatorExpressionSpecification;
|
|
476
|
+
export type InterpolationSpecification = InterpolationSpecification;
|
|
477
|
+
export type ExpressionSpecification = ExpressionSpecification;
|
|
478
|
+
export type ExpressionFilterSpecification = ExpressionFilterSpecification;
|
|
479
|
+
export type LegacyFilterSpecification = LegacyFilterSpecification;
|
|
480
|
+
export type FilterSpecification = FilterSpecification;
|
|
481
|
+
export type TransitionSpecification = TransitionSpecification;
|
|
482
|
+
export type SchemaSpecification = SchemaSpecification;
|
|
483
|
+
export type LightSpecification = LightSpecification;
|
|
484
|
+
export type SkySpecification = SkySpecification;
|
|
485
|
+
export type ProjectionSpecification = ProjectionSpecification;
|
|
486
|
+
export type TerrainSpecification = TerrainSpecification;
|
|
487
|
+
export type VectorSourceSpecification = VectorSourceSpecification;
|
|
488
|
+
export type RasterSourceSpecification = RasterSourceSpecification;
|
|
489
|
+
export type RasterDEMSourceSpecification = RasterDEMSourceSpecification;
|
|
490
|
+
export type GeoJSONSourceSpecification = GeoJSONSourceSpecification;
|
|
491
|
+
export type VideoSourceSpecification = VideoSourceSpecification;
|
|
492
|
+
export type ImageSourceSpecification = ImageSourceSpecification;
|
|
493
|
+
export type FillLayerSpecification = FillLayerSpecification;
|
|
494
|
+
export type LineLayerSpecification = LineLayerSpecification;
|
|
495
|
+
export type SymbolLayerSpecification = SymbolLayerSpecification;
|
|
496
|
+
export type CircleLayerSpecification = CircleLayerSpecification;
|
|
497
|
+
export type HeatmapLayerSpecification = HeatmapLayerSpecification;
|
|
498
|
+
export type FillExtrusionLayerSpecification = FillExtrusionLayerSpecification;
|
|
499
|
+
export type RasterLayerSpecification = RasterLayerSpecification;
|
|
500
|
+
export type HillshadeLayerSpecification = HillshadeLayerSpecification;
|
|
501
|
+
export type ColorReliefLayerSpecification = ColorReliefLayerSpecification;
|
|
502
|
+
export type BackgroundLayerSpecification = BackgroundLayerSpecification;
|
|
503
|
+
export type LayerWithRef = LayerWithRef;
|
|
504
|
+
export type DiffOperationsMap = DiffOperationsMap;
|
|
505
|
+
export type DiffOperations = DiffOperations;
|
|
506
|
+
export type ValidationError = ValidationError;
|
|
507
|
+
export type ParsingError = ParsingError;
|
|
508
|
+
export type RGBColor = RGBColor;
|
|
509
|
+
export type HCLColor = HCLColor;
|
|
510
|
+
export type LABColor = LABColor;
|
|
511
|
+
export type InterpolationColorSpace = InterpolationColorSpace;
|
|
512
|
+
export type Color = Color;
|
|
513
|
+
export type ResolvedImageOptions = ResolvedImageOptions;
|
|
514
|
+
export type ResolvedImage = ResolvedImage;
|
|
515
|
+
export type VerticalAlign = VerticalAlign;
|
|
516
|
+
export type FormattedSection = FormattedSection;
|
|
517
|
+
export type Formatted = Formatted;
|
|
518
|
+
export type Point2D = Point2D;
|
|
519
|
+
export type ICanonicalTileID = ICanonicalTileID;
|
|
520
|
+
export type IMercatorCoordinate = IMercatorCoordinate;
|
|
521
|
+
export type ILngLat = ILngLat;
|
|
522
|
+
export type ILngLatLike = ILngLatLike;
|
|
523
|
+
export type EvaluationContext = EvaluationContext;
|
|
524
|
+
export type NullTypeT = NullTypeT;
|
|
525
|
+
export type NumberTypeT = NumberTypeT;
|
|
526
|
+
export type StringTypeT = StringTypeT;
|
|
527
|
+
export type BooleanTypeT = BooleanTypeT;
|
|
528
|
+
export type ColorTypeT = ColorTypeT;
|
|
529
|
+
export type ProjectionDefinitionTypeT = ProjectionDefinitionTypeT;
|
|
530
|
+
export type ObjectTypeT = ObjectTypeT;
|
|
531
|
+
export type ValueTypeT = ValueTypeT;
|
|
532
|
+
export type ErrorTypeT = ErrorTypeT;
|
|
533
|
+
export type CollatorTypeT = CollatorTypeT;
|
|
534
|
+
export type FormattedTypeT = FormattedTypeT;
|
|
535
|
+
export type PaddingTypeT = PaddingTypeT;
|
|
536
|
+
export type NumberArrayTypeT = NumberArrayTypeT;
|
|
537
|
+
export type ColorArrayTypeT = ColorArrayTypeT;
|
|
538
|
+
export type ResolvedImageTypeT = ResolvedImageTypeT;
|
|
539
|
+
export type VariableAnchorOffsetCollectionTypeT = VariableAnchorOffsetCollectionTypeT;
|
|
540
|
+
export type EvaluationKind = EvaluationKind;
|
|
541
|
+
export type Type = Type;
|
|
542
|
+
export type Padding = Padding;
|
|
543
|
+
export type NumberArray = NumberArray;
|
|
544
|
+
export type ColorArray = ColorArray;
|
|
545
|
+
export type VariableAnchorOffsetCollection = VariableAnchorOffsetCollection;
|
|
546
|
+
export type ProjectionDefinition = ProjectionDefinition;
|
|
547
|
+
export type Expression = Expression;
|
|
548
|
+
export type ExpressionRegistration = ExpressionRegistration;
|
|
549
|
+
export type ExpressionRegistry = ExpressionRegistry;
|
|
550
|
+
export type InterpolationType = InterpolationType;
|
|
551
|
+
export type Feature = Feature;
|
|
552
|
+
export type FeatureState = FeatureState;
|
|
553
|
+
export type StyleExpression = StyleExpression;
|
|
554
|
+
export type ConstantExpression = ConstantExpression;
|
|
555
|
+
export type SourceExpression = SourceExpression;
|
|
556
|
+
export type CameraExpression = CameraExpression;
|
|
557
|
+
export type CompositeExpression = CompositeExpression;
|
|
558
|
+
export type StylePropertyExpression = StylePropertyExpression;
|
|
559
|
+
export type FilterExpression = FilterExpression;
|
|
560
|
+
export type FeatureFilter = FeatureFilter;
|
|
561
|
+
export type ExpectedTypes = ExpectedTypes;
|
|
562
|
+
export type PropertyCallback = PropertyCallback;
|
|
563
|
+
export type FormattedSectionExpression = FormattedSectionExpression;
|
|
564
|
+
export type Varargs = Varargs;
|
|
565
|
+
export type Definition = Definition;
|
|
566
|
+
export type ExpressionType = ExpressionType;
|
|
567
|
+
export type ExpressionSpecificationDefinition = ExpressionSpecificationDefinition;
|
|
568
|
+
export type StylePropertySpecification = StylePropertySpecification;
|
|
569
|
+
export type GeoJsonGeometryTypes = GeoJsonGeometryTypes;
|
|
570
|
+
export type GeoJsonTypes = GeoJsonTypes;
|
|
571
|
+
export type GeoJsonObject = GeoJsonObject;
|
|
572
|
+
export type GeometryObject = GeometryObject;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export declare const setCookie: (name: string, value: string, days?: number) => void;
|
|
576
|
+
|
|
40
577
|
export { }
|