DefaultMarkerClusterDatastore<T> constructor
DefaultMarkerClusterDatastore<T> ({
- required MarkerDatastore<
T> markerDatastore, - int clusterDistance = 50,
Creates a new DefaultMarkerClusterDatastore.
markerDatastore The underlying datastore that provides the markers.
clusterDistance The distance in pixels within which markers are clustered.
Implementation
DefaultMarkerClusterDatastore({required MarkerDatastore<T> markerDatastore, int clusterDistance = 50})
: _markerDatastore = markerDatastore,
_clusterDistance = clusterDistance {
_markerDatastore.addListener(_onDatastoreChanged);
}