You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Expose MarkerCluster API options to ipyleaflet
* Update environment dependencies for docs
* Update documentation for MarkerCluster
* Clean up formatting
Copy file name to clipboardExpand all lines: ipyleaflet/leaflet.py
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1360,17 +1360,49 @@ class MarkerCluster(Layer):
1360
1360
----------
1361
1361
markers: list, default []
1362
1362
List of markers to include in the cluster.
1363
+
show_coverage_on_hover: bool, default True
1364
+
Mouse over a cluster to show the bounds of its markers.
1365
+
zoom_to_bounds_on_click: bool, default True
1366
+
Click a cluster to zoom in to its bounds.
1367
+
spiderfy_on_max_zoom: bool, default True
1368
+
When you click a cluster at the bottom zoom level, spiderfy it so you can see all of its markers. (Note: the spiderfy occurs at the current zoom level if all items within the cluster are still clustered at the maximum zoom level or at zoom specified by ``disableClusteringAtZoom`` option)
1369
+
remove_outside_visible_bounds: bool, default True
1370
+
Clusters and markers too far from the viewport are removed from the map for performance.
1371
+
animate: bool, default True
1372
+
Smoothly split / merge cluster children when zooming and spiderfying. If L.DomUtil.TRANSITION is false, this option has no effect (no animation is possible).
1373
+
animate_adding_markers: bool, default False
1374
+
If set to true (and animate option is also true) then adding individual markers to the MarkerClusterGroup after it has been added to the map will add the marker and animate it into the cluster. Defaults to false as this gives better performance when bulk adding markers.
1375
+
disable_clustering_at_zoom: int, default 18
1376
+
Markers will not be clustered at or below this zoom level. Note: you may be interested in disabling ``spiderfyOnMaxZoom`` option when using ``disableClusteringAtZoom``.
1377
+
max_cluster_radius: int, default 80
1378
+
The maximum radius that a cluster will cover from the central marker (in pixels). Decreasing will make more, smaller clusters.
1379
+
polygon_options: dict, default {}
1380
+
Options to pass when creating the L.Polygon(points, options) to show the bounds of a cluster. Defaults to empty, which lets Leaflet use the default `Path options <https://leafletjs.com/reference.html#path>`_.
0 commit comments