summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-06-20 16:30:28 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-07-09 15:03:39 -0700
commit6b4541b516293ec61bbdb86b4cf9f98cc78e320a (patch)
tree16f4d76fcc261b171c0aa43c01286c54e79c28c2
parent104713054e03303c2c2489390db28136f31d540a (diff)
downloadqtlocation-mapboxgl-6b4541b516293ec61bbdb86b4cf9f98cc78e320a.tar.gz
[ios] started invalidateAmbientCache
-rw-r--r--platform/darwin/src/MGLOfflineStorage.h4
-rw-r--r--platform/darwin/src/MGLOfflineStorage.mm7
2 files changed, 7 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLOfflineStorage.h b/platform/darwin/src/MGLOfflineStorage.h
index 2f869f6bde..a827a1261d 100644
--- a/platform/darwin/src/MGLOfflineStorage.h
+++ b/platform/darwin/src/MGLOfflineStorage.h
@@ -358,9 +358,7 @@ MGL_EXPORT
Forces cache tiles to be invalidated and updated from the tile server. This ensures that the
*/
-- (void)invalidateAmbientCache {
-
-}
+- (void)invalidateAmbientCache;
/*
Inserts the provided resource into the ambient cache.
diff --git a/platform/darwin/src/MGLOfflineStorage.mm b/platform/darwin/src/MGLOfflineStorage.mm
index b7f5531bb1..6e15b01bbe 100644
--- a/platform/darwin/src/MGLOfflineStorage.mm
+++ b/platform/darwin/src/MGLOfflineStorage.mm
@@ -490,10 +490,15 @@ const MGLExceptionName MGLUnsupportedRegionTypeException = @"MGLUnsupportedRegio
- (void)setMaximumAmbientCacheSize:(uint64_t)cacheSize {
- if ( ! cacheSize > 0 ) { /* give a warning*/ } ;
+ if ( ! (cacheSize > 0) ) { /* give a warning*/ } ;
_mbglFileSource->setMaximumAmbientCacheSize(cacheSize, nil); // I should do something with the std::exception_ptr here but i don't know what
}
+- (void)invalidateAmbientCache {
+ _mbglFileSource->invalidateAmbientCache(nil);
+ // Do something with the std::exception_ptr here
+}
+
#pragma mark -
- (unsigned long long)countOfBytesCompleted {