Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Tiles are cached by url template in the database #7455

Closed
wibge opened this issue Dec 15, 2016 · 1 comment
Closed

Tiles are cached by url template in the database #7455

wibge opened this issue Dec 15, 2016 · 1 comment
Labels
Core The cross-platform C++ core, aka mbgl feature

Comments

@wibge
Copy link

wibge commented Dec 15, 2016

Tilesets are cached by url template, if the url to a tile source changes previously cached and downloaded maps are not seamlessly loaded.

We have tile sources that have frequently changing API keys as part of the URL.

Platform: ios
Mapbox SDK version: 3.4

Steps to trigger behavior

  1. Create a tileset with a URL containing an API key
  2. Cache tiles from the tileset
  3. Change the API key in the URL

Expected behavior

Cached tiles are displayed when the tileset is on screen

Actual behavior

Cached tiles are not displayed

I'd propose adding an optional tilecachekey parameter to use to override caching by url template.

@friedbunny friedbunny added Core The cross-platform C++ core, aka mbgl feature labels Dec 15, 2016
@jfirebaugh
Copy link
Contributor

#8084 adds a feature that provides the ability to modify the URL independently of the value used for a cache key. Per #8041 (comment), I believe this addresses your use case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl feature
Projects
None yet
Development

No branches or pull requests

3 participants