Don't assume that the action name is 'edit' all the time. Instead, if it's view, then initialize leaflet with permission=readonly.
Don't assume that the action name is 'edit' all the time. Instead, if it's view, then initialize leaflet with permission=readonly.