From 822e2a96cf97bb1419b4a0aff5576c9a93f53d09 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 20 Sep 2023 09:54:06 +0200 Subject: [PATCH] Use datalayer.isDataReadOnly in feature.isReadOnly --- umap/static/umap/js/umap.features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.features.js b/umap/static/umap/js/umap.features.js index fe940926..d7d71048 100644 --- a/umap/static/umap/js/umap.features.js +++ b/umap/static/umap/js/umap.features.js @@ -40,7 +40,7 @@ L.U.FeatureMixin = { preInit: function () {}, isReadOnly: function () { - return this.datalayer && (this.datalayer.isRemoteLayer() || this.datalayer.isReadOnly()) + return this.datalayer && this.datalayer.isDataReadOnly() }, getSlug: function () {