Skip to content
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

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

danieljosua1
Copy link
Contributor

No description provided.

@danieljosua1
Copy link
Contributor Author

@m0nac0

Copy link

@Zverik Zverik left a 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();

Copy link

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 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the indentation.

@josxha josxha added this to the v0.20.1 milestone Oct 3, 2024
@danieljosua1
Copy link
Contributor Author

@josxha @Zverik Thanks a lot for your review! I have adjusted the code accordingly 👍

Copy link
Collaborator

@josxha josxha left a 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.

@josxha josxha enabled auto-merge (squash) October 8, 2024 12:21
@josxha josxha merged commit 5a3daa2 into maplibre:main Oct 8, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants