I need to add custom city names using circleMarkerru of my map. But I want to click on the label, because there is a polygon under it. There is my JS code, which addscircleMarker
var ville_label = new L.CircleMarker(
[lat, lng],
{ clickable: false, radius: (1/zoom)*12 }
).bindLabel(lib, { noHide: true, className: "leaflet-ville-label" })
.addTo(ville_layer);
In CSS, I disabled the pointer event
.leaflet-ville-label {
pointer-events: none;
}
But IE is not supprot pointer-events, and Label is a div element, not an SVG.
Does anyone have a solution to disable pointer events on a static shortcut?
source
share