This commit is contained in:
portree_kid 2020-08-13 09:56:04 +02:00
parent 63e08cacbf
commit a1fca579af
2 changed files with 4 additions and 2 deletions

View File

@ -490,7 +490,7 @@ You should have received a copy of the GNU General Public License along with FG
}
else {
element.getLatLngs().forEach((e1, index1) => {
console.log(index1 + ' ' + e1);
console.debug('' + index1 + ' ' + e1);
if (e1.attributes.index===index) {
var splitOffNodes = element.getLatLngs().splice(index1);
element.editor.refresh();

View File

@ -3,6 +3,7 @@ const Vue = require('vue');
var L = require('leaflet');
const store = require('../store');
const util = require('util');
exports.extendTaxiSegment = function (taxiwaySegment) {
taxiwaySegment.__proto__.begin;
@ -145,7 +146,7 @@ exports.extendTaxiSegment = function (taxiwaySegment) {
}
});
this.on('editable:vertex:new', event => {
console.debug('Vertex Move ' + event)
console.debug('editable:vertex:new ' + util.inspect(event));
// Find nearest node
let closest = this.editLayer.closestLayerSnap(event.latlng, 5)
let taxiwaySegment = event.latlng.__vertex.editor.feature;
@ -188,6 +189,7 @@ exports.extendTaxiSegment = function (taxiwaySegment) {
taxiwaySegment.end = Number(event.vertex.latlng.glueindex);
}
}
//this.splitShape(taxiwaySegment.getLatLngs(), )
});
this.on('editable:vertex:deleted', event => {
console.log('editable:vertex:deleted' + event)