Fix critical syntax error in vertex insertion handler
Deploy TrassenPlaner / deploy (push) Waiting to run Details

This commit is contained in:
Johannes Baumeister 2026-04-20 11:49:14 +02:00
parent 7654f7a167
commit 8ca453cb87
1 changed files with 8 additions and 0 deletions

View File

@ -1737,6 +1737,14 @@
labelLayers[v.id].addTo(map);
}
// Allow vertex insertion by clicking anywhere on the polyline
routeLayers[v.id].on('click', (e) => {
if (!v.active) return;
if (!map.editTools) return;
L.DomEvent.stopPropagation(e);
const layer = routeLayers[v.id];
const point = e.latlng;
const latlngs = layer.getLatLngs();