This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added parameters * cluster options * versioning
- Loading branch information
Showing
6 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'package:atlas/atlas.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
|
||
/// Cluster customization | ||
class ClusterOptions { | ||
/// Whether to cluster the markers into groups | ||
final bool enabled; | ||
|
||
/// Called when a cluster is tapped. | ||
/// The Markers of the pressed cluster are passed as an argument. | ||
final ValueChanged<Set<Marker>>? onTap; | ||
|
||
/// Icon used for the clustered markers | ||
final MarkerIcon icon; | ||
|
||
/// Text color of the cluster counter | ||
final Color textColor; | ||
|
||
ClusterOptions({ | ||
this.enabled = true, | ||
this.onTap, | ||
required this.icon, | ||
required this.textColor, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters