Cancel events on buttons
This commit is contained in:
parent
743b5c6e8d
commit
46091aa7db
@ -81,9 +81,11 @@
|
||||
this.$refs.upload.check()
|
||||
},
|
||||
zoomout() {
|
||||
this.$parent.$parent.$refs.editLayer.stopDrawing()
|
||||
this.$parent.$parent.zoomUpdated(9)
|
||||
},
|
||||
zoomin() {
|
||||
this.$parent.$parent.$refs.editLayer.stopDrawing()
|
||||
this.$parent.$parent.zoomUpdated(14)
|
||||
},
|
||||
edit () {
|
||||
@ -106,6 +108,7 @@
|
||||
this.$parent.$parent.$refs.editLayer.reload(false)
|
||||
},
|
||||
save () {
|
||||
this.$parent.$parent.$refs.editLayer.stopDrawing()
|
||||
this.editing = false
|
||||
this.$parent.$parent.$refs.map.mapObject.options.minZoom = 1;
|
||||
Vue.set(this, 'saveDialogVisible', true)
|
||||
@ -191,21 +194,27 @@
|
||||
}
|
||||
},
|
||||
drawPolyline () {
|
||||
this.$parent.$parent.$refs.editLayer.stopDrawing()
|
||||
this.$parent.$parent.$refs.editLayer.drawPolyline()
|
||||
},
|
||||
drawForwardPolyline () {
|
||||
this.$parent.$parent.$refs.editLayer.stopDrawing()
|
||||
this.$parent.$parent.$refs.editLayer.drawForwardPolyline()
|
||||
},
|
||||
drawPushbackPolyline () {
|
||||
this.$parent.$parent.$refs.editLayer.stopDrawing()
|
||||
this.$parent.$parent.$refs.editLayer.drawPushbackPolyline()
|
||||
},
|
||||
drawParking () {
|
||||
this.$parent.$parent.$refs.editLayer.stopDrawing()
|
||||
this.$parent.$parent.$refs.editLayer.drawParking()
|
||||
},
|
||||
deleteFeature () {
|
||||
this.$parent.$parent.$refs.editLayer.stopDrawing()
|
||||
this.$parent.$parent.$refs.editLayer.deleteFeature()
|
||||
},
|
||||
showCheck() {
|
||||
this.$parent.$parent.$refs.editLayer.stopDrawing()
|
||||
Vue.set(this, 'checkDialogVisible', true)
|
||||
this.check()
|
||||
},
|
||||
|
@ -766,6 +766,7 @@
|
||||
}
|
||||
},
|
||||
drawParking () {
|
||||
this.$parent.mapObject._container.style.cursor = 'crosshair'
|
||||
this.$parent.mapObject.on('click', this.addParking)
|
||||
},
|
||||
removeLayerClick (event) {
|
||||
@ -789,6 +790,7 @@
|
||||
addFeature(circle)
|
||||
// console.log(this.groundnetLayerGroup)
|
||||
this.$parent.mapObject.off('click', this.addParking)
|
||||
this.$parent.mapObject._container.style.cursor = ''
|
||||
},
|
||||
reload (force) {
|
||||
this.load(this.icao, force)
|
||||
|
@ -17,6 +17,11 @@ L.EditControl = L.Control.extend({
|
||||
link.title = this.options.tooltip;
|
||||
link.innerHTML = this.options.html;
|
||||
link.callback = this.options.callback;
|
||||
link.addEventListener('click',function (event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
}, false);
|
||||
link.addEventListener('mousedown',function (event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
Loading…
Reference in New Issue
Block a user