New middle vertex fixed
This commit is contained in:
parent
a76f7d6209
commit
8fccc23009
@ -26,7 +26,7 @@ deploy:
|
|||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
secure: Xm3z86gQmpSajvlXSVgG7mxcaS5K7GfE4HrARIDR4pQ4UguQ3/fFOenRyKAQImmH0kLCSIbVE21NMAQ3YI2F9El9I6GU7Wirccsg14TZZiBQAzKOTXZ+JsBloeBxuTOsR84SkO6pV8OT/pRnQd9frqyc1W7wzoX+0sQykMztXCNfI+1MXXGOAgMzlKuDMO1PVENz0V63mWipL/Mae/SyrHa1Bws+4LJKvv42m0HMKdN7ekt41vxcSUvLmN+YLlqUEVr/eUhQXUNCaWlmM0KxmfuzTedca5/1yzLvN8smEt2I2b0DFRM3Mi/QdI22fVRHs6XGpm8yqZRKmhySDXFspXKWBiuCF6AezX6NiIe/ZUh10gIukjkyLtrNk/o29qhj2WE9HJz4xhsGMAx3632cLSMPku5ALN7jv5scWjwCGNHs4ZeZyyePMeGM6Y6pje1uJPbxWGjwoV6iI4Y4esP+z3KcXvZdnzkpYMy2mzdT4gf7A7zieax1YwB6U/MEanXYKFBH4yzYK9+hx3ck2eLT3LcV/ChHN2bKmERJdf18h+zI8e5YKTzd3/kHLiUUv19N2a4TUYloGOyzrLwn2VD1Xm4jJVVLTIQvWbH5YK7cNkHYa4+PnsB+JppSoby7HiBcothw4OLpJO8eCMqXcPRU1n+cRAZTB7VOS7pWh8e8LFE=
|
secure: Xm3z86gQmpSajvlXSVgG7mxcaS5K7GfE4HrARIDR4pQ4UguQ3/fFOenRyKAQImmH0kLCSIbVE21NMAQ3YI2F9El9I6GU7Wirccsg14TZZiBQAzKOTXZ+JsBloeBxuTOsR84SkO6pV8OT/pRnQd9frqyc1W7wzoX+0sQykMztXCNfI+1MXXGOAgMzlKuDMO1PVENz0V63mWipL/Mae/SyrHa1Bws+4LJKvv42m0HMKdN7ekt41vxcSUvLmN+YLlqUEVr/eUhQXUNCaWlmM0KxmfuzTedca5/1yzLvN8smEt2I2b0DFRM3Mi/QdI22fVRHs6XGpm8yqZRKmhySDXFspXKWBiuCF6AezX6NiIe/ZUh10gIukjkyLtrNk/o29qhj2WE9HJz4xhsGMAx3632cLSMPku5ALN7jv5scWjwCGNHs4ZeZyyePMeGM6Y6pje1uJPbxWGjwoV6iI4Y4esP+z3KcXvZdnzkpYMy2mzdT4gf7A7zieax1YwB6U/MEanXYKFBH4yzYK9+hx3ck2eLT3LcV/ChHN2bKmERJdf18h+zI8e5YKTzd3/kHLiUUv19N2a4TUYloGOyzrLwn2VD1Xm4jJVVLTIQvWbH5YK7cNkHYa4+PnsB+JppSoby7HiBcothw4OLpJO8eCMqXcPRU1n+cRAZTB7VOS7pWh8e8LFE=
|
||||||
file: build/flightgear-airports*.*
|
file: build/*
|
||||||
draft: true
|
draft: true
|
||||||
on:
|
on:
|
||||||
repo: Portree-Kid/flightgear-airports
|
repo: Portree-Kid/flightgear-airports
|
||||||
|
@ -88,14 +88,23 @@ exports.extendTaxiSegment = function (taxiwaySegment) {
|
|||||||
event.latlng.__vertex['glueindex'] = Number(closest.glueindex);
|
event.latlng.__vertex['glueindex'] = Number(closest.glueindex);
|
||||||
event.latlng.__vertex.setLatLng(closest.latlng);
|
event.latlng.__vertex.setLatLng(closest.latlng);
|
||||||
this.editLayer.featureLookup[event.latlng.__vertex.glueindex].push(event.latlng.__vertex);
|
this.editLayer.featureLookup[event.latlng.__vertex.glueindex].push(event.latlng.__vertex);
|
||||||
|
event.latlng.attributes = {index: event.latlng.__vertex.glueindex, isOnRunway: 0};
|
||||||
console.log(closest)
|
console.log(closest)
|
||||||
} else {
|
} else {
|
||||||
event.latlng.__vertex['glueindex'] = ++this.editLayer.groundnetLayerGroup.maxId;
|
event.vertex['glueindex'] = ++this.editLayer.groundnetLayerGroup.maxId;
|
||||||
this.editLayer.featureLookup[event.latlng.__vertex.glueindex] = [];
|
event.vertex.latlng.attributes = {index: event.vertex.glueindex, isOnRunway: 0};
|
||||||
this.editLayer.featureLookup[event.latlng.__vertex.glueindex].push(event.latlng.__vertex);
|
this.editLayer.featureLookup[event.vertex.glueindex] = [];
|
||||||
|
this.editLayer.featureLookup[event.vertex.glueindex].push(event.vertex);
|
||||||
|
event.vertex.editor.enable();
|
||||||
}
|
}
|
||||||
event.latlng.attributes = {index: event.latlng.__vertex.glueindex, isOnRunway: 0};
|
});
|
||||||
})
|
this.on('editable:vertex:deleted', event => {
|
||||||
|
console.log(event)
|
||||||
|
});
|
||||||
|
this.on('editable:vertex:rawclick', event => {
|
||||||
|
event.cancel()
|
||||||
|
console.log(event)
|
||||||
|
});
|
||||||
this.on('editable:vertex:clicked', function (event) {
|
this.on('editable:vertex:clicked', function (event) {
|
||||||
console.log(this.featureLookup[event.vertex.glueindex]);
|
console.log(this.featureLookup[event.vertex.glueindex]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user