@angular/google-maps 20.0.2 → 20.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/google-maps.mjs.map +1 -1
- package/index.d.ts +8 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1793,16 +1793,16 @@ type onClusterClickHandler = (event: google.maps.MapMouseEvent, cluster: Cluster
|
|
|
1793
1793
|
interface MarkerClustererOptions {
|
|
1794
1794
|
markers?: Marker[];
|
|
1795
1795
|
/**
|
|
1796
|
-
* An algorithm to cluster markers. Default is
|
|
1797
|
-
* provide a `calculate` method accepting
|
|
1798
|
-
* an array of
|
|
1796
|
+
* An algorithm to cluster markers. Default is `SuperClusterAlgorithm`. Must
|
|
1797
|
+
* provide a `calculate` method accepting `AlgorithmInput` and returning
|
|
1798
|
+
* an array of `Cluster`.
|
|
1799
1799
|
*/
|
|
1800
1800
|
algorithm?: Algorithm;
|
|
1801
1801
|
algorithmOptions?: AlgorithmOptions;
|
|
1802
1802
|
map?: google.maps.Map | null;
|
|
1803
1803
|
/**
|
|
1804
|
-
* An object that converts a
|
|
1805
|
-
* Default is
|
|
1804
|
+
* An object that converts a `Cluster` into a `google.maps.Marker`.
|
|
1805
|
+
* Default is `DefaultRenderer`.
|
|
1806
1806
|
*/
|
|
1807
1807
|
renderer?: Renderer;
|
|
1808
1808
|
onClusterClick?: onClusterClickHandler;
|
|
@@ -1815,7 +1815,7 @@ declare enum MarkerClustererEvents {
|
|
|
1815
1815
|
declare const defaultOnClusterClickHandler: onClusterClickHandler;
|
|
1816
1816
|
interface Renderer {
|
|
1817
1817
|
/**
|
|
1818
|
-
* Turn a
|
|
1818
|
+
* Turn a `Cluster` into a `Marker`.
|
|
1819
1819
|
*
|
|
1820
1820
|
* Below is a simple example to create a marker with the number of markers in the cluster as a label.
|
|
1821
1821
|
*
|
|
@@ -1845,7 +1845,7 @@ interface ClusterStats {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
interface Algorithm {
|
|
1847
1847
|
/**
|
|
1848
|
-
* Calculates an array of
|
|
1848
|
+
* Calculates an array of `Cluster`.
|
|
1849
1849
|
*/
|
|
1850
1850
|
calculate: ({ markers, map }: AlgorithmInput) => AlgorithmOutput;
|
|
1851
1851
|
}
|
|
@@ -1873,7 +1873,7 @@ interface AlgorithmInput {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
interface AlgorithmOutput {
|
|
1875
1875
|
/**
|
|
1876
|
-
* The clusters returned based upon the
|
|
1876
|
+
* The clusters returned based upon the `AlgorithmInput`.
|
|
1877
1877
|
*/
|
|
1878
1878
|
clusters: Cluster[];
|
|
1879
1879
|
/**
|