Check parking number, number with letter (9L)
This commit is contained in:
parent
de0267ac7d
commit
00bdd6c558
@ -31,5 +31,5 @@ deploy:
|
|||||||
file_glob: true
|
file_glob: true
|
||||||
file: build/*
|
file: build/*
|
||||||
on:
|
on:
|
||||||
branches: 'master'
|
branches: '0.0.10'
|
||||||
repo: Portree-Kid/flightgear-airports
|
repo: Portree-Kid/flightgear-airports
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "flightgear-airports",
|
"name": "flightgear-airports",
|
||||||
"version": "0.0.9",
|
"version": "0.0.10",
|
||||||
"author": "portree_kid <keith.paterson@gmx.de>",
|
"author": "portree_kid <keith.paterson@gmx.de>",
|
||||||
"description": "An software to design Flightgear groundnets",
|
"description": "An software to design Flightgear groundnets",
|
||||||
"license": "GPL v3",
|
"license": "GPL v3",
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
<div id="panel" width="100%">
|
<div id="panel" width="100%">
|
||||||
<el-row v-for="(result,idx) in results" :key="idx">
|
<el-row v-for="(result,idx) in results" :key="idx">
|
||||||
<el-col :span="15">{{ result.message }}</el-col>
|
<el-col :span="15">{{ result.message }}</el-col>
|
||||||
<el-col :span="7"><el-button v-on:click="show(result.id)">Show</el-button></el-col>
|
<el-col :span="7"><el-button v-on:click="show(result.id)" class="button"><i class="fas fa-bullseye"></i></el-button></el-col>
|
||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -48,4 +47,8 @@
|
|||||||
border-radius: 1px;
|
border-radius: 1px;
|
||||||
padding: 0pt;
|
padding: 0pt;
|
||||||
}
|
}
|
||||||
|
.button {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -28,7 +28,13 @@
|
|||||||
icon="fas fa-draw-polygon"
|
icon="fas fa-draw-polygon"
|
||||||
v-on:click="drawPolyline"
|
v-on:click="drawPolyline"
|
||||||
:show="editing"
|
:show="editing"
|
||||||
tooltip="Draw Taxiline"
|
tooltip="Draw Bi-Directional Taxiline"
|
||||||
|
></EditButton>
|
||||||
|
<EditButton
|
||||||
|
icon="fas fa-long-arrow-alt-right"
|
||||||
|
v-on:click="drawForwardPolyline"
|
||||||
|
:show="editing"
|
||||||
|
tooltip="Draw Forward Taxiline"
|
||||||
></EditButton>
|
></EditButton>
|
||||||
<EditButton
|
<EditButton
|
||||||
icon="fas fa-arrows-alt-h"
|
icon="fas fa-arrows-alt-h"
|
||||||
@ -187,6 +193,9 @@
|
|||||||
drawPolyline () {
|
drawPolyline () {
|
||||||
this.$parent.$parent.$refs.editLayer.drawPolyline()
|
this.$parent.$parent.$refs.editLayer.drawPolyline()
|
||||||
},
|
},
|
||||||
|
drawForwardPolyline () {
|
||||||
|
this.$parent.$parent.$refs.editLayer.drawForwardPolyline()
|
||||||
|
},
|
||||||
drawPushbackPolyline () {
|
drawPushbackPolyline () {
|
||||||
this.$parent.$parent.$refs.editLayer.drawPushbackPolyline()
|
this.$parent.$parent.$refs.editLayer.drawPushbackPolyline()
|
||||||
},
|
},
|
||||||
|
@ -436,6 +436,23 @@
|
|||||||
event.target.addTo(this.groundnetLayerGroup)
|
event.target.addTo(this.groundnetLayerGroup)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
drawForwardPolyline () {
|
||||||
|
var polyLine = this.$parent.mapObject.editTools.startPolyline()
|
||||||
|
polyLine.addTo(this.groundnetLayerGroup)
|
||||||
|
polyLine.groundnetLayerGroup = this.groundnetLayerGroup;
|
||||||
|
polyLine.attributes = [];
|
||||||
|
polyLine.options.attributes = {direction: 'forward' };
|
||||||
|
polyLine.featureLookup = this.featureLookup;
|
||||||
|
extendTaxiSegment(polyLine);
|
||||||
|
polyLine.setEditlayer(this);
|
||||||
|
//polyLine.extensions(this);
|
||||||
|
polyLine.addListeners()
|
||||||
|
|
||||||
|
polyLine.on('editable:drawing:end', event => {
|
||||||
|
console.log(event)
|
||||||
|
event.target.addTo(this.groundnetLayerGroup)
|
||||||
|
})
|
||||||
|
},
|
||||||
drawPushbackPolyline () {
|
drawPushbackPolyline () {
|
||||||
var polyLine = this.$parent.mapObject.editTools.startPolyline()
|
var polyLine = this.$parent.mapObject.editTools.startPolyline()
|
||||||
polyLine.addTo(this.groundnetLayerGroup)
|
polyLine.addTo(this.groundnetLayerGroup)
|
||||||
|
@ -61,9 +61,6 @@
|
|||||||
number: {
|
number: {
|
||||||
// getter
|
// getter
|
||||||
get: function () {
|
get: function () {
|
||||||
if (isNaN(this.parking.number)) {
|
|
||||||
return ''
|
|
||||||
}
|
|
||||||
return this.parking.number
|
return this.parking.number
|
||||||
},
|
},
|
||||||
// setter
|
// setter
|
||||||
|
@ -102,7 +102,7 @@ exports.readGroundnetXML = function (fDir, icao, force) {
|
|||||||
}).sort();
|
}).sort();
|
||||||
|
|
||||||
store.default.dispatch('setParkings', parkingNodes.map(
|
store.default.dispatch('setParkings', parkingNodes.map(
|
||||||
p => ({index: Number(p.attrs.index), name: String(p.attrs.name), number: Number(p.attrs.number), type: String(p.attrs.type)}
|
p => ({index: Number(p.attrs.index), name: String(p.attrs.name), number: p.attrs.number, type: String(p.attrs.type)}
|
||||||
)).sort((p1, p2) => {
|
)).sort((p1, p2) => {
|
||||||
if (p1.name === p2.name) {
|
if (p1.name === p2.name) {
|
||||||
return p1.number - p2.number
|
return p1.number - p2.number
|
||||||
|
@ -254,7 +254,7 @@ var mapParkings = function (o) {
|
|||||||
|
|
||||||
var mapParkingNode = function (o) {
|
var mapParkingNode = function (o) {
|
||||||
if (o.type === 'parking')
|
if (o.type === 'parking')
|
||||||
return { index: o.index, lat: o.lat, lng: o.lng, name: o.name, radius: Number(o.radius) };
|
return { index: o.index, lat: o.lat, lng: o.lng, name: o.name, radius: Number(o.radius), type: o.type };
|
||||||
console.log(o);
|
console.log(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user