map-gl-offline 0.8.3 → 0.8.4
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/README.md +6 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/types/region.d.ts +1 -1
- package/dist/ui/managers/downloadManager.d.ts +3 -2
- package/dist/ui/offlineManagerControl.d.ts +1 -1
- package/package.json +1 -1
package/dist/types/region.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface DownloadRegionProgress {
|
|
|
22
22
|
* Options for the programmatic `downloadRegion` pipeline.
|
|
23
23
|
*/
|
|
24
24
|
export interface DownloadRegionOptions {
|
|
25
|
-
/** Called with per-phase progress during style → sprites → glyphs → tiles → metadata. */
|
|
25
|
+
/** Called with per-phase progress during style → sprites → glyphs → models → tiles → metadata. */
|
|
26
26
|
onProgress?: (progress: DownloadRegionProgress) => void;
|
|
27
27
|
/** Style provider hint when the style needs to be fetched. Defaults to 'auto'. */
|
|
28
28
|
provider?: StyleProvider;
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* Download Manager for offline map regions.
|
|
3
3
|
*
|
|
4
4
|
* This module handles the complete download workflow for offline map regions,
|
|
5
|
-
* including styles, sprites, glyphs (fonts), and map tiles. It provides
|
|
5
|
+
* including styles, sprites, glyphs (fonts), 3D models, and map tiles. It provides
|
|
6
6
|
* progress tracking across all download phases.
|
|
7
7
|
*
|
|
8
8
|
* **Download Phases:**
|
|
9
9
|
* 1. `style` - Downloads the map style JSON and processes sources
|
|
10
10
|
* 2. `sprites` - Downloads sprite images and JSON for map icons
|
|
11
11
|
* 3. `glyphs` - Downloads font glyphs for text rendering
|
|
12
|
-
* 4. `
|
|
12
|
+
* 4. `models` - Downloads 3D model assets (Mapbox Standard trees / turbines)
|
|
13
|
+
* 5. `tiles` - Downloads map tiles for the specified region bounds
|
|
13
14
|
*
|
|
14
15
|
* **Usage:**
|
|
15
16
|
* The DownloadManager is typically instantiated by the OfflineManagerControl
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - Integrates seamlessly as a MapLibre GL control
|
|
13
13
|
* - Intercepts fetch requests to serve offline resources from IndexedDB
|
|
14
14
|
* - Supports light and dark themes
|
|
15
|
-
* - Shows download progress across all phases (style, sprites, glyphs, tiles)
|
|
15
|
+
* - Shows download progress across all phases (style, sprites, glyphs, models, tiles)
|
|
16
16
|
* - Optional bounding box visualization for regions
|
|
17
17
|
*
|
|
18
18
|
* @example
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "map-gl-offline",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "A TypeScript-compatible npm package for MapLibre GL JS that enables comprehensive offline storage and usage of vector/raster tiles, sprites, styles, fonts (glyphs), and entire map regions with advanced analytics, import/export capabilities, and intelligent cleanup.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|