summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/darwin/src/MGLOfflineStorage.h2
-rw-r--r--platform/ios/app/MBXAppDelegate.m4
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLOfflineStorage.h b/platform/darwin/src/MGLOfflineStorage.h
index ae1f73635f..10f092ccc2 100644
--- a/platform/darwin/src/MGLOfflineStorage.h
+++ b/platform/darwin/src/MGLOfflineStorage.h
@@ -366,7 +366,7 @@ MGL_EXPORT
ambient cache size to 30 MB and offline packs use 20 MB, there may only be 10 MB
reserved for the ambient cache.
- This method should be called before the database is initialized.
+ This method should be called before the map and map style have been loade.
This method is potentially expensive, as the ambient cache will trim cached data
to prevent the database from being larger than the specified amount.
diff --git a/platform/ios/app/MBXAppDelegate.m b/platform/ios/app/MBXAppDelegate.m
index 27d45c7615..7d2ceaa7f0 100644
--- a/platform/ios/app/MBXAppDelegate.m
+++ b/platform/ios/app/MBXAppDelegate.m
@@ -14,9 +14,9 @@
[MGLLoggingConfiguration sharedConfiguration].loggingLevel = MGLLoggingLevelFault;
#endif
- [[MGLOfflineStorage sharedOfflineStorage] setMaximumAmbientCacheSize:30 withCallback:^(NSError * _Nullable error) {
+ [[MGLOfflineStorage sharedOfflineStorage] setMaximumAmbientCacheSize:30000000 withCallback:^(NSError * _Nullable error) {
if (!error) {
- NSLog(@"Maximum ambient cache size: 30");
+ NSLog(@"Maximum ambient cache size: 30000000");
}
}];
[MGLMetricsManager sharedManager].delegate = self;