map-gl-offline 0.8.4 → 0.8.5
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/index.d.ts +1 -1
- package/dist/index.esm.js +5 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/ui/offlineManagerControl.d.ts +15 -4
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -13247,7 +13247,7 @@
|
|
|
13247
13247
|
/**
|
|
13248
13248
|
* MapLibre GL JS control for managing offline map regions.
|
|
13249
13249
|
*
|
|
13250
|
-
* Implements the IControl interface to integrate with MapLibre GL maps.
|
|
13250
|
+
* Implements the IControl interface to integrate with MapLibre GL and Mapbox GL maps.
|
|
13251
13251
|
* Provides a complete UI for downloading, managing, and loading offline map data.
|
|
13252
13252
|
*
|
|
13253
13253
|
* The control automatically intercepts fetch requests to serve offline resources
|
|
@@ -13411,10 +13411,13 @@
|
|
|
13411
13411
|
* Called when the control is added to a map.
|
|
13412
13412
|
* Implements the IControl.onAdd interface method.
|
|
13413
13413
|
*
|
|
13414
|
-
* @param map - The MapLibre GL map instance
|
|
13414
|
+
* @param map - The MapLibre GL or Mapbox GL map instance
|
|
13415
13415
|
* @returns The control's container element
|
|
13416
13416
|
*/
|
|
13417
13417
|
onAdd(map) {
|
|
13418
|
+
// Internally the control works against the MapLibre `Map` typings; the
|
|
13419
|
+
// structural `ControlMap` parameter is what lets it satisfy both
|
|
13420
|
+
// libraries' `IControl` so callers need no cast (see issue #39).
|
|
13418
13421
|
this.map = map;
|
|
13419
13422
|
// Detect the correct CSS prefix for the map library in use
|
|
13420
13423
|
const cssPrefix = detectCssPrefix(map.getContainer());
|