@@ -68,25 +68,15 @@ export declare type AriaLabelFn = (text: string) => string;
6868 */
6969export declare type Calculator = ( markers : google . maps . Marker [ ] , clusterIconStylesCount : number ) => ClusterIconInfo ;
7070
71- export declare class Cluster {
71+ export declare interface Cluster {
7272 marker ?: Marker ;
7373 readonly markers ?: Marker [ ] ;
74- protected _position : google . maps . LatLng ;
75- constructor ( { markers, position } : ClusterOptions ) ;
76- get bounds ( ) : google . maps . LatLngBounds | undefined ;
77- get position ( ) : google . maps . LatLng ;
78- /**
79- * Get the count of **visible** markers.
80- */
81- get count ( ) : number ;
82- /**
83- * Add a marker to the cluster.
84- */
74+ bounds ?: google . maps . LatLngBounds ;
75+ position : google . maps . LatLng ;
76+ count : number ;
8577 push ( marker : Marker ) : void ;
86- /**
87- * Cleanup references and remove marker from map.
88- */
8978 delete ( ) : void ;
79+ new ( options : ClusterOptions ) : Cluster ;
9080}
9181
9282/**
@@ -144,11 +134,11 @@ export declare interface ClusterOptions {
144134 markers ?: Marker [ ] ;
145135}
146136
147- export declare class ClusterStats {
148- readonly markers : {
137+ export declare interface ClusterStats {
138+ markers : {
149139 sum : number ;
150140 } ;
151- readonly clusters : {
141+ clusters : {
152142 count : number ;
153143 markers : {
154144 mean : number ;
@@ -157,7 +147,7 @@ export declare class ClusterStats {
157147 max : number ;
158148 } ;
159149 } ;
160- constructor ( markers : Marker [ ] , clusters : Cluster [ ] ) ;
150+ new ( markers : Marker [ ] , clusters : Cluster [ ] ) : ClusterStats ;
161151}
162152
163153/** Arbitrary default height for the map element */
0 commit comments