[core] Limit total number of offline Mapbox tiles
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user