Do not expose readonly datalayers for features

This commit is contained in:
Yohan Boniface 2023-09-08 07:26:12 +02:00
parent 89ab029cab
commit de907dcb50

View file

@ -396,7 +396,7 @@ L.FormBuilder.DataLayerSwitcher = L.FormBuilder.Select.extend({
getOptions: function () {
const options = []
this.builder.map.eachDataLayerReverse((datalayer) => {
if (datalayer.isLoaded() && !datalayer.isRemoteLayer() && datalayer.canBrowse()) {
if (datalayer.isLoaded() && !datalayer.isReadOnly() && datalayer.canBrowse()) {
options.push([L.stamp(datalayer), datalayer.getName()])
}
})