Add default value for DataLayer.options.editMode

This commit is contained in:
Yohan Boniface 2023-09-13 16:53:19 +02:00
parent 6b269125d4
commit 84e3aa7121
2 changed files with 4 additions and 2 deletions

View file

@ -193,6 +193,7 @@ L.U.DataLayer = L.Evented.extend({
options: { options: {
displayOnLoad: true, displayOnLoad: true,
browsable: true, browsable: true,
editMode: 'advanced',
}, },
initialize: function (map, data) { initialize: function (map, data) {
@ -201,8 +202,8 @@ L.U.DataLayer = L.Evented.extend({
this._layers = {} this._layers = {}
this._geojson = null this._geojson = null
this._propertiesIndex = [] this._propertiesIndex = []
this._loaded = false // Are layer metadata loaded this._loaded = false // Are layer metadata loaded
this._dataloaded = false // Are layer data loaded this._dataloaded = false // Are layer data loaded
this.parentPane = this.map.getPane('overlayPane') this.parentPane = this.map.getPane('overlayPane')
this.pane = this.map.createPane(`datalayer${L.stamp(this)}`, this.parentPane) this.pane = this.map.createPane(`datalayer${L.stamp(this)}`, this.parentPane)

View file

@ -207,6 +207,7 @@ describe('L.U.Map.Export', function () {
_umap_options: { _umap_options: {
displayOnLoad: true, displayOnLoad: true,
browsable: true, browsable: true,
editMode: 'advanced',
iconClass: 'Default', iconClass: 'Default',
name: 'Elephants', name: 'Elephants',
id: 62, id: 62,