mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

Offline Tile Region Download Does Not Work with Custom (Non-Mapbox) Raster/Vector Tile Sources

Open azaderdogan opened this issue 7 months ago • 4 comments

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!

azaderdogan avatar May 06 '25 07:05 azaderdogan

Hi @azaderdogan , have you found a workaround yet? I am experiencing the same issue.

tchengck avatar Jun 06 '25 13:06 tchengck

Hi @azaderdogan, @tchengck . Have any of you found a workaround?

aantoine avatar Aug 21 '25 19:08 aantoine

nope unfortunately, I use MapLibre currently.

azaderdogan avatar Aug 22 '25 07:08 azaderdogan

Same here. No workaround :(

tchengck avatar Aug 22 '25 12:08 tchengck