Skip to content

Commit

Permalink
Rename clusterAll to invokeClusteringForEachClusterManager
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Mar 7, 2024
1 parent 42a93a3 commit 00b59e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
/// @return GMUClusterManager if found otherwise nil.
- (GMUClusterManager *)clusterManagerWithIdentifier:(NSString *)identifier;

/// Converts clusters managed by the specified ClusterManager to
/// Converts clusters managed by the specified ClusterManager to
/// serializable array of clusters.
///
/// This method fetches and serializes clusters at the current zoom
Expand All @@ -54,7 +54,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)didTapOnCluster:(GMUStaticCluster *)cluster;

/// Calls cluster method of all ClusterManagers.
- (void)clusterAll;
- (void)invokeClusteringForEachClusterManager;
@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ - (GMUClusterManager *)clusterManagerWithIdentifier:(NSString *)identifier {
return [self.clusterManagerIdToManagers objectForKey:identifier];
}

- (void)clusterAll {
- (void)invokeClusteringForEachClusterManager {
for (GMUClusterManager *clusterManager in [self.clusterManagerIdToManagers allValues]) {
[clusterManager cluster];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ - (void)onMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result {
if ([markerIdsToRemove isKindOfClass:[NSArray class]]) {
[self.markersController removeMarkersWithIdentifiers:markerIdsToRemove];
}
[self.clusterManagersController clusterAll];
[self.clusterManagersController invokeClusteringForEachClusterManager];
result(nil);
} else if ([call.method isEqualToString:@"markers#showInfoWindow"]) {
id markerId = call.arguments[@"markerId"];
Expand Down

0 comments on commit 00b59e4

Please sign in to comment.