Leaflet Marker Cluster coverage path options

How do I override the options for the Leaflet.markercluster coverage path?

It is using the default style.(The blue shape when the yellow marker cluster button is being hovered).

Or is there a way to disable it on mouseover?

path


I guess you are using the Leaflet.markercluster plugin, and are asking how to customize the coverage polygon that is displayed when hovering a cluster, or how to disable this feature?

In that case:

  • to disable this feature, use the showCoverageOnHover option:
L.markerClusterGroup({
  showCoverageOnHover: false
});
  • to customize the appearance of the coverage polygon, use the polygonOptions option, with an object containing appropriate path style options:
L.markerClusterGroup({
  polygonOptions: {
    color: "red"
  }
});