Once a file is mapped the user no longer sees a "Map Data" button--therefore the map cannot be further edited or deleted.
Usual sequence for user with edit file permissions:
- Before mapping, user sees:
-
- "Map Data" button (map creation)
- After successful mapping, user sees:
-
- "Map Data" button (edit/delete map)
-
- "Explore" button (view map)
- Bug: After mapping, user no longer sees (2a) "Map Data" button
This was likely introduced when code was factored out of the dataset page for sharing between the dataset and file pages. (Seeing this on local build using develop and in production).
"The Fix"
In WorldMapPermissionHelper.java remove lines 465-467
if (this.hasMapLayerMetadata(fm)){
return false;
}

Once a file is mapped the user no longer sees a "Map Data" button--therefore the map cannot be further edited or deleted.
Usual sequence for user with edit file permissions:
This was likely introduced when code was factored out of the dataset page for sharing between the dataset and file pages. (Seeing this on local build using develop and in production).
"The Fix"
In
WorldMapPermissionHelper.javaremove lines 465-467