From 76239ef55c10009aa89fbabb804a1c72fb511892 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 8 Sep 2023 09:41:17 +0200 Subject: [PATCH] Make DataLayer.isReadOnly explicit and true by default --- umap/static/umap/js/umap.layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index 6568ba23..02a8ab24 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -1195,7 +1195,7 @@ L.U.DataLayer = L.Evented.extend({ }, isReadOnly: function () { - return !this.options.allowEdit + return this.options.allowEdit === false }, save: function () {