From 84e3aa7121ddffbc284d6485bf69f2d89c80f2a7 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 13 Sep 2023 16:53:19 +0200 Subject: [PATCH] Add default value for DataLayer.options.editMode --- umap/static/umap/js/umap.layer.js | 5 +++-- umap/static/umap/test/Map.Export.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index ff159888..417cb01f 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -193,6 +193,7 @@ L.U.DataLayer = L.Evented.extend({ options: { displayOnLoad: true, browsable: true, + editMode: 'advanced', }, initialize: function (map, data) { @@ -201,8 +202,8 @@ L.U.DataLayer = L.Evented.extend({ this._layers = {} this._geojson = null this._propertiesIndex = [] - this._loaded = false // Are layer metadata loaded - this._dataloaded = false // Are layer data loaded + this._loaded = false // Are layer metadata loaded + this._dataloaded = false // Are layer data loaded this.parentPane = this.map.getPane('overlayPane') this.pane = this.map.createPane(`datalayer${L.stamp(this)}`, this.parentPane) diff --git a/umap/static/umap/test/Map.Export.js b/umap/static/umap/test/Map.Export.js index 1c17a803..09ce3588 100644 --- a/umap/static/umap/test/Map.Export.js +++ b/umap/static/umap/test/Map.Export.js @@ -207,6 +207,7 @@ describe('L.U.Map.Export', function () { _umap_options: { displayOnLoad: true, browsable: true, + editMode: 'advanced', iconClass: 'Default', name: 'Elephants', id: 62,