-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of clearAmbientCache functionality #502
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me, apart from some whitespace. Just duplicates the invalidateAmbientCache
calls with a new name.
@@ -74,6 +74,8 @@ abstract class MapLibrePlatform { | |||
Future<List> querySourceFeatures( | |||
String sourceId, String? sourceLayerId, List<Object>? filter); | |||
Future invalidateAmbientCache(); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this empty line is not needed (or should be moved below).
@@ -158,6 +158,15 @@ class MapLibreMapController: NSObject, FlutterPlatformView, MLNMapViewDelegate, | |||
result(nil) | |||
} | |||
} | |||
case "map#clearAmbientCache": | |||
MLNOfflineStorage.shared.clearAmbientCache { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the indentation.
-Fixed Indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pull request @danieljosua1 and thanks for the review @Zverik!
The changes look good for me, too.
No description provided.