Skip to content
Snippets Groups Projects
Commit b726ad1f authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Ignoring clicks on POI maps where user can't edit them

parent dc4835e4
Branches
No related tags found
No related merge requests found
...@@ -488,6 +488,10 @@ export default{ ...@@ -488,6 +488,10 @@ export default{
} }
This.map.on(['singleclick'],function(event){ This.map.on(['singleclick'],function(event){
if(!This.userCanEditPOI)
{
return;
}
let transFormCord = transform(event.coordinate, 'EPSG:3857','EPSG:4326'); let transFormCord = transform(event.coordinate, 'EPSG:3857','EPSG:4326');
This.poi.longitude = transFormCord[0]; This.poi.longitude = transFormCord[0];
This.poi.latitude = transFormCord[1]; This.poi.latitude = transFormCord[1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment