Merge pull request #1252 from umap-project/tilelayer-panel

Do not close panel when switching tilelayer
This commit is contained in:
Yohan Boniface 2023-08-15 07:28:55 +02:00 committed by GitHub
commit 92fbc0a81c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1219,7 +1219,6 @@ L.U.TileLayerControl = L.Control.extend({
'click', 'click',
function () { function () {
this.map.selectTileLayer(tilelayer) this.map.selectTileLayer(tilelayer)
this.map.ui.closePanel()
if (options && options.callback) options.callback(tilelayer) if (options && options.callback) options.callback(tilelayer)
}, },
this this