简体   繁体   中英

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?

小路

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"
  }
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM