I've been studying Leaflet and, when I was trying out some plugins, this issue showed up.
Pop-ups and markers works fine, but the line (perimeter) won't show up unless I turn off the raster layers. It happens with different plug-ins, so probably it has something to do with my code - the structure was created by QGIS2Web and I've done some modifications.
Here is the code:
map.createPane('pane_polylinemeasure');
map.getPane('pane_polylinemeasure').style.zIndex = 500;
var polylineMeasure = new L.control.polylineMeasure({
pane: 'pane_polylinemeasure',
(...)
});
polylineMeasure.addTo(map);
L.control.polylineMeasure
refers to one of the plugins I've tried:
Leaflet.PolylineMeasure. But as I said, it happens to others measurement plugins too.
All other layers' zIndex range from 400 to 410 (400 and 401 are my raster layers). Please notice plugin's markers and popups are working as intended, but the lines and polygons it creates aren't.
And the same happens to another measure plugin