[core] Limit total number of offline Mapbox tiles

This commit is contained in:
John Firebaugh
2016-02-23 18:25:36 -08:00
parent 5cefaeb857
commit 065cda83fa
11 changed files with 261 additions and 15 deletions

View File

@@ -169,6 +169,8 @@ std::string canonicalizeTileURL(const std::string& url, SourceType type, uint16_
return result;
}
const uint64_t DEFAULT_OFFLINE_TILE_COUNT_LIMIT = std::numeric_limits<uint64_t>::max();
} // end namespace mapbox
} // end namespace util
} // end namespace mbgl

View File

@@ -19,6 +19,8 @@ std::string normalizeTileURL(const std::string& url, const std::string& accessTo
// Return a "mapbox://tiles/..." URL (suitable for normalizeTileURL) for the given Mapbox tile URL.
std::string canonicalizeTileURL(const std::string& url, SourceType, uint16_t tileSize);
extern const uint64_t DEFAULT_OFFLINE_TILE_COUNT_LIMIT;
} // namespace mapbox
} // namespace util
} // namespace mbgl