From f05bdb2ac34b6b4339183fc46213ca1f78025d5d 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 8063f325..c3f2e75c 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 () {