This commit is contained in:
portree_kid 2020-04-02 21:34:22 +02:00
parent ffc8d76d1f
commit 26a935997b

View File

@ -83,7 +83,7 @@ exports.extendTaxiSegment = function (taxiwaySegment) {
});
this.on('editable:vertex:new', event => {
console.log(event)
let closest = this.editLayer.closestLayerSnap(event.latlng, 10)
let closest = this.editLayer.closestLayerSnap(event.latlng, 5)
let taxiwaySegment = event.latlng.__vertex.editor.feature;
if(taxiwaySegment.options.attributes === undefined) {
taxiwaySegment.options.attributes = {direction: 'bi-directional'};