mapicgc-gl-js 1.0.8 → 1.1.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.
@@ -0,0 +1,2111 @@
1
+ ## Classes
2
+
3
+ <dl>
4
+ <dt><a href="#LngLatBounds">LngLatBounds</a></dt>
5
+ <dd><p>LngLatBounds</p>
6
+ </dd>
7
+ </dl>
8
+
9
+ ## Functions
10
+
11
+ <dl>
12
+ <dt><a href="#addGeocoderICGC">addGeocoderICGC([options], [position])</a> ⇒ <code>Object</code></dt>
13
+ <dd><p>Add geocoder with customizable options.</p>
14
+ </dd>
15
+ <dt><a href="#getConfigStyles">getConfigStyles()</a> ⇒ <code>Array</code></dt>
16
+ <dd><p>Retrieves the available base styles from default options.</p>
17
+ </dd>
18
+ <dt><a href="#getConfigWMSLayers">getConfigWMSLayers()</a> ⇒ <code>Array</code></dt>
19
+ <dd><p>Retrieves the available WMS image layers from default options.</p>
20
+ </dd>
21
+ <dt><a href="#getConfigOrtoLayers">getConfigOrtoLayers()</a> ⇒ <code>Array</code></dt>
22
+ <dd><p>Retrieves the available orto image layers from default options.</p>
23
+ </dd>
24
+ <dt><a href="#getConfigVectorLayers">getConfigVectorLayers()</a> ⇒ <code>Array</code></dt>
25
+ <dd><p>Retrieves the available vector layers from default options.</p>
26
+ </dd>
27
+ <dt><a href="#getConfigVectorAdminLayers">getConfigVectorAdminLayers()</a> ⇒ <code>Array</code></dt>
28
+ <dd><p>Retrieves the available vector layers from default options.</p>
29
+ </dd>
30
+ <dt><a href="#getConfigFGBAdminLayers">getConfigFGBAdminLayers()</a> ⇒ <code>Array</code></dt>
31
+ <dd><p>Retrieves the available fgb layers from default options.</p>
32
+ </dd>
33
+ <dt><a href="#fetchData">fetchData(url, idLayer, options)</a></dt>
34
+ <dd><p>Fetches GeoJSON data from a URL and adds a corresponding layer to the map based on the specified geometry type.</p>
35
+ </dd>
36
+ <dt><a href="#fetchDataAndMenu">fetchDataAndMenu(url, idLayer, filterField, options)</a></dt>
37
+ <dd><p>Fetches GeoJSON data from a URL and adds a corresponding layer to the map based on the specified geometry type and adds to the Menu as a checkbox item.</p>
38
+ </dd>
39
+ <dt><a href="#on">on(type, func)</a></dt>
40
+ <dd><p>Adds an event listener to the map.</p>
41
+ </dd>
42
+ <dt><a href="#setStyle">setStyle(style, [options])</a></dt>
43
+ <dd><p>Sets the style of the map.</p>
44
+ </dd>
45
+ <dt><a href="#addControl">addControl(control, [position])</a></dt>
46
+ <dd><p>Adds a control to the map with the specified position.</p>
47
+ </dd>
48
+ <dt><a href="#setSky">setSky(options)</a></dt>
49
+ <dd><p>Sets the sky properties of the map.</p>
50
+ </dd>
51
+ <dt><a href="#addMouseCoordControl">addMouseCoordControl([position])</a></dt>
52
+ <dd><p>Adds a mouse coordinate control to the map.</p>
53
+ </dd>
54
+ <dt><a href="#addGeolocateControl">addGeolocateControl(options, [position])</a></dt>
55
+ <dd><p>Adds a geolocate control to the map.</p>
56
+ </dd>
57
+ <dt><a href="#addFullscreenControl">addFullscreenControl(options, [position])</a></dt>
58
+ <dd><p>Adds a fullscreen control to the map.</p>
59
+ </dd>
60
+ <dt><a href="#addLayer">addLayer(layer, layerIdOrder)</a></dt>
61
+ <dd><p>Adds a layer to the map.</p>
62
+ </dd>
63
+ <dt><a href="#addImage">addImage(id, image, options)</a> ⇒ <code>this</code></dt>
64
+ <dd><p>Adds an image to the map.</p>
65
+ </dd>
66
+ <dt><a href="#addSource">addSource(id, source)</a> ⇒ <code>this</code></dt>
67
+ <dd><p>Adds a source to the map.</p>
68
+ </dd>
69
+ <dt><a href="#addSprite">addSprite(id, url, options)</a> ⇒ <code>this</code></dt>
70
+ <dd><p>Adds a sprite to the map.</p>
71
+ </dd>
72
+ <dt><a href="#areTilesLoaded">areTilesLoaded()</a> ⇒ <code>boolean</code></dt>
73
+ <dd><p>Checks if all tiles in the viewport are loaded.</p>
74
+ </dd>
75
+ <dt><a href="#cameraForBounds">cameraForBounds(bounds, options)</a> ⇒ <code>CenterZoomBearing</code> | <code>undefined</code></dt>
76
+ <dd><p>Calculates the camera position for given bounds.</p>
77
+ </dd>
78
+ <dt><a href="#easeTo">easeTo(options, eventData)</a> ⇒ <code>this</code></dt>
79
+ <dd><p>Eases the camera to a new position.</p>
80
+ </dd>
81
+ <dt><a href="#fitBounds">fitBounds(bounds, options, eventData)</a> ⇒ <code>this</code></dt>
82
+ <dd><p>Fits the map to the given geographical bounds.</p>
83
+ </dd>
84
+ <dt><a href="#fitScreenCoordinates">fitScreenCoordinates(p0, p1, bearing, options, eventData)</a> ⇒ <code>this</code></dt>
85
+ <dd><p>Fits the map to the given screen coordinates.</p>
86
+ </dd>
87
+ <dt><a href="#flyTo">flyTo(options, eventData)</a> ⇒ <code>this</code></dt>
88
+ <dd><p>Flies the camera to a new position.</p>
89
+ </dd>
90
+ <dt><a href="#getBearing">getBearing()</a> ⇒ <code>number</code></dt>
91
+ <dd><p>Gets the current bearing of the map.</p>
92
+ </dd>
93
+ <dt><a href="#getBounds">getBounds()</a> ⇒ <code><a href="#LngLatBounds">LngLatBounds</a></code></dt>
94
+ <dd><p>Gets the current geographical bounds of the map.</p>
95
+ </dd>
96
+ <dt><a href="#getCameraTargetElevation">getCameraTargetElevation()</a> ⇒ <code>number</code></dt>
97
+ <dd><p>Gets the elevation for the point where the camera is looking.</p>
98
+ </dd>
99
+ <dt><a href="#getCanvas">getCanvas()</a> ⇒ <code>HTMLCanvasElement</code></dt>
100
+ <dd><p>Gets the map&#39;s <canvas> element.</p>
101
+ </dd>
102
+ <dt><a href="#getCanvasContainer">getCanvasContainer()</a> ⇒ <code>HTMLElement</code></dt>
103
+ <dd><p>Gets the HTML element containing the map&#39;s <canvas> element.</p>
104
+ </dd>
105
+ <dt><a href="#getCenter">getCenter()</a> ⇒ <code>LngLat</code></dt>
106
+ <dd><p>Returns the map&#39;s geographical centerpoint.</p>
107
+ </dd>
108
+ <dt><a href="#getContainer">getContainer()</a> ⇒ <code>HTMLElement</code></dt>
109
+ <dd><p>Returns the map&#39;s containing HTML element.</p>
110
+ </dd>
111
+ <dt><a href="#getFeatureState">getFeatureState(feature)</a> ⇒ <code>any</code></dt>
112
+ <dd><p>Gets the state of a feature.</p>
113
+ </dd>
114
+ <dt><a href="#getFilter">getFilter(layerId)</a> ⇒ <code>void</code> | <code>FilterSpecification</code></dt>
115
+ <dd><p>Returns the filter applied to the specified style layer.</p>
116
+ </dd>
117
+ <dt><a href="#getGlyphs">getGlyphs()</a> ⇒ <code>string</code></dt>
118
+ <dd><p>Returns the value of the style&#39;s glyphs URL.</p>
119
+ </dd>
120
+ <dt><a href="#getImage">getImage(id)</a> ⇒ <code>StyleImage</code></dt>
121
+ <dd><p>Returns an image currently available in the map.</p>
122
+ </dd>
123
+ <dt><a href="#getLayer">getLayer(id)</a> ⇒ <code>StyleLayer</code></dt>
124
+ <dd><p>Returns the layer with the specified ID in the map&#39;s style.</p>
125
+ </dd>
126
+ <dt><a href="#getLayersOrder">getLayersOrder()</a> ⇒ <code>Array.&lt;string&gt;</code></dt>
127
+ <dd><p>Return the ids of all layers currently in the style, including custom layers, in order.</p>
128
+ </dd>
129
+ <dt><a href="#getLayoutProperty">getLayoutProperty(layerId, name)</a> ⇒ <code>any</code></dt>
130
+ <dd><p>Returns the value of a layout property in the specified style layer.</p>
131
+ </dd>
132
+ <dt><a href="#getLight">getLight()</a> ⇒ <code>LightSpecification</code></dt>
133
+ <dd><p>Returns the value of the light object.</p>
134
+ </dd>
135
+ <dt><a href="#getMaxBounds">getMaxBounds()</a> ⇒ <code><a href="#LngLatBounds">LngLatBounds</a></code></dt>
136
+ <dd><p>Returns the maximum geographical bounds the map is constrained to.</p>
137
+ </dd>
138
+ <dt><a href="#getMaxPitch">getMaxPitch()</a> ⇒ <code>number</code></dt>
139
+ <dd><p>Returns the map&#39;s maximum allowable pitch.</p>
140
+ </dd>
141
+ <dt><a href="#getMaxZoom">getMaxZoom()</a> ⇒ <code>number</code></dt>
142
+ <dd><p>Returns the map&#39;s maximum allowable zoom level.</p>
143
+ </dd>
144
+ <dt><a href="#getMinPitch">getMinPitch()</a> ⇒ <code>number</code></dt>
145
+ <dd><p>Returns the map&#39;s minimum allowable pitch.</p>
146
+ </dd>
147
+ <dt><a href="#getMinZoom">getMinZoom()</a> ⇒ <code>number</code></dt>
148
+ <dd><p>Returns the map&#39;s minimum allowable zoom level.</p>
149
+ </dd>
150
+ <dt><a href="#getPadding">getPadding()</a> ⇒ <code>PaddingOptions</code></dt>
151
+ <dd><p>Returns the current padding applied around the map viewport.</p>
152
+ </dd>
153
+ <dt><a href="#getPaintProperty">getPaintProperty(layerId, name)</a> ⇒ <code>unknown</code></dt>
154
+ <dd><p>Returns the value of a paint property in the specified style layer.</p>
155
+ </dd>
156
+ <dt><a href="#getPitch">getPitch()</a> ⇒ <code>number</code></dt>
157
+ <dd><p>Returns the map&#39;s current pitch (tilt).</p>
158
+ </dd>
159
+ <dt><a href="#getPixelRatio">getPixelRatio()</a> ⇒ <code>number</code></dt>
160
+ <dd><p>Returns the map&#39;s pixel ratio.</p>
161
+ </dd>
162
+ <dt><a href="#getRenderWorldCopies">getRenderWorldCopies()</a> ⇒ <code>boolean</code></dt>
163
+ <dd><p>Returns the state of renderWorldCopies.</p>
164
+ </dd>
165
+ <dt><a href="#getSource">getSource(id)</a> ⇒ <code>Source</code></dt>
166
+ <dd><p>Returns the source with the specified ID in the map&#39;s style.</p>
167
+ </dd>
168
+ <dt><a href="#getSprite">getSprite()</a> ⇒ <code>Array.&lt;object&gt;</code></dt>
169
+ <dd><p>Returns the as-is value of the style&#39;s sprite.</p>
170
+ </dd>
171
+ <dt><a href="#getStyle">getStyle()</a> ⇒ <code>StyleSpecification</code></dt>
172
+ <dd><p>Returns the map&#39;s MapLibre style object.</p>
173
+ </dd>
174
+ <dt><a href="#getTerrain">getTerrain()</a> ⇒ <code>TerrainSpecification</code></dt>
175
+ <dd><p>Get the terrain-options if terrain is loaded.</p>
176
+ </dd>
177
+ <dt><a href="#getZoom">getZoom()</a> ⇒ <code>number</code></dt>
178
+ <dd><p>Returns the map&#39;s current zoom level.</p>
179
+ </dd>
180
+ <dt><a href="#hasControl">hasControl(control)</a> ⇒ <code>boolean</code></dt>
181
+ <dd><p>Checks if a control exists on the map.</p>
182
+ </dd>
183
+ <dt><a href="#hasImage">hasImage(id)</a> ⇒ <code>boolean</code></dt>
184
+ <dd><p>Check whether or not an image with a specific ID exists in the style.</p>
185
+ </dd>
186
+ <dt><a href="#isMoving">isMoving()</a> ⇒ <code>boolean</code></dt>
187
+ <dd><p>Returns true if the map is panning, zooming, rotating, or pitching due to a camera animation or user gesture.</p>
188
+ </dd>
189
+ <dt><a href="#isRotating">isRotating()</a> ⇒ <code>boolean</code></dt>
190
+ <dd><p>Returns true if the map is rotating due to a camera animation or user gesture.</p>
191
+ </dd>
192
+ <dt><a href="#isSourceLoaded">isSourceLoaded(id)</a> ⇒ <code>boolean</code></dt>
193
+ <dd><p>Returns a Boolean indicating whether the source is loaded.</p>
194
+ </dd>
195
+ <dt><a href="#isStyleLoaded">isStyleLoaded()</a> ⇒ <code>boolean</code> | <code>void</code></dt>
196
+ <dd><p>Returns a Boolean indicating whether the map&#39;s style is fully loaded.</p>
197
+ </dd>
198
+ <dt><a href="#isZooming">isZooming()</a> ⇒ <code>boolean</code></dt>
199
+ <dd><p>Returns true if the map is zooming due to a camera animation or user gesture.</p>
200
+ </dd>
201
+ <dt><a href="#jumpTo">jumpTo(options, [eventData])</a> ⇒ <code>this</code></dt>
202
+ <dd><p>Changes any combination of center, zoom, bearing, and pitch, without an animated transition.</p>
203
+ </dd>
204
+ <dt><a href="#listImages">listImages()</a> ⇒ <code>Array.&lt;string&gt;</code></dt>
205
+ <dd><p>Returns an Array of strings containing the IDs of all images currently available in the map.</p>
206
+ </dd>
207
+ <dt><a href="#listens">listens(type)</a> ⇒ <code>boolean</code></dt>
208
+ <dd><p>Returns a true if this instance of Evented or any forwardeed instances of Evented have a listener for the specified type.</p>
209
+ </dd>
210
+ <dt><a href="#loadImage">loadImage(url)</a> ⇒ <code>Promise.&lt;GetResourceResponse.&lt;(ImageBitmap|HTMLImageElement)&gt;&gt;</code></dt>
211
+ <dd><p>Load an image from an external URL to be used with Map#addImage.</p>
212
+ </dd>
213
+ <dt><a href="#loaded">loaded()</a> ⇒ <code>boolean</code></dt>
214
+ <dd><p>Returns a Boolean indicating whether the map is fully loaded.</p>
215
+ </dd>
216
+ <dt><a href="#addProtocol">addProtocol(customProtocol, loadFn)</a> ⇒ <code>void</code></dt>
217
+ <dd><p>Adds a custom load resource function that will be called when using a URL that starts with a custom URL schema.</p>
218
+ </dd>
219
+ <dt><a href="#moveLayer">moveLayer(id, [beforeId])</a> ⇒ <code>this</code></dt>
220
+ <dd><p>Moves a layer to a different z-position.</p>
221
+ </dd>
222
+ <dt><a href="#panBy">panBy(offset, [options], [eventData])</a> ⇒ <code>this</code></dt>
223
+ <dd><p>Pans the map by the specified offset.</p>
224
+ </dd>
225
+ <dt><a href="#panTo">panTo(lnglat, [options], [eventData])</a> ⇒ <code>this</code></dt>
226
+ <dd><p>Pans the map to the specified location with an animated transition.</p>
227
+ </dd>
228
+ <dt><a href="#project">project(lnglat)</a> ⇒ <code>Point</code></dt>
229
+ <dd><p>Returns a Point representing pixel coordinates, relative to the map&#39;s container, that correspond to the specified geographical location.</p>
230
+ </dd>
231
+ <dt><a href="#queryRenderedFeatures">queryRenderedFeatures([geometryOrOptions], [options])</a> ⇒ <code>Array</code></dt>
232
+ <dd><p>Queries rendered features within a specified geometry or bounding box.</p>
233
+ </dd>
234
+ <dt><a href="#querySourceFeatures">querySourceFeatures(sourceId, parameters)</a> ⇒ <code>Array</code></dt>
235
+ <dd><p>Queries source features within a specified source.</p>
236
+ </dd>
237
+ <dt><a href="#queryTerrainElevation">queryTerrainElevation(lngLatLike)</a> ⇒ <code>number</code></dt>
238
+ <dd><p>Queries the terrain elevation at a specified geographical location.</p>
239
+ </dd>
240
+ <dt><a href="#redraw">redraw()</a> ⇒ <code>this</code></dt>
241
+ <dd><p>Redraws the map.</p>
242
+ </dd>
243
+ <dt><a href="#remove">remove()</a> ⇒ <code>this</code></dt>
244
+ <dd><p>Removes the map from the DOM.</p>
245
+ </dd>
246
+ <dt><a href="#removeControl">removeControl(control)</a> ⇒ <code>this</code></dt>
247
+ <dd><p>Removes a control from the map.</p>
248
+ </dd>
249
+ <dt><a href="#removeFeatureState">removeFeatureState(target, [key])</a> ⇒ <code>this</code></dt>
250
+ <dd><p>Removes the state of a feature.</p>
251
+ </dd>
252
+ <dt><a href="#removeImage">removeImage(id)</a> ⇒ <code>this</code></dt>
253
+ <dd><p>Removes an image from the style&#39;s sprite.</p>
254
+ </dd>
255
+ <dt><a href="#removeLayer">removeLayer(idLayer)</a></dt>
256
+ <dd><p>Removes a layer from the map.</p>
257
+ </dd>
258
+ <dt><a href="#removeSource">removeSource(idLayer)</a></dt>
259
+ <dd><p>Removes a source from the map.</p>
260
+ </dd>
261
+ <dt><a href="#removeSprite">removeSprite(id)</a> ⇒ <code>this</code></dt>
262
+ <dd><p>Removes a sprite from the style.</p>
263
+ </dd>
264
+ <dt><a href="#resetNorth">resetNorth([options], [eventData])</a> ⇒ <code>this</code></dt>
265
+ <dd><p>Resets the map orientation so that north is up.</p>
266
+ </dd>
267
+ <dt><a href="#resetNorthPitch">resetNorthPitch([options], [eventData])</a> ⇒ <code>this</code></dt>
268
+ <dd><p>Resets the map orientation so that north is up and pitch is set to 0┬░.</p>
269
+ </dd>
270
+ <dt><a href="#resize">resize([eventData])</a> ⇒ <code>this</code></dt>
271
+ <dd><p>Resizes the map to fit its container.</p>
272
+ </dd>
273
+ <dt><a href="#rotateTo">rotateTo(bearing, [options], [eventData])</a> ⇒ <code>this</code></dt>
274
+ <dd><p>Rotates the map to the specified bearing with an animated transition.</p>
275
+ </dd>
276
+ <dt><a href="#setBearing">setBearing(bearing, [eventData])</a> ⇒ <code>this</code></dt>
277
+ <dd><p>Sets the map&#39;s bearing with an optional animated transition.</p>
278
+ </dd>
279
+ <dt><a href="#setCenter">setCenter(center, [eventData])</a> ⇒ <code>this</code></dt>
280
+ <dd><p>Sets the map&#39;s center coordinates with an optional animated transition.</p>
281
+ </dd>
282
+ <dt><a href="#setEventedParent">setEventedParent([parent], [data])</a> ⇒ <code>this</code></dt>
283
+ <dd><p>Sets the parent of the map&#39;s event emitter.</p>
284
+ </dd>
285
+ <dt><a href="#setFeatureState">setFeatureState(feature, state)</a> ⇒ <code>this</code></dt>
286
+ <dd><p>Sets the state of a feature.</p>
287
+ </dd>
288
+ <dt><a href="#setFilter">setFilter(layerId, [filter], [options])</a> ⇒ <code>this</code></dt>
289
+ <dd><p>Sets the filter for a specified layer.</p>
290
+ </dd>
291
+ <dt><a href="#setGlyphs">setGlyphs(glyphsUrl, [options])</a> ⇒ <code>this</code></dt>
292
+ <dd><p>Sets the glyphs for the map&#39;s style.</p>
293
+ </dd>
294
+ <dt><a href="#setLayerZoomRange">setLayerZoomRange(layerId, minzoom, maxzoom)</a> ⇒ <code>this</code></dt>
295
+ <dd><p>Sets the zoom range for a specified layer.</p>
296
+ </dd>
297
+ <dt><a href="#setLayoutProperty">setLayoutProperty(layerId, name, value, [options])</a> ⇒ <code>this</code></dt>
298
+ <dd><p>Sets a layout property for a specified layer.</p>
299
+ </dd>
300
+ <dt><a href="#setLight">setLight(light, [options])</a> ⇒ <code>this</code></dt>
301
+ <dd><p>Sets the light for the map&#39;s style.</p>
302
+ </dd>
303
+ <dt><a href="#setMaxBounds">setMaxBounds(bounds)</a> ⇒ <code>this</code></dt>
304
+ <dd><p>Sets the maximum bounds for the map.</p>
305
+ </dd>
306
+ <dt><a href="#setMaxPitch">setMaxPitch(maxPitch)</a> ⇒ <code>this</code></dt>
307
+ <dd><p>Sets the maximum pitch for the map.</p>
308
+ </dd>
309
+ <dt><a href="#setMaxZoom">setMaxZoom(maxZoom)</a> ⇒ <code>this</code></dt>
310
+ <dd><p>Sets the maximum zoom level for the map.</p>
311
+ </dd>
312
+ <dt><a href="#setMinPitch">setMinPitch(minPitch)</a> ⇒ <code>this</code></dt>
313
+ <dd><p>Sets the minimum pitch for the map.</p>
314
+ </dd>
315
+ <dt><a href="#setMinZoom">setMinZoom(minZoom)</a> ⇒ <code>this</code></dt>
316
+ <dd><p>Sets the minimum zoom level for the map.</p>
317
+ </dd>
318
+ <dt><a href="#setPadding">setPadding(padding, [eventData])</a> ⇒ <code>this</code></dt>
319
+ <dd><p>Sets padding for the map&#39;s container.</p>
320
+ </dd>
321
+ <dt><a href="#setPaintProperty">setPaintProperty(layerId, name, value, [options])</a> ⇒ <code>this</code></dt>
322
+ <dd><p>Sets a paint property for a specified layer.</p>
323
+ </dd>
324
+ <dt><a href="#setPitch">setPitch(pitch, [eventData])</a> ⇒ <code>this</code></dt>
325
+ <dd><p>Sets the map&#39;s pitch angle with an optional animated transition.</p>
326
+ </dd>
327
+ <dt><a href="#setPixelRatio">setPixelRatio(pixelRatio)</a> ⇒ <code>this</code></dt>
328
+ <dd><p>Sets the pixel ratio for the map.</p>
329
+ </dd>
330
+ <dt><a href="#setRenderWorldCopies">setRenderWorldCopies(renderWorldCopies)</a> ⇒ <code>this</code></dt>
331
+ <dd><p>Sets whether the map should render world copies when the center longitude is greater than or less than ┬▒180 degrees.</p>
332
+ </dd>
333
+ <dt><a href="#setSprite">setSprite(spriteUrl, [options])</a> ⇒ <code>this</code></dt>
334
+ <dd><p>Sets the sprite for the map&#39;s style.</p>
335
+ </dd>
336
+ <dt><a href="#setTerrain">setTerrain(options)</a> ⇒ <code>this</code></dt>
337
+ <dd><p>Loads a 3D terrain mesh based on a &quot;raster-dem&quot; source.</p>
338
+ </dd>
339
+ <dt><a href="#setTransformRequest">setTransformRequest(transformRequest)</a> ⇒ <code>this</code></dt>
340
+ <dd><p>Updates the requestManager&#39;s transform request with a new function.</p>
341
+ </dd>
342
+ <dt><a href="#setZoom">setZoom(zoom, [eventData])</a> ⇒ <code>this</code></dt>
343
+ <dd><p>Sets the map&#39;s zoom level.</p>
344
+ </dd>
345
+ <dt><a href="#snapToNorth">snapToNorth([options], [eventData])</a> ⇒ <code>this</code></dt>
346
+ <dd><p>Snaps the map so that north is up (0┬░ bearing), if the current bearing is close enough to it.</p>
347
+ </dd>
348
+ <dt><a href="#stop">stop()</a> ⇒ <code>this</code></dt>
349
+ <dd><p>Stops any animated transition underway.</p>
350
+ </dd>
351
+ <dt><a href="#triggerRepaint">triggerRepaint()</a> ⇒ <code>void</code></dt>
352
+ <dd><p>Triggers the rendering of a single frame.</p>
353
+ </dd>
354
+ <dt><a href="#unproject">unproject(point)</a> ⇒ <code>LngLat</code></dt>
355
+ <dd><p>Returns geographical coordinates corresponding to the specified pixel coordinates.</p>
356
+ </dd>
357
+ <dt><a href="#updateImage">updateImage(id, image)</a> ⇒ <code>this</code></dt>
358
+ <dd><p>Updates an existing image in the style&#39;s sprite.</p>
359
+ </dd>
360
+ <dt><a href="#zoomIn">zoomIn([options], [eventData])</a> ⇒ <code>this</code></dt>
361
+ <dd><p>Increases the map&#39;s zoom level by 1.</p>
362
+ </dd>
363
+ <dt><a href="#zoomOut">zoomOut([options], [eventData])</a> ⇒ <code>this</code></dt>
364
+ <dd><p>Decreases the map&#39;s zoom level by 1.</p>
365
+ </dd>
366
+ <dt><a href="#zoomTo">zoomTo(zoom, [options], [eventData])</a> ⇒ <code>this</code></dt>
367
+ <dd><p>Zooms the map to the specified zoom level with an animated transition.</p>
368
+ </dd>
369
+ <dt><a href="#addLayerGeoJSON">addLayerGeoJSON(layer, layerPosition)</a></dt>
370
+ <dd><p>Adds a GeoJSON layer to the map.</p>
371
+ </dd>
372
+ <dt><a href="#addLayerWMS">addLayerWMS(tiles, idLayer, options)</a></dt>
373
+ <dd><p>Adds a WMS layer to the map.</p>
374
+ </dd>
375
+ <dt><a href="#addLogo">addLogo(options)</a></dt>
376
+ <dd><p>Adds a logo to the map.</p>
377
+ </dd>
378
+ <dt><a href="#addBasemapsICGC">addBasemapsICGC(basesArray)</a></dt>
379
+ <dd><p>Adds base layers to the map.</p>
380
+ </dd>
381
+ <dt><a href="#addBasemaps">addBasemaps(baseLayers)</a></dt>
382
+ <dd><p>Adds base layers to the map.</p>
383
+ </dd>
384
+ <dt><a href="#addFeatureQuery">addFeatureQuery(idLayer, queryFields, popupStyle)</a></dt>
385
+ <dd><p>Adds feature query function to a layer.</p>
386
+ </dd>
387
+ <dt><a href="#addScaleControl">addScaleControl(options, position)</a></dt>
388
+ <dd><p>Adds a scale control to the map.</p>
389
+ <ul>
390
+ <li>@function addScaleControl</li>
391
+ </ul>
392
+ </dd>
393
+ <dt><a href="#addExportControl">addExportControl(options, [position])</a></dt>
394
+ <dd><p>Adds an export control to the map with the provided options and position.</p>
395
+ </dd>
396
+ <dt><a href="#addMarker">addMarker(options)</a> ⇒ <code>Object</code></dt>
397
+ <dd><p>Adds a marker to the map.</p>
398
+ </dd>
399
+ <dt><a href="#addPopup">addPopup(options, coord, text, popupStyle)</a> ⇒ <code>Object</code></dt>
400
+ <dd><p>Adds a popup to the map.</p>
401
+ </dd>
402
+ <dt><a href="#addFullScreen">addFullScreen([position])</a></dt>
403
+ <dd><p>Adds a fullscreen control to the map.</p>
404
+ </dd>
405
+ <dt><a href="#addMenuItem">addMenuItem(name)</a></dt>
406
+ <dd><p>Adds a menu item with a checkbox for controlling the visibility of a layer on the map.</p>
407
+ </dd>
408
+ <dt><a href="#addLayerTree">addLayerTree(options)</a></dt>
409
+ <dd><p>Adds a layer tree to the map.</p>
410
+ </dd>
411
+ <dt><a href="#createNavigationControl">createNavigationControl(options, [position])</a> ⇒ <code>Object</code></dt>
412
+ <dd><p>Creates a navigation control with the provided options.</p>
413
+ </dd>
414
+ <dt><a href="#addNavigationControl">addNavigationControl(options, [position])</a></dt>
415
+ <dd><p>Adds a navigation control to the map with the provided options.</p>
416
+ </dd>
417
+ <dt><a href="#addAttributionControl">addAttributionControl(options, [position])</a></dt>
418
+ <dd><p>Adds an attribution control to the map with the provided options.</p>
419
+ </dd>
420
+ <dt><a href="#addImageLayerICGC">addImageLayerICGC(url, idLayer, options)</a></dt>
421
+ <dd><p>Adds an ICGC image layer to the map based on the specified name and year.</p>
422
+ </dd>
423
+ <dt><a href="#addVectorLayerICGC">addVectorLayerICGC(url, idLayer, options)</a></dt>
424
+ <dd><p>Adds an ICGC vector layer to the map based on the specified name and year.</p>
425
+ </dd>
426
+ <dt><a href="#addFGBLayerICGC">addFGBLayerICGC(url, idLayer, options)</a></dt>
427
+ <dd><p>Adds an ICGC FGB layer to the map based on the specified name and year.</p>
428
+ </dd>
429
+ <dt><a href="#addTerrainICGC">addTerrainICGC(url, controlPosition)</a></dt>
430
+ <dd><p>Adds 3D terrain to the map using hillshade.</p>
431
+ </dd>
432
+ <dt><a href="#addLegend">addLegend(url, idLayer)</a></dt>
433
+ <dd><p>Add image legend.</p>
434
+ </dd>
435
+ <dt><a href="#_findImageType">_findImageType(url, var1, var2, var3, var4)</a> ⇒ <code>string</code> | <code>null</code></dt>
436
+ <dd><p>Finds the type of image based on the provided URL and specified vectors.</p>
437
+ </dd>
438
+ <dt><a href="#_getKeyByUrlFGB">_getKeyByUrlFGB(url)</a> ⇒ <code>string</code> | <code>null</code></dt>
439
+ <dd><p>Gets the key by URL from the FGBAdmin layers.</p>
440
+ </dd>
441
+ <dt><a href="#_getLegendByName">_getLegendByName(name)</a> ⇒ <code>string</code> | <code>null</code></dt>
442
+ <dd><p>Gets the legend by name from the default vector layers.</p>
443
+ </dd>
444
+ <dt><a href="#_getKeyByUrlVector">_getKeyByUrlVector(url)</a> ⇒ <code>string</code> | <code>null</code></dt>
445
+ <dd><p>Gets the key by URL from the Vector layers.</p>
446
+ </dd>
447
+ <dt><a href="#_raiseText3DStyle">_raiseText3DStyle()</a> ⇒ <code>Promise.&lt;void&gt;</code></dt>
448
+ <dd><p>Raises text 3D style on the map.</p>
449
+ </dd>
450
+ <dt><a href="#_dealStyleMaps">_dealStyleMaps(name)</a> ⇒ <code>Object</code> | <code>string</code> | <code>null</code></dt>
451
+ <dd><p>Deals with map styles based on the name.</p>
452
+ </dd>
453
+ <dt><a href="#_dealOrto3dStyle">_dealOrto3dStyle(name)</a> ⇒ <code>void</code> | <code>null</code></dt>
454
+ <dd><p>Deals with the 3D ortho style based on the name.</p>
455
+ </dd>
456
+ <dt><a href="#_dealOrderLayer">_dealOrderLayer(order)</a> ⇒ <code>string</code></dt>
457
+ <dd><p>Deals with the order of the layer.</p>
458
+ </dd>
459
+ <dt><a href="#_firstSymbolLayer">_firstSymbolLayer()</a> ⇒ <code>string</code> | <code>undefined</code></dt>
460
+ <dd><p>Retrieves the id of the first symbol layer.</p>
461
+ </dd>
462
+ <dt><a href="#_firstLineLayer">_firstLineLayer()</a> ⇒ <code>string</code> | <code>undefined</code></dt>
463
+ <dd><p>Retrieves the id of the first line layer.</p>
464
+ </dd>
465
+ <dt><a href="#_createCitiesMapboxLayer">_createCitiesMapboxLayer()</a> ⇒ <code>MapboxLayer</code> | <code>null</code></dt>
466
+ <dd><p>Creates a Mapbox layer for displaying cities in 3D.</p>
467
+ </dd>
468
+ </dl>
469
+
470
+ <a name="LngLatBounds"></a>
471
+
472
+ ## LngLatBounds
473
+ LngLatBounds
474
+
475
+ **Kind**: global class
476
+ <a name="new_LngLatBounds_new"></a>
477
+
478
+ ### new LngLatBounds([sw], [ne])
479
+ Constructs a new LngLatBounds object representing a geographical bounding box.
480
+
481
+
482
+ | Param | Type | Description |
483
+ | --- | --- | --- |
484
+ | [sw] | <code>LngLatLike</code> | The southwest corner of the bounding box. Can be specified as an array of 4 numbers in the order of west, south, east, north, or an array of 2 LngLatLike representing [sw,ne]. |
485
+ | [ne] | <code>LngLatLike</code> | The northeast corner of the bounding box. |
486
+
487
+ <a name="addGeocoderICGC"></a>
488
+
489
+ ## addGeocoderICGC([options], [position]) ⇒ <code>Object</code>
490
+ Add geocoder with customizable options.
491
+
492
+ **Kind**: global function
493
+ **Returns**: <code>Object</code> - - The merged configuration options for the geocoder, including the position.
494
+
495
+ | Param | Type | Default | Description |
496
+ | --- | --- | --- | --- |
497
+ | [options] | <code>Object</code> | <code>{}</code> | Optional configuration options for the geocoder. Defaults to an empty object. |
498
+ | [position] | <code>string</code> | <code>&quot;&#x27;top-right&#x27;&quot;</code> | Position to add the geocoder control on the map. Defaults to 'top-right'. |
499
+
500
+ <a name="getConfigStyles"></a>
501
+
502
+ ## getConfigStyles() ⇒ <code>Array</code>
503
+ Retrieves the available base styles from default options.
504
+
505
+ **Kind**: global function
506
+ **Returns**: <code>Array</code> - - Array containing the names of available base styles.
507
+ <a name="getConfigWMSLayers"></a>
508
+
509
+ ## getConfigWMSLayers() ⇒ <code>Array</code>
510
+ Retrieves the available WMS image layers from default options.
511
+
512
+ **Kind**: global function
513
+ **Returns**: <code>Array</code> - - Array containing the keys of available WMS image layers.
514
+ <a name="getConfigOrtoLayers"></a>
515
+
516
+ ## getConfigOrtoLayers() ⇒ <code>Array</code>
517
+ Retrieves the available orto image layers from default options.
518
+
519
+ **Kind**: global function
520
+ **Returns**: <code>Array</code> - - Array containing the keys of available image layers.
521
+ <a name="getConfigVectorLayers"></a>
522
+
523
+ ## getConfigVectorLayers() ⇒ <code>Array</code>
524
+ Retrieves the available vector layers from default options.
525
+
526
+ **Kind**: global function
527
+ **Returns**: <code>Array</code> - - Array containing the keys of available vector layers.
528
+ <a name="getConfigVectorAdminLayers"></a>
529
+
530
+ ## getConfigVectorAdminLayers() ⇒ <code>Array</code>
531
+ Retrieves the available vector layers from default options.
532
+
533
+ **Kind**: global function
534
+ **Returns**: <code>Array</code> - - Array containing the keys of available vectorAdmin layers.
535
+ <a name="getConfigFGBAdminLayers"></a>
536
+
537
+ ## getConfigFGBAdminLayers() ⇒ <code>Array</code>
538
+ Retrieves the available fgb layers from default options.
539
+
540
+ **Kind**: global function
541
+ **Returns**: <code>Array</code> - - Array containing the keys of available fgbadmin layers.
542
+ <a name="fetchData"></a>
543
+
544
+ ## fetchData(url, idLayer, options)
545
+ Fetches GeoJSON data from a URL and adds a corresponding layer to the map based on the specified geometry type.
546
+
547
+ **Kind**: global function
548
+
549
+ | Param | Type | Description |
550
+ | --- | --- | --- |
551
+ | url | <code>string</code> | The URL to fetch GeoJSON data from. |
552
+ | idLayer | <code>string</code> | The id for the layer. |
553
+ | options | <code>Object</code> | Additional options for configuring the layer. |
554
+
555
+ <a name="fetchDataAndMenu"></a>
556
+
557
+ ## fetchDataAndMenu(url, idLayer, filterField, options)
558
+ Fetches GeoJSON data from a URL and adds a corresponding layer to the map based on the specified geometry type and adds to the Menu as a checkbox item.
559
+
560
+ **Kind**: global function
561
+
562
+ | Param | Type | Description |
563
+ | --- | --- | --- |
564
+ | url | <code>string</code> | The URL to fetch GeoJSON data from. |
565
+ | idLayer | <code>string</code> | The geometry name (e.g., 'buildings'). |
566
+ | filterField | <code>string</code> | Import all features as unique or group based on a field ('all', 'field'). |
567
+ | options | <code>Object</code> | Additional options for configuring the layer. |
568
+
569
+ <a name="on"></a>
570
+
571
+ ## on(type, func)
572
+ Adds an event listener to the map.
573
+
574
+ **Kind**: global function
575
+
576
+ | Param | Type | Description |
577
+ | --- | --- | --- |
578
+ | type | <code>string</code> | The type of the event. |
579
+ | func | <code>function</code> | The callback function to be executed when the event occurs. |
580
+
581
+ <a name="setStyle"></a>
582
+
583
+ ## setStyle(style, [options])
584
+ Sets the style of the map.
585
+
586
+ **Kind**: global function
587
+
588
+ | Param | Type | Description |
589
+ | --- | --- | --- |
590
+ | style | <code>string</code> | Name of the map style. |
591
+ | [options] | <code>Object</code> | Options for setting the style. |
592
+
593
+ <a name="addControl"></a>
594
+
595
+ ## addControl(control, [position])
596
+ Adds a control to the map with the specified position.
597
+
598
+ **Kind**: global function
599
+
600
+ | Param | Type | Default | Description |
601
+ | --- | --- | --- | --- |
602
+ | control | <code>Object</code> | | The control to add. |
603
+ | [position] | <code>string</code> | <code>&quot;&#x27;top-right&#x27;&quot;</code> | Position to add the control on the map. |
604
+
605
+ <a name="setSky"></a>
606
+
607
+ ## setSky(options)
608
+ Sets the sky properties of the map.
609
+
610
+ **Kind**: global function
611
+
612
+ | Param | Type | Default | Description |
613
+ | --- | --- | --- | --- |
614
+ | options | <code>Object</code> | | Options to set the sky properties. |
615
+ | [options.skyType] | <code>string</code> | <code>&quot;&#x27;gradient&#x27;&quot;</code> | Type of sky to set (e.g., 'gradient', 'atmosphere'). |
616
+ | [options.color] | <code>string</code> | <code>&quot;&#x27;lightblue&#x27;&quot;</code> | Color of the sky. |
617
+ | [options.horizonBlend] | <code>Number</code> | <code>0.03</code> | Blend horizon value. |
618
+ | [options.starIntensity] | <code>Number</code> | <code>0.5</code> | Intensity of stars in the sky. |
619
+ | [options.sunIntensity] | <code>Number</code> | <code>0.1</code> | Intensity of the sun in the sky. |
620
+ | [options.sunPosition] | <code>Array.&lt;Number&gt;</code> | <code>[0, 0]</code> | Position of the sun in the sky. |
621
+
622
+ <a name="addMouseCoordControl"></a>
623
+
624
+ ## addMouseCoordControl([position])
625
+ Adds a mouse coordinate control to the map.
626
+
627
+ **Kind**: global function
628
+
629
+ | Param | Type | Default | Description |
630
+ | --- | --- | --- | --- |
631
+ | options.width | <code>Number</code> | | Width control i. |
632
+ | options.utm | <code>Boolean</code> | | Boolean to show coordinates in UTM. |
633
+ | options.lonlat | <code>Boolean</code> | | Boolean to show coordinates in Lon Lat. |
634
+ | [position] | <code>string</code> | <code>&quot;&#x27;bottom-left&#x27;&quot;</code> | Position to add the control on the map. |
635
+
636
+ <a name="addGeolocateControl"></a>
637
+
638
+ ## addGeolocateControl(options, [position])
639
+ Adds a geolocate control to the map.
640
+
641
+ **Kind**: global function
642
+
643
+ | Param | Type | Default | Description |
644
+ | --- | --- | --- | --- |
645
+ | options | <code>Object</code> | | Options for the geolocate control. |
646
+ | [position] | <code>string</code> | <code>&quot;&#x27;top-right&#x27;&quot;</code> | Position to add the control on the map. |
647
+
648
+ <a name="addFullscreenControl"></a>
649
+
650
+ ## addFullscreenControl(options, [position])
651
+ Adds a fullscreen control to the map.
652
+
653
+ **Kind**: global function
654
+
655
+ | Param | Type | Default | Description |
656
+ | --- | --- | --- | --- |
657
+ | options | <code>Object</code> | | Options for the geolocate control. |
658
+ | [position] | <code>string</code> | <code>&quot;&#x27;top-right&#x27;&quot;</code> | Position to add the control on the map. |
659
+
660
+ <a name="addLayer"></a>
661
+
662
+ ## addLayer(layer, layerIdOrder)
663
+ Adds a layer to the map.
664
+
665
+ **Kind**: global function
666
+
667
+ | Param | Type | Description |
668
+ | --- | --- | --- |
669
+ | layer | <code>Object</code> | Options for the layer to add. |
670
+ | layerIdOrder | <code>string</code> | Optional layer Id draw position. |
671
+
672
+ <a name="addImage"></a>
673
+
674
+ ## addImage(id, image, options) ⇒ <code>this</code>
675
+ Adds an image to the map.
676
+
677
+ **Kind**: global function
678
+
679
+ | Param | Type | Description |
680
+ | --- | --- | --- |
681
+ | id | <code>string</code> | The ID of the image. |
682
+ | image | <code>ImageBitmap</code> \| <code>HTMLImageElement</code> \| <code>ImageData</code> \| <code>StyleImageInterface</code> \| <code>object</code> | The image object to add. |
683
+ | options | <code>Partial.&lt;StyleImageMetadata&gt;</code> | Optional metadata for the image. |
684
+
685
+ <a name="addSource"></a>
686
+
687
+ ## addSource(id, source) ⇒ <code>this</code>
688
+ Adds a source to the map.
689
+
690
+ **Kind**: global function
691
+
692
+ | Param | Type | Description |
693
+ | --- | --- | --- |
694
+ | id | <code>string</code> | The ID of the source. |
695
+ | source | <code>SourceSpecification</code> | The source object to add. |
696
+
697
+ <a name="addSprite"></a>
698
+
699
+ ## addSprite(id, url, options) ⇒ <code>this</code>
700
+ Adds a sprite to the map.
701
+
702
+ **Kind**: global function
703
+
704
+ | Param | Type | Description |
705
+ | --- | --- | --- |
706
+ | id | <code>string</code> | The ID of the sprite. |
707
+ | url | <code>string</code> | The URL to load the sprite from. |
708
+ | options | <code>StyleSetterOptions</code> | Options object. |
709
+
710
+ <a name="areTilesLoaded"></a>
711
+
712
+ ## areTilesLoaded() ⇒ <code>boolean</code>
713
+ Checks if all tiles in the viewport are loaded.
714
+
715
+ **Kind**: global function
716
+ <a name="cameraForBounds"></a>
717
+
718
+ ## cameraForBounds(bounds, options) ⇒ <code>CenterZoomBearing</code> \| <code>undefined</code>
719
+ Calculates the camera position for given bounds.
720
+
721
+ **Kind**: global function
722
+
723
+ | Param | Type | Description |
724
+ | --- | --- | --- |
725
+ | bounds | <code>LngLatBoundsLike</code> | The geographical bounds to fit. |
726
+ | options | <code>CameraForBoundsOptions</code> | Options object. |
727
+
728
+ <a name="easeTo"></a>
729
+
730
+ ## easeTo(options, eventData) ⇒ <code>this</code>
731
+ Eases the camera to a new position.
732
+
733
+ **Kind**: global function
734
+
735
+ | Param | Type | Description |
736
+ | --- | --- | --- |
737
+ | options | <code>object</code> | Options describing the animation. |
738
+ | eventData | <code>any</code> | Additional properties for event objects. |
739
+
740
+ <a name="fitBounds"></a>
741
+
742
+ ## fitBounds(bounds, options, eventData) ⇒ <code>this</code>
743
+ Fits the map to the given geographical bounds.
744
+
745
+ **Kind**: global function
746
+
747
+ | Param | Type | Description |
748
+ | --- | --- | --- |
749
+ | bounds | <code>LngLatBoundsLike</code> | The geographical bounds to fit. |
750
+ | options | <code>FitBoundsOptions</code> | Options object. |
751
+ | eventData | <code>any</code> | Additional properties for event objects. |
752
+
753
+ <a name="fitScreenCoordinates"></a>
754
+
755
+ ## fitScreenCoordinates(p0, p1, bearing, options, eventData) ⇒ <code>this</code>
756
+ Fits the map to the given screen coordinates.
757
+
758
+ **Kind**: global function
759
+
760
+ | Param | Type | Description |
761
+ | --- | --- | --- |
762
+ | p0 | <code>PointLike</code> | First point on screen, in pixel coordinates. |
763
+ | p1 | <code>PointLike</code> | Second point on screen, in pixel coordinates. |
764
+ | bearing | <code>number</code> | Desired map bearing at end of animation, in degrees. |
765
+ | options | <code>FitBoundsOptions</code> | Options object. |
766
+ | eventData | <code>any</code> | Additional properties for event objects. |
767
+
768
+ <a name="flyTo"></a>
769
+
770
+ ## flyTo(options, eventData) ⇒ <code>this</code>
771
+ Flies the camera to a new position.
772
+
773
+ **Kind**: global function
774
+
775
+ | Param | Type | Description |
776
+ | --- | --- | --- |
777
+ | options | <code>FlyToOptions</code> | Options describing the flight. |
778
+ | eventData | <code>any</code> | Additional properties for event objects. |
779
+
780
+ <a name="getBearing"></a>
781
+
782
+ ## getBearing() ⇒ <code>number</code>
783
+ Gets the current bearing of the map.
784
+
785
+ **Kind**: global function
786
+ <a name="getBounds"></a>
787
+
788
+ ## getBounds() ⇒ [<code>LngLatBounds</code>](#LngLatBounds)
789
+ Gets the current geographical bounds of the map.
790
+
791
+ **Kind**: global function
792
+ <a name="getCameraTargetElevation"></a>
793
+
794
+ ## getCameraTargetElevation() ⇒ <code>number</code>
795
+ Gets the elevation for the point where the camera is looking.
796
+
797
+ **Kind**: global function
798
+ <a name="getCanvas"></a>
799
+
800
+ ## getCanvas() ⇒ <code>HTMLCanvasElement</code>
801
+ Gets the map's <canvas> element.
802
+
803
+ **Kind**: global function
804
+ <a name="getCanvasContainer"></a>
805
+
806
+ ## getCanvasContainer() ⇒ <code>HTMLElement</code>
807
+ Gets the HTML element containing the map's <canvas> element.
808
+
809
+ **Kind**: global function
810
+ <a name="getCenter"></a>
811
+
812
+ ## getCenter() ⇒ <code>LngLat</code>
813
+ Returns the map's geographical centerpoint.
814
+
815
+ **Kind**: global function
816
+ **Returns**: <code>LngLat</code> - The map's geographical centerpoint.
817
+ <a name="getContainer"></a>
818
+
819
+ ## getContainer() ⇒ <code>HTMLElement</code>
820
+ Returns the map's containing HTML element.
821
+
822
+ **Kind**: global function
823
+ **Returns**: <code>HTMLElement</code> - The map's container.
824
+ <a name="getFeatureState"></a>
825
+
826
+ ## getFeatureState(feature) ⇒ <code>any</code>
827
+ Gets the state of a feature.
828
+
829
+ **Kind**: global function
830
+ **Returns**: <code>any</code> - The state of the feature.
831
+
832
+ | Param | Type | Description |
833
+ | --- | --- | --- |
834
+ | feature | <code>FeatureIdentifier</code> | Feature identifier. |
835
+
836
+ <a name="getFilter"></a>
837
+
838
+ ## getFilter(layerId) ⇒ <code>void</code> \| <code>FilterSpecification</code>
839
+ Returns the filter applied to the specified style layer.
840
+
841
+ **Kind**: global function
842
+ **Returns**: <code>void</code> \| <code>FilterSpecification</code> - The layer's filter.
843
+
844
+ | Param | Type | Description |
845
+ | --- | --- | --- |
846
+ | layerId | <code>string</code> | The ID of the style layer. |
847
+
848
+ <a name="getGlyphs"></a>
849
+
850
+ ## getGlyphs() ⇒ <code>string</code>
851
+ Returns the value of the style's glyphs URL.
852
+
853
+ **Kind**: global function
854
+ **Returns**: <code>string</code> - The glyphs Style's glyphs URL.
855
+ <a name="getImage"></a>
856
+
857
+ ## getImage(id) ⇒ <code>StyleImage</code>
858
+ Returns an image currently available in the map.
859
+
860
+ **Kind**: global function
861
+ **Returns**: <code>StyleImage</code> - An image in the map with the specified ID.
862
+
863
+ | Param | Type | Description |
864
+ | --- | --- | --- |
865
+ | id | <code>string</code> | The ID of the image. |
866
+
867
+ <a name="getLayer"></a>
868
+
869
+ ## getLayer(id) ⇒ <code>StyleLayer</code>
870
+ Returns the layer with the specified ID in the map's style.
871
+
872
+ **Kind**: global function
873
+ **Returns**: <code>StyleLayer</code> - The layer with the specified ID.
874
+
875
+ | Param | Type | Description |
876
+ | --- | --- | --- |
877
+ | id | <code>string</code> | The ID of the layer to get. |
878
+
879
+ <a name="getLayersOrder"></a>
880
+
881
+ ## getLayersOrder() ⇒ <code>Array.&lt;string&gt;</code>
882
+ Return the ids of all layers currently in the style, including custom layers, in order.
883
+
884
+ **Kind**: global function
885
+ **Returns**: <code>Array.&lt;string&gt;</code> - Ids of layers, in order.
886
+ <a name="getLayoutProperty"></a>
887
+
888
+ ## getLayoutProperty(layerId, name) ⇒ <code>any</code>
889
+ Returns the value of a layout property in the specified style layer.
890
+
891
+ **Kind**: global function
892
+ **Returns**: <code>any</code> - The value of the specified layout property.
893
+
894
+ | Param | Type | Description |
895
+ | --- | --- | --- |
896
+ | layerId | <code>string</code> | The ID of the layer. |
897
+ | name | <code>string</code> | The name of the layout property. |
898
+
899
+ <a name="getLight"></a>
900
+
901
+ ## getLight() ⇒ <code>LightSpecification</code>
902
+ Returns the value of the light object.
903
+
904
+ **Kind**: global function
905
+ **Returns**: <code>LightSpecification</code> - Light properties of the style.
906
+ <a name="getMaxBounds"></a>
907
+
908
+ ## getMaxBounds() ⇒ [<code>LngLatBounds</code>](#LngLatBounds)
909
+ Returns the maximum geographical bounds the map is constrained to.
910
+
911
+ **Kind**: global function
912
+ **Returns**: [<code>LngLatBounds</code>](#LngLatBounds) - The map's maximum geographical bounds.
913
+ <a name="getMaxPitch"></a>
914
+
915
+ ## getMaxPitch() ⇒ <code>number</code>
916
+ Returns the map's maximum allowable pitch.
917
+
918
+ **Kind**: global function
919
+ **Returns**: <code>number</code> - The maxPitch.
920
+ <a name="getMaxZoom"></a>
921
+
922
+ ## getMaxZoom() ⇒ <code>number</code>
923
+ Returns the map's maximum allowable zoom level.
924
+
925
+ **Kind**: global function
926
+ **Returns**: <code>number</code> - The maxZoom.
927
+ <a name="getMinPitch"></a>
928
+
929
+ ## getMinPitch() ⇒ <code>number</code>
930
+ Returns the map's minimum allowable pitch.
931
+
932
+ **Kind**: global function
933
+ **Returns**: <code>number</code> - The minPitch.
934
+ <a name="getMinZoom"></a>
935
+
936
+ ## getMinZoom() ⇒ <code>number</code>
937
+ Returns the map's minimum allowable zoom level.
938
+
939
+ **Kind**: global function
940
+ **Returns**: <code>number</code> - The minZoom.
941
+ <a name="getPadding"></a>
942
+
943
+ ## getPadding() ⇒ <code>PaddingOptions</code>
944
+ Returns the current padding applied around the map viewport.
945
+
946
+ **Kind**: global function
947
+ **Returns**: <code>PaddingOptions</code> - The current padding around the map viewport.
948
+ <a name="getPaintProperty"></a>
949
+
950
+ ## getPaintProperty(layerId, name) ⇒ <code>unknown</code>
951
+ Returns the value of a paint property in the specified style layer.
952
+
953
+ **Kind**: global function
954
+ **Returns**: <code>unknown</code> - The value of the specified paint property.
955
+
956
+ | Param | Type | Description |
957
+ | --- | --- | --- |
958
+ | layerId | <code>string</code> | The ID of the layer. |
959
+ | name | <code>string</code> | The name of a paint property. |
960
+
961
+ <a name="getPitch"></a>
962
+
963
+ ## getPitch() ⇒ <code>number</code>
964
+ Returns the map's current pitch (tilt).
965
+
966
+ **Kind**: global function
967
+ **Returns**: <code>number</code> - The map's current pitch, measured in degrees away from the plane of the screen.
968
+ <a name="getPixelRatio"></a>
969
+
970
+ ## getPixelRatio() ⇒ <code>number</code>
971
+ Returns the map's pixel ratio.
972
+
973
+ **Kind**: global function
974
+ **Returns**: <code>number</code> - The pixel ratio.
975
+ <a name="getRenderWorldCopies"></a>
976
+
977
+ ## getRenderWorldCopies() ⇒ <code>boolean</code>
978
+ Returns the state of renderWorldCopies.
979
+
980
+ **Kind**: global function
981
+ **Returns**: <code>boolean</code> - The renderWorldCopies.
982
+ <a name="getSource"></a>
983
+
984
+ ## getSource(id) ⇒ <code>Source</code>
985
+ Returns the source with the specified ID in the map's style.
986
+
987
+ **Kind**: global function
988
+ **Returns**: <code>Source</code> - The style source with the specified ID.
989
+
990
+ | Param | Type | Description |
991
+ | --- | --- | --- |
992
+ | id | <code>string</code> | The ID of the source to get. |
993
+
994
+ <a name="getSprite"></a>
995
+
996
+ ## getSprite() ⇒ <code>Array.&lt;object&gt;</code>
997
+ Returns the as-is value of the style's sprite.
998
+
999
+ **Kind**: global function
1000
+ **Returns**: <code>Array.&lt;object&gt;</code> - Style's sprite list of id-url pairs.
1001
+ <a name="getStyle"></a>
1002
+
1003
+ ## getStyle() ⇒ <code>StyleSpecification</code>
1004
+ Returns the map's MapLibre style object.
1005
+
1006
+ **Kind**: global function
1007
+ **Returns**: <code>StyleSpecification</code> - The map's style JSON object.
1008
+ <a name="getTerrain"></a>
1009
+
1010
+ ## getTerrain() ⇒ <code>TerrainSpecification</code>
1011
+ Get the terrain-options if terrain is loaded.
1012
+
1013
+ **Kind**: global function
1014
+ **Returns**: <code>TerrainSpecification</code> - The TerrainSpecification passed to setTerrain.
1015
+ <a name="getZoom"></a>
1016
+
1017
+ ## getZoom() ⇒ <code>number</code>
1018
+ Returns the map's current zoom level.
1019
+
1020
+ **Kind**: global function
1021
+ **Returns**: <code>number</code> - The map's current zoom level.
1022
+ <a name="hasControl"></a>
1023
+
1024
+ ## hasControl(control) ⇒ <code>boolean</code>
1025
+ Checks if a control exists on the map.
1026
+
1027
+ **Kind**: global function
1028
+ **Returns**: <code>boolean</code> - true if map contains control.
1029
+
1030
+ | Param | Type | Description |
1031
+ | --- | --- | --- |
1032
+ | control | <code>IControl</code> | The IControl to check. |
1033
+
1034
+ <a name="hasImage"></a>
1035
+
1036
+ ## hasImage(id) ⇒ <code>boolean</code>
1037
+ Check whether or not an image with a specific ID exists in the style.
1038
+
1039
+ **Kind**: global function
1040
+ **Returns**: <code>boolean</code> - A Boolean indicating whether the image exists.
1041
+
1042
+ | Param | Type | Description |
1043
+ | --- | --- | --- |
1044
+ | id | <code>string</code> | The ID of the image. |
1045
+
1046
+ <a name="isMoving"></a>
1047
+
1048
+ ## isMoving() ⇒ <code>boolean</code>
1049
+ Returns true if the map is panning, zooming, rotating, or pitching due to a camera animation or user gesture.
1050
+
1051
+ **Kind**: global function
1052
+ **Returns**: <code>boolean</code> - true if the map is moving.
1053
+ <a name="isRotating"></a>
1054
+
1055
+ ## isRotating() ⇒ <code>boolean</code>
1056
+ Returns true if the map is rotating due to a camera animation or user gesture.
1057
+
1058
+ **Kind**: global function
1059
+ **Returns**: <code>boolean</code> - true if the map is rotating.
1060
+ <a name="isSourceLoaded"></a>
1061
+
1062
+ ## isSourceLoaded(id) ⇒ <code>boolean</code>
1063
+ Returns a Boolean indicating whether the source is loaded.
1064
+
1065
+ **Kind**: global function
1066
+ **Returns**: <code>boolean</code> - A Boolean indicating whether the source is loaded.
1067
+
1068
+ | Param | Type | Description |
1069
+ | --- | --- | --- |
1070
+ | id | <code>string</code> | The ID of the source to be checked. |
1071
+
1072
+ <a name="isStyleLoaded"></a>
1073
+
1074
+ ## isStyleLoaded() ⇒ <code>boolean</code> \| <code>void</code>
1075
+ Returns a Boolean indicating whether the map's style is fully loaded.
1076
+
1077
+ **Kind**: global function
1078
+ **Returns**: <code>boolean</code> \| <code>void</code> - A Boolean indicating whether the style is fully loaded.
1079
+ <a name="isZooming"></a>
1080
+
1081
+ ## isZooming() ⇒ <code>boolean</code>
1082
+ Returns true if the map is zooming due to a camera animation or user gesture.
1083
+
1084
+ **Kind**: global function
1085
+ **Returns**: <code>boolean</code> - true if the map is zooming.
1086
+ <a name="jumpTo"></a>
1087
+
1088
+ ## jumpTo(options, [eventData]) ⇒ <code>this</code>
1089
+ Changes any combination of center, zoom, bearing, and pitch, without an animated transition.
1090
+
1091
+ **Kind**: global function
1092
+
1093
+ | Param | Type | Description |
1094
+ | --- | --- | --- |
1095
+ | options | <code>JumpToOptions</code> | Options object |
1096
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1097
+
1098
+ <a name="listImages"></a>
1099
+
1100
+ ## listImages() ⇒ <code>Array.&lt;string&gt;</code>
1101
+ Returns an Array of strings containing the IDs of all images currently available in the map.
1102
+
1103
+ **Kind**: global function
1104
+ **Returns**: <code>Array.&lt;string&gt;</code> - An Array of strings containing the names of all sprites/images currently available in the map.
1105
+ <a name="listens"></a>
1106
+
1107
+ ## listens(type) ⇒ <code>boolean</code>
1108
+ Returns a true if this instance of Evented or any forwardeed instances of Evented have a listener for the specified type.
1109
+
1110
+ **Kind**: global function
1111
+ **Returns**: <code>boolean</code> - true if there is at least one registered listener for specified event type, false otherwise.
1112
+
1113
+ | Param | Type | Description |
1114
+ | --- | --- | --- |
1115
+ | type | <code>string</code> | The event type. |
1116
+
1117
+ <a name="loadImage"></a>
1118
+
1119
+ ## loadImage(url) ⇒ <code>Promise.&lt;GetResourceResponse.&lt;(ImageBitmap\|HTMLImageElement)&gt;&gt;</code>
1120
+ Load an image from an external URL to be used with Map#addImage.
1121
+
1122
+ **Kind**: global function
1123
+ **Returns**: <code>Promise.&lt;GetResourceResponse.&lt;(ImageBitmap\|HTMLImageElement)&gt;&gt;</code> - A promise that is resolved when the image is loaded.
1124
+
1125
+ | Param | Type | Description |
1126
+ | --- | --- | --- |
1127
+ | url | <code>string</code> | The URL of the image file. Image file must be in png, webp, or jpg format. |
1128
+
1129
+ <a name="loaded"></a>
1130
+
1131
+ ## loaded() ⇒ <code>boolean</code>
1132
+ Returns a Boolean indicating whether the map is fully loaded.
1133
+
1134
+ **Kind**: global function
1135
+ **Returns**: <code>boolean</code> - A Boolean indicating whether the map is fully loaded.
1136
+ <a name="addProtocol"></a>
1137
+
1138
+ ## addProtocol(customProtocol, loadFn) ⇒ <code>void</code>
1139
+ Adds a custom load resource function that will be called when using a URL that starts with a custom URL schema.
1140
+
1141
+ **Kind**: global function
1142
+
1143
+ | Param | Type | Description |
1144
+ | --- | --- | --- |
1145
+ | customProtocol | <code>string</code> | The protocol to hook, for example 'custom'. |
1146
+ | loadFn | <code>AddProtocolAction</code> | The function to use when trying to fetch a resource specified by the customProtocol. |
1147
+
1148
+ <a name="moveLayer"></a>
1149
+
1150
+ ## moveLayer(id, [beforeId]) ⇒ <code>this</code>
1151
+ Moves a layer to a different z-position.
1152
+
1153
+ **Kind**: global function
1154
+
1155
+ | Param | Type | Description |
1156
+ | --- | --- | --- |
1157
+ | id | <code>string</code> | The ID of the layer to move. |
1158
+ | [beforeId] | <code>string</code> | The ID of an existing layer to insert the new layer before. |
1159
+
1160
+ <a name="panBy"></a>
1161
+
1162
+ ## panBy(offset, [options], [eventData]) ⇒ <code>this</code>
1163
+ Pans the map by the specified offset.
1164
+
1165
+ **Kind**: global function
1166
+
1167
+ | Param | Type | Description |
1168
+ | --- | --- | --- |
1169
+ | offset | <code>PointLike</code> | x and y coordinates by which to pan the map. |
1170
+ | [options] | <code>AnimationOptions</code> | Options object. |
1171
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1172
+
1173
+ <a name="panTo"></a>
1174
+
1175
+ ## panTo(lnglat, [options], [eventData]) ⇒ <code>this</code>
1176
+ Pans the map to the specified location with an animated transition.
1177
+
1178
+ **Kind**: global function
1179
+
1180
+ | Param | Type | Description |
1181
+ | --- | --- | --- |
1182
+ | lnglat | <code>LngLatLike</code> | The location to pan the map to. |
1183
+ | [options] | <code>AnimationOptions</code> | Options describing the destination and animation of the transition. |
1184
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1185
+
1186
+ <a name="project"></a>
1187
+
1188
+ ## project(lnglat) ⇒ <code>Point</code>
1189
+ Returns a Point representing pixel coordinates, relative to the map's container, that correspond to the specified geographical location.
1190
+
1191
+ **Kind**: global function
1192
+ **Returns**: <code>Point</code> - The Point corresponding to lnglat, relative to the map's container.
1193
+
1194
+ | Param | Type | Description |
1195
+ | --- | --- | --- |
1196
+ | lnglat | <code>LngLatLike</code> | The geographical location to project. |
1197
+
1198
+ <a name="queryRenderedFeatures"></a>
1199
+
1200
+ ## queryRenderedFeatures([geometryOrOptions], [options]) ⇒ <code>Array</code>
1201
+ Queries rendered features within a specified geometry or bounding box.
1202
+
1203
+ **Kind**: global function
1204
+ **Returns**: <code>Array</code> - An array of GeoJSON Feature objects representing the features that intersect the query geometry.
1205
+
1206
+ | Param | Type | Description |
1207
+ | --- | --- | --- |
1208
+ | [geometryOrOptions] | <code>GeometryLike</code> \| <code>Array</code> \| <code>Object</code> | The geometry or options for the query. |
1209
+ | [options] | <code>Object</code> | Options for the query. |
1210
+
1211
+ <a name="querySourceFeatures"></a>
1212
+
1213
+ ## querySourceFeatures(sourceId, parameters) ⇒ <code>Array</code>
1214
+ Queries source features within a specified source.
1215
+
1216
+ **Kind**: global function
1217
+ **Returns**: <code>Array</code> - An array of GeoJSON Feature objects representing the features in the source that satisfy the query parameters.
1218
+
1219
+ | Param | Type | Description |
1220
+ | --- | --- | --- |
1221
+ | sourceId | <code>string</code> | The ID of the source to query. |
1222
+ | parameters | <code>Object</code> | Parameters for the query. |
1223
+
1224
+ <a name="queryTerrainElevation"></a>
1225
+
1226
+ ## queryTerrainElevation(lngLatLike) ⇒ <code>number</code>
1227
+ Queries the terrain elevation at a specified geographical location.
1228
+
1229
+ **Kind**: global function
1230
+ **Returns**: <code>number</code> - The elevation (in meters) at the specified location.
1231
+
1232
+ | Param | Type | Description |
1233
+ | --- | --- | --- |
1234
+ | lngLatLike | <code>LngLatLike</code> | The geographical location to query. |
1235
+
1236
+ <a name="redraw"></a>
1237
+
1238
+ ## redraw() ⇒ <code>this</code>
1239
+ Redraws the map.
1240
+
1241
+ **Kind**: global function
1242
+ <a name="remove"></a>
1243
+
1244
+ ## remove() ⇒ <code>this</code>
1245
+ Removes the map from the DOM.
1246
+
1247
+ **Kind**: global function
1248
+ <a name="removeControl"></a>
1249
+
1250
+ ## removeControl(control) ⇒ <code>this</code>
1251
+ Removes a control from the map.
1252
+
1253
+ **Kind**: global function
1254
+
1255
+ | Param | Type | Description |
1256
+ | --- | --- | --- |
1257
+ | control | <code>Object</code> | The control to remove. |
1258
+
1259
+ <a name="removeFeatureState"></a>
1260
+
1261
+ ## removeFeatureState(target, [key]) ⇒ <code>this</code>
1262
+ Removes the state of a feature.
1263
+
1264
+ **Kind**: global function
1265
+
1266
+ | Param | Type | Description |
1267
+ | --- | --- | --- |
1268
+ | target | <code>Object</code> | The target feature. |
1269
+ | [key] | <code>string</code> | The key of the state to remove. |
1270
+
1271
+ <a name="removeImage"></a>
1272
+
1273
+ ## removeImage(id) ⇒ <code>this</code>
1274
+ Removes an image from the style's sprite.
1275
+
1276
+ **Kind**: global function
1277
+
1278
+ | Param | Type | Description |
1279
+ | --- | --- | --- |
1280
+ | id | <code>string</code> | The ID of the image to remove. |
1281
+
1282
+ <a name="removeLayer"></a>
1283
+
1284
+ ## removeLayer(idLayer)
1285
+ Removes a layer from the map.
1286
+
1287
+ **Kind**: global function
1288
+
1289
+ | Param | Type | Description |
1290
+ | --- | --- | --- |
1291
+ | idLayer | <code>string</code> | Identifier of the layer to remove. |
1292
+
1293
+ <a name="removeSource"></a>
1294
+
1295
+ ## removeSource(idLayer)
1296
+ Removes a source from the map.
1297
+
1298
+ **Kind**: global function
1299
+
1300
+ | Param | Type | Description |
1301
+ | --- | --- | --- |
1302
+ | idLayer | <code>string</code> | Identifier of the source to remove. |
1303
+
1304
+ <a name="removeSprite"></a>
1305
+
1306
+ ## removeSprite(id) ⇒ <code>this</code>
1307
+ Removes a sprite from the style.
1308
+
1309
+ **Kind**: global function
1310
+
1311
+ | Param | Type | Description |
1312
+ | --- | --- | --- |
1313
+ | id | <code>string</code> | The ID of the sprite to remove. |
1314
+
1315
+ <a name="resetNorth"></a>
1316
+
1317
+ ## resetNorth([options], [eventData]) ⇒ <code>this</code>
1318
+ Resets the map orientation so that north is up.
1319
+
1320
+ **Kind**: global function
1321
+
1322
+ | Param | Type | Description |
1323
+ | --- | --- | --- |
1324
+ | [options] | <code>Object</code> | Options for the reset. |
1325
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1326
+
1327
+ <a name="resetNorthPitch"></a>
1328
+
1329
+ ## resetNorthPitch([options], [eventData]) ⇒ <code>this</code>
1330
+ Resets the map orientation so that north is up and pitch is set to 0┬░.
1331
+
1332
+ **Kind**: global function
1333
+
1334
+ | Param | Type | Description |
1335
+ | --- | --- | --- |
1336
+ | [options] | <code>Object</code> | Options for the reset. |
1337
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1338
+
1339
+ <a name="resize"></a>
1340
+
1341
+ ## resize([eventData]) ⇒ <code>this</code>
1342
+ Resizes the map to fit its container.
1343
+
1344
+ **Kind**: global function
1345
+
1346
+ | Param | Type | Description |
1347
+ | --- | --- | --- |
1348
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1349
+
1350
+ <a name="rotateTo"></a>
1351
+
1352
+ ## rotateTo(bearing, [options], [eventData]) ⇒ <code>this</code>
1353
+ Rotates the map to the specified bearing with an animated transition.
1354
+
1355
+ **Kind**: global function
1356
+
1357
+ | Param | Type | Description |
1358
+ | --- | --- | --- |
1359
+ | bearing | <code>number</code> | The desired bearing (in degrees) to rotate the map to. |
1360
+ | [options] | <code>Object</code> | Options for the rotation. |
1361
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1362
+
1363
+ <a name="setBearing"></a>
1364
+
1365
+ ## setBearing(bearing, [eventData]) ⇒ <code>this</code>
1366
+ Sets the map's bearing with an optional animated transition.
1367
+
1368
+ **Kind**: global function
1369
+
1370
+ | Param | Type | Description |
1371
+ | --- | --- | --- |
1372
+ | bearing | <code>number</code> | The desired bearing (in degrees) to set for the map. |
1373
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1374
+
1375
+ <a name="setCenter"></a>
1376
+
1377
+ ## setCenter(center, [eventData]) ⇒ <code>this</code>
1378
+ Sets the map's center coordinates with an optional animated transition.
1379
+
1380
+ **Kind**: global function
1381
+
1382
+ | Param | Type | Description |
1383
+ | --- | --- | --- |
1384
+ | center | <code>LngLatLike</code> | The desired center coordinates to set for the map. |
1385
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1386
+
1387
+ <a name="setEventedParent"></a>
1388
+
1389
+ ## setEventedParent([parent], [data]) ⇒ <code>this</code>
1390
+ Sets the parent of the map's event emitter.
1391
+
1392
+ **Kind**: global function
1393
+
1394
+ | Param | Type | Description |
1395
+ | --- | --- | --- |
1396
+ | [parent] | <code>any</code> | The parent object to set for the event emitter. |
1397
+ | [data] | <code>any</code> | Additional data to pass to the parent. |
1398
+
1399
+ <a name="setFeatureState"></a>
1400
+
1401
+ ## setFeatureState(feature, state) ⇒ <code>this</code>
1402
+ Sets the state of a feature.
1403
+
1404
+ **Kind**: global function
1405
+
1406
+ | Param | Type | Description |
1407
+ | --- | --- | --- |
1408
+ | feature | <code>Object</code> | The feature to set the state for. |
1409
+ | state | <code>Object</code> | The state object to set for the feature. |
1410
+
1411
+ <a name="setFilter"></a>
1412
+
1413
+ ## setFilter(layerId, [filter], [options]) ⇒ <code>this</code>
1414
+ Sets the filter for a specified layer.
1415
+
1416
+ **Kind**: global function
1417
+
1418
+ | Param | Type | Description |
1419
+ | --- | --- | --- |
1420
+ | layerId | <code>string</code> | The ID of the layer to set the filter for. |
1421
+ | [filter] | <code>Array</code> | The filter array to apply to the layer. |
1422
+ | [options] | <code>Object</code> | Options for the filter. |
1423
+
1424
+ <a name="setGlyphs"></a>
1425
+
1426
+ ## setGlyphs(glyphsUrl, [options]) ⇒ <code>this</code>
1427
+ Sets the glyphs for the map's style.
1428
+
1429
+ **Kind**: global function
1430
+
1431
+ | Param | Type | Description |
1432
+ | --- | --- | --- |
1433
+ | glyphsUrl | <code>string</code> | The URL to the glyphs. |
1434
+ | [options] | <code>Object</code> | Options for setting the glyphs. |
1435
+
1436
+ <a name="setLayerZoomRange"></a>
1437
+
1438
+ ## setLayerZoomRange(layerId, minzoom, maxzoom) ⇒ <code>this</code>
1439
+ Sets the zoom range for a specified layer.
1440
+
1441
+ **Kind**: global function
1442
+
1443
+ | Param | Type | Description |
1444
+ | --- | --- | --- |
1445
+ | layerId | <code>string</code> | The ID of the layer to set the zoom range for. |
1446
+ | minzoom | <code>number</code> | The minimum zoom level for the layer. |
1447
+ | maxzoom | <code>number</code> | The maximum zoom level for the layer. |
1448
+
1449
+ <a name="setLayoutProperty"></a>
1450
+
1451
+ ## setLayoutProperty(layerId, name, value, [options]) ⇒ <code>this</code>
1452
+ Sets a layout property for a specified layer.
1453
+
1454
+ **Kind**: global function
1455
+
1456
+ | Param | Type | Description |
1457
+ | --- | --- | --- |
1458
+ | layerId | <code>string</code> | The ID of the layer to set the layout property for. |
1459
+ | name | <code>string</code> | The name of the layout property to set. |
1460
+ | value | <code>any</code> | The value to set for the layout property. |
1461
+ | [options] | <code>Object</code> | Options for setting the layout property. |
1462
+
1463
+ <a name="setLight"></a>
1464
+
1465
+ ## setLight(light, [options]) ⇒ <code>this</code>
1466
+ Sets the light for the map's style.
1467
+
1468
+ **Kind**: global function
1469
+
1470
+ | Param | Type | Description |
1471
+ | --- | --- | --- |
1472
+ | light | <code>Object</code> | The light object to set for the map. |
1473
+ | [options] | <code>Object</code> | Options for setting the light. |
1474
+
1475
+ <a name="setMaxBounds"></a>
1476
+
1477
+ ## setMaxBounds(bounds) ⇒ <code>this</code>
1478
+ Sets the maximum bounds for the map.
1479
+
1480
+ **Kind**: global function
1481
+
1482
+ | Param | Type | Description |
1483
+ | --- | --- | --- |
1484
+ | bounds | <code>Array</code> | The maximum bounds for the map. |
1485
+
1486
+ <a name="setMaxPitch"></a>
1487
+
1488
+ ## setMaxPitch(maxPitch) ⇒ <code>this</code>
1489
+ Sets the maximum pitch for the map.
1490
+
1491
+ **Kind**: global function
1492
+
1493
+ | Param | Type | Description |
1494
+ | --- | --- | --- |
1495
+ | maxPitch | <code>number</code> | The maximum pitch (in degrees) for the map. |
1496
+
1497
+ <a name="setMaxZoom"></a>
1498
+
1499
+ ## setMaxZoom(maxZoom) ⇒ <code>this</code>
1500
+ Sets the maximum zoom level for the map.
1501
+
1502
+ **Kind**: global function
1503
+
1504
+ | Param | Type | Description |
1505
+ | --- | --- | --- |
1506
+ | maxZoom | <code>number</code> | The maximum zoom level for the map. |
1507
+
1508
+ <a name="setMinPitch"></a>
1509
+
1510
+ ## setMinPitch(minPitch) ⇒ <code>this</code>
1511
+ Sets the minimum pitch for the map.
1512
+
1513
+ **Kind**: global function
1514
+
1515
+ | Param | Type | Description |
1516
+ | --- | --- | --- |
1517
+ | minPitch | <code>number</code> | The minimum pitch (in degrees) for the map. |
1518
+
1519
+ <a name="setMinZoom"></a>
1520
+
1521
+ ## setMinZoom(minZoom) ⇒ <code>this</code>
1522
+ Sets the minimum zoom level for the map.
1523
+
1524
+ **Kind**: global function
1525
+
1526
+ | Param | Type | Description |
1527
+ | --- | --- | --- |
1528
+ | minZoom | <code>number</code> | The minimum zoom level for the map. |
1529
+
1530
+ <a name="setPadding"></a>
1531
+
1532
+ ## setPadding(padding, [eventData]) ⇒ <code>this</code>
1533
+ Sets padding for the map's container.
1534
+
1535
+ **Kind**: global function
1536
+
1537
+ | Param | Type | Description |
1538
+ | --- | --- | --- |
1539
+ | padding | <code>Object</code> | The padding object to set for the map's container. |
1540
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1541
+
1542
+ <a name="setPaintProperty"></a>
1543
+
1544
+ ## setPaintProperty(layerId, name, value, [options]) ⇒ <code>this</code>
1545
+ Sets a paint property for a specified layer.
1546
+
1547
+ **Kind**: global function
1548
+
1549
+ | Param | Type | Description |
1550
+ | --- | --- | --- |
1551
+ | layerId | <code>string</code> | The ID of the layer to set the paint property for. |
1552
+ | name | <code>string</code> | The name of the paint property to set. |
1553
+ | value | <code>any</code> | The value to set for the paint property. |
1554
+ | [options] | <code>Object</code> | Options for setting the paint property. |
1555
+
1556
+ <a name="setPitch"></a>
1557
+
1558
+ ## setPitch(pitch, [eventData]) ⇒ <code>this</code>
1559
+ Sets the map's pitch angle with an optional animated transition.
1560
+
1561
+ **Kind**: global function
1562
+
1563
+ | Param | Type | Description |
1564
+ | --- | --- | --- |
1565
+ | pitch | <code>number</code> | The desired pitch angle (in degrees) to set for the map. |
1566
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1567
+
1568
+ <a name="setPixelRatio"></a>
1569
+
1570
+ ## setPixelRatio(pixelRatio) ⇒ <code>this</code>
1571
+ Sets the pixel ratio for the map.
1572
+
1573
+ **Kind**: global function
1574
+
1575
+ | Param | Type | Description |
1576
+ | --- | --- | --- |
1577
+ | pixelRatio | <code>number</code> | The desired pixel ratio for the map. |
1578
+
1579
+ <a name="setRenderWorldCopies"></a>
1580
+
1581
+ ## setRenderWorldCopies(renderWorldCopies) ⇒ <code>this</code>
1582
+ Sets whether the map should render world copies when the center longitude is greater than or less than ┬▒180 degrees.
1583
+
1584
+ **Kind**: global function
1585
+
1586
+ | Param | Type | Description |
1587
+ | --- | --- | --- |
1588
+ | renderWorldCopies | <code>boolean</code> | A boolean indicating whether to render world copies. |
1589
+
1590
+ <a name="setSprite"></a>
1591
+
1592
+ ## setSprite(spriteUrl, [options]) ⇒ <code>this</code>
1593
+ Sets the sprite for the map's style.
1594
+
1595
+ **Kind**: global function
1596
+
1597
+ | Param | Type | Description |
1598
+ | --- | --- | --- |
1599
+ | spriteUrl | <code>string</code> | The URL to the sprite. |
1600
+ | [options] | <code>Object</code> | Options for setting the sprite. |
1601
+
1602
+ <a name="setTerrain"></a>
1603
+
1604
+ ## setTerrain(options) ⇒ <code>this</code>
1605
+ Loads a 3D terrain mesh based on a "raster-dem" source.
1606
+
1607
+ **Kind**: global function
1608
+
1609
+ | Param | Type | Description |
1610
+ | --- | --- | --- |
1611
+ | options | <code>TerrainSpecification</code> | Options object specifying the terrain source. |
1612
+
1613
+ <a name="setTransformRequest"></a>
1614
+
1615
+ ## setTransformRequest(transformRequest) ⇒ <code>this</code>
1616
+ Updates the requestManager's transform request with a new function.
1617
+
1618
+ **Kind**: global function
1619
+
1620
+ | Param | Type | Description |
1621
+ | --- | --- | --- |
1622
+ | transformRequest | <code>RequestTransformFunction</code> | The callback function to update the transform request. |
1623
+
1624
+ <a name="setZoom"></a>
1625
+
1626
+ ## setZoom(zoom, [eventData]) ⇒ <code>this</code>
1627
+ Sets the map's zoom level.
1628
+
1629
+ **Kind**: global function
1630
+
1631
+ | Param | Type | Description |
1632
+ | --- | --- | --- |
1633
+ | zoom | <code>number</code> | The zoom level to set (0-20). |
1634
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1635
+
1636
+ <a name="snapToNorth"></a>
1637
+
1638
+ ## snapToNorth([options], [eventData]) ⇒ <code>this</code>
1639
+ Snaps the map so that north is up (0┬░ bearing), if the current bearing is close enough to it.
1640
+
1641
+ **Kind**: global function
1642
+
1643
+ | Param | Type | Description |
1644
+ | --- | --- | --- |
1645
+ | [options] | <code>Object</code> | Options for snapping to north. |
1646
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1647
+
1648
+ <a name="stop"></a>
1649
+
1650
+ ## stop() ⇒ <code>this</code>
1651
+ Stops any animated transition underway.
1652
+
1653
+ **Kind**: global function
1654
+ <a name="triggerRepaint"></a>
1655
+
1656
+ ## triggerRepaint() ⇒ <code>void</code>
1657
+ Triggers the rendering of a single frame.
1658
+
1659
+ **Kind**: global function
1660
+ <a name="unproject"></a>
1661
+
1662
+ ## unproject(point) ⇒ <code>LngLat</code>
1663
+ Returns geographical coordinates corresponding to the specified pixel coordinates.
1664
+
1665
+ **Kind**: global function
1666
+ **Returns**: <code>LngLat</code> - The geographical coordinates corresponding to the specified pixel coordinates.
1667
+
1668
+ | Param | Type | Description |
1669
+ | --- | --- | --- |
1670
+ | point | <code>PointLike</code> | The pixel coordinates to unproject. |
1671
+
1672
+ <a name="updateImage"></a>
1673
+
1674
+ ## updateImage(id, image) ⇒ <code>this</code>
1675
+ Updates an existing image in the style's sprite.
1676
+
1677
+ **Kind**: global function
1678
+
1679
+ | Param | Type | Description |
1680
+ | --- | --- | --- |
1681
+ | id | <code>string</code> | The ID of the image to update. |
1682
+ | image | <code>ImageBitmap</code> \| <code>HTMLImageElement</code> \| <code>ImageData</code> \| <code>StyleImageInterface</code> \| <code>object</code> | The new image data. |
1683
+
1684
+ <a name="zoomIn"></a>
1685
+
1686
+ ## zoomIn([options], [eventData]) ⇒ <code>this</code>
1687
+ Increases the map's zoom level by 1.
1688
+
1689
+ **Kind**: global function
1690
+
1691
+ | Param | Type | Description |
1692
+ | --- | --- | --- |
1693
+ | [options] | <code>Object</code> | Options for zooming in. |
1694
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1695
+
1696
+ <a name="zoomOut"></a>
1697
+
1698
+ ## zoomOut([options], [eventData]) ⇒ <code>this</code>
1699
+ Decreases the map's zoom level by 1.
1700
+
1701
+ **Kind**: global function
1702
+
1703
+ | Param | Type | Description |
1704
+ | --- | --- | --- |
1705
+ | [options] | <code>Object</code> | Options for zooming out. |
1706
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1707
+
1708
+ <a name="zoomTo"></a>
1709
+
1710
+ ## zoomTo(zoom, [options], [eventData]) ⇒ <code>this</code>
1711
+ Zooms the map to the specified zoom level with an animated transition.
1712
+
1713
+ **Kind**: global function
1714
+
1715
+ | Param | Type | Description |
1716
+ | --- | --- | --- |
1717
+ | zoom | <code>number</code> | The zoom level to transition to. |
1718
+ | [options] | <code>Object</code> | Options for zooming to. |
1719
+ | [eventData] | <code>any</code> | Additional properties to be added to event objects of events triggered by this method. |
1720
+
1721
+ <a name="addLayerGeoJSON"></a>
1722
+
1723
+ ## addLayerGeoJSON(layer, layerPosition)
1724
+ Adds a GeoJSON layer to the map.
1725
+
1726
+ **Kind**: global function
1727
+
1728
+ | Param | Type | Description |
1729
+ | --- | --- | --- |
1730
+ | layer | <code>Object</code> | Options for the GeoJSON layer to add. |
1731
+ | layer.id | <code>string</code> | Unique identifier for the layer. |
1732
+ | layer.data | <code>Object</code> | GeoJSON data for the layer. |
1733
+ | layer.type | <code>string</code> | Map layer type (e.g., 'symbol', 'circle', 'fill'). * |
1734
+ | layer.layout | <code>Object</code> | Layer layout configuration. |
1735
+ | layer.paint | <code>Object</code> | Layer paint configuration. |
1736
+ | layerPosition | <code>string</code> | Position of the layer: 'top', below 'labels' or below 'lines'. |
1737
+
1738
+ <a name="addLayerWMS"></a>
1739
+
1740
+ ## addLayerWMS(tiles, idLayer, options)
1741
+ Adds a WMS layer to the map.
1742
+
1743
+ **Kind**: global function
1744
+
1745
+ | Param | Type | Description |
1746
+ | --- | --- | --- |
1747
+ | tiles | <code>Array.&lt;string&gt;</code> | Tiles for the raster layer. |
1748
+ | idLayer | <code>string</code> | Unique identifier for the layer. |
1749
+ | options | <code>Object</code> | Options of the layer: layout, paint and layerPosition. |
1750
+
1751
+ <a name="addLogo"></a>
1752
+
1753
+ ## addLogo(options)
1754
+ Adds a logo to the map.
1755
+
1756
+ **Kind**: global function
1757
+
1758
+ | Param | Type | Description |
1759
+ | --- | --- | --- |
1760
+ | options | <code>Object</code> | Options for the logo to add. |
1761
+ | options.id | <code>string</code> | Unique identifier for the logo. |
1762
+ | options.url | <code>string</code> | URL of the logo image. |
1763
+ | options.href | <code>string</code> | URL to navigate to when the logo is clicked. |
1764
+ | options.height | <code>string</code> | Height of the logo. |
1765
+
1766
+ <a name="addBasemapsICGC"></a>
1767
+
1768
+ ## addBasemapsICGC(basesArray)
1769
+ Adds base layers to the map.
1770
+
1771
+ **Kind**: global function
1772
+
1773
+ | Param | Type | Description |
1774
+ | --- | --- | --- |
1775
+ | basesArray | <code>Array.&lt;Object&gt;</code> | Array of base layer objects. |
1776
+
1777
+ <a name="addBasemaps"></a>
1778
+
1779
+ ## addBasemaps(baseLayers)
1780
+ Adds base layers to the map.
1781
+
1782
+ **Kind**: global function
1783
+
1784
+ | Param | Type | Description |
1785
+ | --- | --- | --- |
1786
+ | baseLayers | <code>Array.&lt;Object&gt;</code> | Array of base layer objects. |
1787
+ | baseLayers.label | <code>string</code> | Label for the base layer. |
1788
+ | baseLayers.image | <code>string</code> | URL of the image representing the base layer. |
1789
+ | baseLayers.url | <code>string</code> | URL of the base layer style. |
1790
+
1791
+ <a name="addFeatureQuery"></a>
1792
+
1793
+ ## addFeatureQuery(idLayer, queryFields, popupStyle)
1794
+ Adds feature query function to a layer.
1795
+
1796
+ **Kind**: global function
1797
+
1798
+ | Param | Type | Description |
1799
+ | --- | --- | --- |
1800
+ | idLayer | <code>string</code> | name of the layer |
1801
+ | queryFields | <code>objetc</code> | optional indications for the popup |
1802
+ | popupStyle | <code>objetc</code> | optional indications for the popup style |
1803
+
1804
+ <a name="addScaleControl"></a>
1805
+
1806
+ ## addScaleControl(options, position)
1807
+ Adds a scale control to the map.
1808
+ * @function addScaleControl
1809
+
1810
+ **Kind**: global function
1811
+
1812
+ | Param | Type | Description |
1813
+ | --- | --- | --- |
1814
+ | options | <code>Object</code> | Options for configuring the scale control. |
1815
+ | position | <code>string</code> | The position on the map to place the scale control (e.g., 'top-left', 'bottom-right'). |
1816
+
1817
+ <a name="addExportControl"></a>
1818
+
1819
+ ## addExportControl(options, [position])
1820
+ Adds an export control to the map with the provided options and position.
1821
+
1822
+ **Kind**: global function
1823
+
1824
+ | Param | Type | Description |
1825
+ | --- | --- | --- |
1826
+ | options | <code>Object</code> \| <code>string</code> | Options for the export control or position if provided as a string. |
1827
+ | [position] | <code>string</code> | Position to place the export control (e.g., 'top-right'). |
1828
+
1829
+ <a name="addMarker"></a>
1830
+
1831
+ ## addMarker(options) ⇒ <code>Object</code>
1832
+ Adds a marker to the map.
1833
+
1834
+ **Kind**: global function
1835
+ **Returns**: <code>Object</code> - - Instance of the added marker.
1836
+
1837
+ | Param | Type | Description |
1838
+ | --- | --- | --- |
1839
+ | options | <code>Object</code> | Options for the marker to add. |
1840
+ | options.text | <code>string</code> | Text content for the marker popup. |
1841
+ | options.options | <code>Object</code> | Marker options. |
1842
+ | options.coord | <code>LngLatLike</code> | Coordinates for placing the marker. |
1843
+ | options.textOffset | <code>Object</code> | Text offset for the marker popup. |
1844
+
1845
+ <a name="addPopup"></a>
1846
+
1847
+ ## addPopup(options, coord, text, popupStyle) ⇒ <code>Object</code>
1848
+ Adds a popup to the map.
1849
+
1850
+ **Kind**: global function
1851
+ **Returns**: <code>Object</code> - - Instance of the added popup.
1852
+
1853
+ | Param | Type | Description |
1854
+ | --- | --- | --- |
1855
+ | options | <code>Object</code> | Options for the popup to add. |
1856
+ | coord | <code>LngLatLike</code> | Coordinates for placing the popup. |
1857
+ | text | <code>string</code> | HTML content for the popup. |
1858
+ | popupStyle | <code>string</code> | css content for the popup style. |
1859
+
1860
+ <a name="addFullScreen"></a>
1861
+
1862
+ ## addFullScreen([position])
1863
+ Adds a fullscreen control to the map.
1864
+
1865
+ **Kind**: global function
1866
+
1867
+ | Param | Type | Default | Description |
1868
+ | --- | --- | --- | --- |
1869
+ | [position] | <code>string</code> | <code>&quot;&#x27;top-right&#x27;&quot;</code> | Position to add the control on the map. |
1870
+
1871
+ <a name="addMenuItem"></a>
1872
+
1873
+ ## addMenuItem(name)
1874
+ Adds a menu item with a checkbox for controlling the visibility of a layer on the map.
1875
+
1876
+ **Kind**: global function
1877
+
1878
+ | Param | Type | Description |
1879
+ | --- | --- | --- |
1880
+ | name | <code>string</code> | The name of the layer corresponding to the menu item. |
1881
+
1882
+ <a name="addLayerTree"></a>
1883
+
1884
+ ## addLayerTree(options)
1885
+ Adds a layer tree to the map.
1886
+
1887
+ **Kind**: global function
1888
+
1889
+ | Param | Type | Description |
1890
+ | --- | --- | --- |
1891
+ | options | <code>Object</code> | Options for the layer tree to add. |
1892
+ | options.features | <code>Object</code> | Features for the layer tree. |
1893
+ | options.id | <code>string</code> | Unique identifier for the layer tree. |
1894
+ | options.type | <code>string</code> | Type of layer tree ('geojson', 'raster', etc.). |
1895
+
1896
+ <a name="createNavigationControl"></a>
1897
+
1898
+ ## createNavigationControl(options, [position]) ⇒ <code>Object</code>
1899
+ Creates a navigation control with the provided options.
1900
+
1901
+ **Kind**: global function
1902
+ **Returns**: <code>Object</code> - - Instance of the created navigation control.
1903
+
1904
+ | Param | Type | Default | Description |
1905
+ | --- | --- | --- | --- |
1906
+ | options | <code>Object</code> | | Options for the navigation control. |
1907
+ | [position] | <code>string</code> | <code>&quot;&#x27;top-right&#x27;&quot;</code> | Position to add the control on the map. |
1908
+
1909
+ <a name="addNavigationControl"></a>
1910
+
1911
+ ## addNavigationControl(options, [position])
1912
+ Adds a navigation control to the map with the provided options.
1913
+
1914
+ **Kind**: global function
1915
+
1916
+ | Param | Type | Default | Description |
1917
+ | --- | --- | --- | --- |
1918
+ | options | <code>Object</code> | | Options for the navigation control. |
1919
+ | [position] | <code>string</code> | <code>&quot;&#x27;top-right&#x27;&quot;</code> | Position to add the control on the map. |
1920
+
1921
+ <a name="addAttributionControl"></a>
1922
+
1923
+ ## addAttributionControl(options, [position])
1924
+ Adds an attribution control to the map with the provided options.
1925
+
1926
+ **Kind**: global function
1927
+
1928
+ | Param | Type | Default | Description |
1929
+ | --- | --- | --- | --- |
1930
+ | options | <code>Object</code> | | Options for the attribution control. |
1931
+ | [position] | <code>string</code> | <code>&quot;&#x27;bottom-right&#x27;&quot;</code> | Position to add the control on the map. |
1932
+
1933
+ <a name="addImageLayerICGC"></a>
1934
+
1935
+ ## addImageLayerICGC(url, idLayer, options)
1936
+ Adds an ICGC image layer to the map based on the specified name and year.
1937
+
1938
+ **Kind**: global function
1939
+
1940
+ | Param | Type | Description |
1941
+ | --- | --- | --- |
1942
+ | url | <code>string</code> | The url of the layer. |
1943
+ | idLayer | <code>string</code> | The user id for the layer. |
1944
+ | options | <code>object</code> | Type, position,layout and paint options for the layer |
1945
+
1946
+ <a name="addVectorLayerICGC"></a>
1947
+
1948
+ ## addVectorLayerICGC(url, idLayer, options)
1949
+ Adds an ICGC vector layer to the map based on the specified name and year.
1950
+
1951
+ **Kind**: global function
1952
+
1953
+ | Param | Type | Description |
1954
+ | --- | --- | --- |
1955
+ | url | <code>string</code> | The url of the vector layer. |
1956
+ | idLayer | <code>string</code> | The user id for the vector layer. |
1957
+ | options | <code>object</code> | Type, position,layout and paint options for the layer |
1958
+
1959
+ <a name="addFGBLayerICGC"></a>
1960
+
1961
+ ## addFGBLayerICGC(url, idLayer, options)
1962
+ Adds an ICGC FGB layer to the map based on the specified name and year.
1963
+
1964
+ **Kind**: global function
1965
+
1966
+ | Param | Type | Description |
1967
+ | --- | --- | --- |
1968
+ | url | <code>string</code> | The url of the FGB layer. |
1969
+ | idLayer | <code>string</code> | Id for the layer. |
1970
+ | options | <code>object</code> | Paint option for the layer |
1971
+
1972
+ <a name="addTerrainICGC"></a>
1973
+
1974
+ ## addTerrainICGC(url, controlPosition)
1975
+ Adds 3D terrain to the map using hillshade.
1976
+
1977
+ **Kind**: global function
1978
+
1979
+ | Param | Type | Description |
1980
+ | --- | --- | --- |
1981
+ | url | <code>string</code> | dataset url of the terrain |
1982
+ | controlPosition | <code>string</code> | Position to add the control on the map. |
1983
+
1984
+ <a name="addLegend"></a>
1985
+
1986
+ ## addLegend(url, idLayer)
1987
+ Add image legend.
1988
+
1989
+ **Kind**: global function
1990
+
1991
+ | Param | Type | Description |
1992
+ | --- | --- | --- |
1993
+ | url | <code>string</code> | image legend url. |
1994
+ | idLayer | <code>string</code> | layer's name. |
1995
+
1996
+ <a name="_findImageType"></a>
1997
+
1998
+ ## \_findImageType(url, var1, var2, var3, var4) ⇒ <code>string</code> \| <code>null</code>
1999
+ Finds the type of image based on the provided URL and specified vectors.
2000
+
2001
+ **Kind**: global function
2002
+ **Returns**: <code>string</code> \| <code>null</code> - - The type of image if found, otherwise null.
2003
+
2004
+ | Param | Type | Description |
2005
+ | --- | --- | --- |
2006
+ | url | <code>string</code> | The URL of the image to find the type for. |
2007
+ | var1 | <code>Object</code> | The first vector object containing key-value pairs. |
2008
+ | var2 | <code>Object</code> | The second vector object containing key-value pairs. |
2009
+ | var3 | <code>Object</code> | The third vector object containing key-value pairs. |
2010
+ | var4 | <code>Object</code> | The fourth vector object containing key-value pairs. |
2011
+
2012
+ <a name="_getKeyByUrlFGB"></a>
2013
+
2014
+ ## \_getKeyByUrlFGB(url) ⇒ <code>string</code> \| <code>null</code>
2015
+ Gets the key by URL from the FGBAdmin layers.
2016
+
2017
+ **Kind**: global function
2018
+ **Returns**: <code>string</code> \| <code>null</code> - - The key if found, otherwise null.
2019
+
2020
+ | Param | Type | Description |
2021
+ | --- | --- | --- |
2022
+ | url | <code>string</code> | The URL to find the key for in the FGBAdmin layers. |
2023
+
2024
+ <a name="_getLegendByName"></a>
2025
+
2026
+ ## \_getLegendByName(name) ⇒ <code>string</code> \| <code>null</code>
2027
+ Gets the legend by name from the default vector layers.
2028
+
2029
+ **Kind**: global function
2030
+ **Returns**: <code>string</code> \| <code>null</code> - - The legend if found, otherwise null.
2031
+
2032
+ | Param | Type | Description |
2033
+ | --- | --- | --- |
2034
+ | name | <code>string</code> | The name of the vector layer to get the legend for. |
2035
+
2036
+ <a name="_getKeyByUrlVector"></a>
2037
+
2038
+ ## \_getKeyByUrlVector(url) ⇒ <code>string</code> \| <code>null</code>
2039
+ Gets the key by URL from the Vector layers.
2040
+
2041
+ **Kind**: global function
2042
+ **Returns**: <code>string</code> \| <code>null</code> - - The key if found, otherwise null.
2043
+
2044
+ | Param | Type | Description |
2045
+ | --- | --- | --- |
2046
+ | url | <code>string</code> | The URL to find the key for in the Vector layers. |
2047
+
2048
+ <a name="_raiseText3DStyle"></a>
2049
+
2050
+ ## \_raiseText3DStyle() ⇒ <code>Promise.&lt;void&gt;</code>
2051
+ Raises text 3D style on the map.
2052
+
2053
+ **Kind**: global function
2054
+ **Returns**: <code>Promise.&lt;void&gt;</code> - - A promise that resolves after updating the text 3D style on the map.
2055
+ <a name="_dealStyleMaps"></a>
2056
+
2057
+ ## \_dealStyleMaps(name) ⇒ <code>Object</code> \| <code>string</code> \| <code>null</code>
2058
+ Deals with map styles based on the name.
2059
+
2060
+ **Kind**: global function
2061
+ **Returns**: <code>Object</code> \| <code>string</code> \| <code>null</code> - - The map style object if found, or the input name if not found, or null if an error occurs.
2062
+
2063
+ | Param | Type | Description |
2064
+ | --- | --- | --- |
2065
+ | name | <code>string</code> | The name of the map style. |
2066
+
2067
+ <a name="_dealOrto3dStyle"></a>
2068
+
2069
+ ## \_dealOrto3dStyle(name) ⇒ <code>void</code> \| <code>null</code>
2070
+ Deals with the 3D ortho style based on the name.
2071
+
2072
+ **Kind**: global function
2073
+ **Returns**: <code>void</code> \| <code>null</code> - - Returns null if an error occurs.
2074
+
2075
+ | Param | Type | Description |
2076
+ | --- | --- | --- |
2077
+ | name | <code>string</code> | The name of the orto3D style. |
2078
+
2079
+ <a name="_dealOrderLayer"></a>
2080
+
2081
+ ## \_dealOrderLayer(order) ⇒ <code>string</code>
2082
+ Deals with the order of the layer.
2083
+
2084
+ **Kind**: global function
2085
+ **Returns**: <code>string</code> - - The id of the first symbol layer if the order is 'symbol', the id of the first line layer if the order is 'line', otherwise an empty string.
2086
+
2087
+ | Param | Type | Description |
2088
+ | --- | --- | --- |
2089
+ | order | <code>string</code> | The order of the layer. |
2090
+
2091
+ <a name="_firstSymbolLayer"></a>
2092
+
2093
+ ## \_firstSymbolLayer() ⇒ <code>string</code> \| <code>undefined</code>
2094
+ Retrieves the id of the first symbol layer.
2095
+
2096
+ **Kind**: global function
2097
+ **Returns**: <code>string</code> \| <code>undefined</code> - - The id of the first symbol layer if found, otherwise undefined.
2098
+ <a name="_firstLineLayer"></a>
2099
+
2100
+ ## \_firstLineLayer() ⇒ <code>string</code> \| <code>undefined</code>
2101
+ Retrieves the id of the first line layer.
2102
+
2103
+ **Kind**: global function
2104
+ **Returns**: <code>string</code> \| <code>undefined</code> - - The id of the first line layer if found, otherwise undefined.
2105
+ <a name="_createCitiesMapboxLayer"></a>
2106
+
2107
+ ## \_createCitiesMapboxLayer() ⇒ <code>MapboxLayer</code> \| <code>null</code>
2108
+ Creates a Mapbox layer for displaying cities in 3D.
2109
+
2110
+ **Kind**: global function
2111
+ **Returns**: <code>MapboxLayer</code> \| <code>null</code> - - The Mapbox layer for displaying cities in 3D if created successfully, otherwise null.