|
@@ -118,19 +118,19 @@ class AuthenticMap {
|
|
mapData.isEditArea = true;
|
|
mapData.isEditArea = true;
|
|
}
|
|
}
|
|
}, function(e){
|
|
}, function(e){
|
|
- let f = null
|
|
|
|
- that.kmap.map.forEachFeatureAtPixel(e.pixel, function (feature, layer) {
|
|
|
|
|
|
+ let f = null
|
|
|
|
+ that.kmap.map.forEachFeatureAtPixel(e.pixel, function (feature, layer) {
|
|
f= feature
|
|
f= feature
|
|
- },{hitTolerance:10});
|
|
|
|
- if(!f){
|
|
|
|
- return false
|
|
|
|
- }
|
|
|
|
- console.log(f)
|
|
|
|
- let res = f.get("id") === mapData.curPointData.id || !f.get("id")
|
|
|
|
- if(!res){
|
|
|
|
- ElMessage.warning("编辑中")
|
|
|
|
- }
|
|
|
|
- return res
|
|
|
|
|
|
+ },{hitTolerance:10});
|
|
|
|
+ if(!f){
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ console.log(f)
|
|
|
|
+ let res = f.get("id") === mapData.curPointData.id || !f.get("id")
|
|
|
|
+ if(!res){
|
|
|
|
+ ElMessage.warning("编辑中")
|
|
|
|
+ }
|
|
|
|
+ return res
|
|
});
|
|
});
|
|
this.kmap.addLayer(this.clickPointLayer.layer);
|
|
this.kmap.addLayer(this.clickPointLayer.layer);
|
|
this.kmap.addLayer(this.locationLayer.layer);
|
|
this.kmap.addLayer(this.locationLayer.layer);
|