From 50fd9175109e01c5286d3363df21aeba6e89087b Mon Sep 17 00:00:00 2001 From: Asheem Mamoowala Date: Fri, 1 Sep 2017 16:33:35 -0700 Subject: Fast tileCount with help from @mapbox/sphericalmercator module --- include/mbgl/storage/offline.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/mbgl/storage') diff --git a/include/mbgl/storage/offline.hpp b/include/mbgl/storage/offline.hpp index 818cfe2ba5..afb2fa1e81 100644 --- a/include/mbgl/storage/offline.hpp +++ b/include/mbgl/storage/offline.hpp @@ -31,12 +31,14 @@ public: /* Private */ std::vector tileCover(SourceType, uint16_t tileSize, const Range& zoomRange) const; - + unsigned long tileCount(SourceType, uint16_t tileSize, const Range& zoomRange) const; const std::string styleURL; const LatLngBounds bounds; const double minZoom; const double maxZoom; const float pixelRatio; +private: + Range coveringZoomRange(SourceType, uint16_t tileSize, const Range& zoomRange) const; }; /* -- cgit v1.2.1