mapbox / mapbox/mapbox-maps-ios
RasterSource/RasterLayer not caching
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
Hello, we are using a 3rd party provider for a mapping layer and adding it as a RasterSource and RasterLayer. There's no issue with the generation, display, or performance of the layer. However, the layer is not being cached locally once downloaded from the 3rd party API like it did with the previous version of Mapbox ([mapbox-gl-native-ios](https://github.com/mapbox/mapbox-gl-native-ios)) that we used. I've found no information in the documentation regarding caching of Raster layers nor have I found anyone else with the same issue. Here's the only relevant info from the logs:
[Mapbox] [Warning, maps-core]: {com.mapbox.common.TileStoreFile}[General]: Failed to get datasets from URL template https://api.gic.org/wmts/GetTile/bluesky-high/default/EPSG_3857/{z}/{y}/{x}?format=image/png&AuthToken=XXXX
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing RasterSource and RasterLayer caching behavior in the iOS Mapbox SDK, then investigate the TileStoreFile warning for the reported WMTS URL. Compare this with the caching behavior of the previous mapbox-gl-native-ios version. Done means downloaded raster tiles are retained locally and reused rather than fetched again from the third-party API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100