Fix critical syntax error in vertex insertion handler
Deploy TrassenPlaner / deploy (push) Waiting to run
Details
Deploy TrassenPlaner / deploy (push) Waiting to run
Details
This commit is contained in:
parent
7654f7a167
commit
8ca453cb87
|
|
@ -1737,6 +1737,14 @@
|
||||||
labelLayers[v.id].addTo(map);
|
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 point = e.latlng;
|
||||||
const latlngs = layer.getLatLngs();
|
const latlngs = layer.getLatLngs();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue