Small fixes
This commit is contained in:
parent
ac53005c0d
commit
7625ea1cf9
@ -955,7 +955,7 @@ You should have received a copy of the GNU General Public License along with FG
|
|||||||
nearest.push({d: distance, l: layer, latlng: latlng.__vertex.latlng, glueindex: latlng.glueindex })
|
nearest.push({d: distance, l: layer, latlng: latlng.__vertex.latlng, glueindex: latlng.glueindex })
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.error("No __Vertex");
|
console.error("No __Vertex", latlng);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ const extendTaxiSegment = function (taxiwaySegment) {
|
|||||||
taxiwaySegment.__proto__.selectVertex = function (index) {
|
taxiwaySegment.__proto__.selectVertex = function (index) {
|
||||||
this.getLatLngs().forEach(element => {
|
this.getLatLngs().forEach(element => {
|
||||||
if (Number(element.glueindex) === index) {
|
if (Number(element.glueindex) === index) {
|
||||||
if (element.__vertex._icon != null) {
|
if (element.__vertex !== undefined && element.__vertex._icon != null) {
|
||||||
element.__vertex.__proto__.deselect = function () {
|
element.__vertex.__proto__.deselect = function () {
|
||||||
if (this._icon != null) {
|
if (this._icon != null) {
|
||||||
this._icon.style.setProperty('background-color', 'white');
|
this._icon.style.setProperty('background-color', 'white');
|
||||||
@ -159,7 +159,11 @@ const extendTaxiSegment = function (taxiwaySegment) {
|
|||||||
if (event.target.options.attributes.name !== undefined) {
|
if (event.target.options.attributes.name !== undefined) {
|
||||||
multiarc.name = assign(event.target.options.attributes.name);
|
multiarc.name = assign(event.target.options.attributes.name);
|
||||||
}
|
}
|
||||||
|
if(event.target.options.attributes.isPushBackRoute) {
|
||||||
multiarc.isPushBackRoute = assign(event.target.options.attributes.isPushBackRoute);
|
multiarc.isPushBackRoute = assign(event.target.options.attributes.isPushBackRoute);
|
||||||
|
} else {
|
||||||
|
multiarc.isPushBackRoute = false;
|
||||||
|
}
|
||||||
multiarc.direction = assign(event.target.options.attributes.direction);
|
multiarc.direction = assign(event.target.options.attributes.direction);
|
||||||
|
|
||||||
this.editLayer.featureLookup[900719925474099] = [];
|
this.editLayer.featureLookup[900719925474099] = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user