Leaflet Marker Cluster coverage path options

Viewed 132

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

1 Answers

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:

L.markerClusterGroup({
  showCoverageOnHover: false
});
L.markerClusterGroup({
  polygonOptions: {
    color: "red"
  }
});
Related