mapbox / mapbox/mapbox-maps-flutter
Offline Tile Region Download Does Not Work with Custom (Non-Mapbox) Raster/Vector Tile Sources
Nessuno ha ancora preso questa issue.
- Lingua principale
- Dart
- Stelle
- 380
- Fork
- 204
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello,
I am using the Mapbox Maps Flutter SDK and trying to enable offline map support with a custom style.json file. My style references raster and/or vector tile sources hosted on my own servers (not Mapbox). The style loads and displays correctly online, and loadStylePack works as expected. However, when I attempt to download a tile region for offline use with these custom sources, the download progress remains at zero and no tiles are downloaded. No error is thrown, but the offline region is not populated.
Steps to reproduce:
Create a style.json referencing custom raster/vector tile sources (e.g., WMS, XYZ, or self-hosted vector tiles).
Use this style URL with loadStylePack and loadTileRegion in the Flutter SDK.
Observe that the style pack loads, but the tile region download does not progress and no tiles are cached for offline use.
Expected behavior:
I expect the SDK to download and cache tiles from my custom sources for offline use, as the style specification allows non-Mapbox sources.
Actual behavior:
No tiles are downloaded for offline use when using custom (non-Mapbox) sources, even though the style loads and displays online.
Question:
Is offline tile region download with custom (non-Mapbox) tile sources supported in the Flutter SDK? If not, is there a workaround or is this a known limitation?
Thank you!
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il problema con uno style.json personalizzato e sorgenti raster o vettoriali non Mapbox, usando loadStylePack seguito da loadTileRegion. Verifica se il Flutter SDK documenta o implementa i download offline per queste sorgenti; il lavoro è completato quando è stato stabilito il comportamento supportato e sono stati documentati una limitazione confermata o un workaround.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- dart, flutter
- Ambito
- mobile-dev
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100