Box not displayed on new Parking
This commit is contained in:
parent
7c8cc0e705
commit
dc480ad25d
@ -847,9 +847,12 @@ You should have received a copy of the GNU General Public License along with FG
|
||||
circle.glueindex = circle.id
|
||||
circle.addTo(this.groundnetLayerGroup)
|
||||
circle.featureLookup = this.featureLookup
|
||||
circle.addListeners()
|
||||
circle.enableEdit()
|
||||
circle.extensions()
|
||||
circle.addListeners()
|
||||
circle.updateVertexFromDirection();
|
||||
circle.updateWheelPos();
|
||||
circle.updateBox();
|
||||
if (Number(this.$store.state.Editable.index) >= 0 &&
|
||||
this.featureLookup[this.$store.state.Editable.index]!==undefined) {
|
||||
this.featureLookup[this.$store.state.Editable.index].forEach(element => {
|
||||
|
@ -190,10 +190,13 @@ L.ParkingSpot = L.Circle.extend({
|
||||
}
|
||||
event.target._parkingSpot.select();
|
||||
});
|
||||
|
||||
if(this.editor && this.editor.editLayer) {
|
||||
this.box.addTo(this.editor.editLayer);
|
||||
}
|
||||
}
|
||||
if(this.box!==undefined) {
|
||||
var latlngs = [leftBack, rightBack, rightMiddle, rightIntermediate, rightFront, leftFront, leftIntermediate, leftMiddle].map(l => this.turfToLatLng(l));
|
||||
console.debug(latlngs);
|
||||
this.box.setLatLngs(latlngs);
|
||||
}
|
||||
}
|
||||
@ -216,7 +219,7 @@ L.ParkingSpot = L.Circle.extend({
|
||||
if(this.direction) {
|
||||
this.direction.setStyle(style);
|
||||
this.frontWheel.setStyle(style);
|
||||
}
|
||||
}
|
||||
this.updateWheelPos();
|
||||
this.updateBox();
|
||||
if(this.box) {
|
||||
|
Loading…
Reference in New Issue
Block a user