diff --git a/js/control/LayersTab.js b/js/control/LayersTab.js index 0247fb4..be03d33 100644 --- a/js/control/LayersTab.js +++ b/js/control/LayersTab.js @@ -14,7 +14,7 @@ BR.LayersTab = L.Control.Layers.extend({ var layerIndex = BR.layerIndex; - L.DomUtil.get('layers-control-wrapper').appendChild(this._form); + L.DomUtil.get('layers-control-wrapper').appendChild(this._section); this.initButtons(); @@ -74,7 +74,7 @@ BR.LayersTab = L.Control.Layers.extend({ ], 'Country': [ 'historic-place-contours', - 'hu-hillshade', + 'hu-hillshade', { 'PL - Poland': [ 'mapaszlakow-cycle', @@ -146,7 +146,7 @@ BR.LayersTab = L.Control.Layers.extend({ plugins: [ 'checkbox' ], checkbox: { whole_node: false, - tie_selection: false + tie_selection: false }, core: { 'multiple': false, @@ -214,7 +214,7 @@ BR.LayersTab = L.Control.Layers.extend({ // when key required only add if configured if (!keyObj || keyObj && BR.keys[keyObj.name]) { - childNode = { + childNode = { 'id': id, 'text': props.name, 'state': { @@ -333,7 +333,7 @@ BR.LayersTab = L.Control.Layers.extend({ }, onBaselayerchange: function () { - // execute after current input click handler, + // execute after current input click handler, // otherwise added overlay checkbox state doesn't update setTimeout(L.Util.bind(function () { this.removePreviewLayer(); diff --git a/package.json b/package.json index b503534..ce4e8a2 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "jquery": "3.3.1", "jquery-i18next": "^1.2.1", "jstree": "^3.3.7", - "leaflet": "~1.3.0", + "leaflet": "~1.4.0", "leaflet-control-geocoder": "~1.5.8", "leaflet-easybutton": "*", "leaflet-editable": "^1.1.0", diff --git a/yarn.lock b/yarn.lock index f0a859e..d75b9ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3527,16 +3527,11 @@ leaflet.stravasegments@2.3.2: leaflet-easybutton "^2.3.0" leaflet-triangle-marker "^1.0.1" -leaflet@^1.0.1, leaflet@^1.3.4: +leaflet@^1.0.1, leaflet@^1.3.4, leaflet@~1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/leaflet/-/leaflet-1.4.0.tgz#d5f56eeb2aa32787c24011e8be4c77e362ae171b" integrity sha512-x9j9tGY1+PDLN9pcWTx9/y6C5nezoTMB8BLK5jTakx+H7bPlnbCHfi9Hjg+Qt36sgDz/cb9lrSpNQXmk45Tvhw== -leaflet@~1.3.0: - version "1.3.4" - resolved "https://registry.yarnpkg.com/leaflet/-/leaflet-1.3.4.tgz#7f006ea5832603b53d7269ef5c595fd773060a40" - integrity sha512-FYL1LGFdj6v+2Ifpw+AcFIuIOqjNggfoLUwuwQv6+3sS21Za7Wvapq+LhbSE4NDXrEj6eYnW3y7LsaBICpyXtw== - liftoff@^2.1.0: version "2.5.0" resolved "https://registry.yarnpkg.com/liftoff/-/liftoff-2.5.0.tgz#2009291bb31cea861bbf10a7c15a28caf75c31ec"