diff --git a/src/components/MapPOI.vue b/src/components/MapPOI.vue index db0156b09a4986b0475940e472b892c105e3c46d..3f681876bfda474e621d1fb970f07bb851efb961 100644 --- a/src/components/MapPOI.vue +++ b/src/components/MapPOI.vue @@ -488,6 +488,10 @@ export default{ } This.map.on(['singleclick'],function(event){ + if(!This.userCanEditPOI) + { + return; + } let transFormCord = transform(event.coordinate, 'EPSG:3857','EPSG:4326'); This.poi.longitude = transFormCord[0]; This.poi.latitude = transFormCord[1];