mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Use BaseIcon class in leaflet MarkerClusterGroupOptions
This commit is contained in:
Vendored
+1
-1
@@ -105,7 +105,7 @@ declare namespace L {
|
||||
/*
|
||||
* Function used to create the cluster icon
|
||||
*/
|
||||
iconCreateFunction?: ((cluster: L.MarkerCluster) => L.Icon);
|
||||
iconCreateFunction?: ((cluster: L.MarkerCluster) => L.BaseIcon);
|
||||
|
||||
/*
|
||||
* Boolean to split the addLayers processing in to small intervals so that the page does not freeze.
|
||||
|
||||
@@ -28,6 +28,10 @@ markerClusterGroupOptions = {
|
||||
chunkDelay: 100
|
||||
}
|
||||
|
||||
markerClusterGroupOptions.iconCreateFunction = (cluster: L.MarkerCluster) => {
|
||||
return L.divIcon();
|
||||
};
|
||||
|
||||
let markerClusterGroup: L.MarkerClusterGroup;
|
||||
markerClusterGroup = L.markerClusterGroup();
|
||||
markerClusterGroup = L.markerClusterGroup(markerClusterGroupOptions);
|
||||
|
||||
Reference in New Issue
Block a user