UI: write background layer id into the URL, see #2089

This commit is contained in:
Pieter Vander Vennet 2024-09-24 16:40:45 +02:00
parent f663319512
commit 83a8d35c97

View file

@ -30,10 +30,7 @@ export class PreferredRasterLayerSelector {
const self = this
this._rasterLayerSetting.addCallbackD((layer) => {
if (layer.properties.id !== this._queryParameter.data) {
this._queryParameter.setData(undefined)
return true
}
this._queryParameter.setData(layer.properties.id)
})
this._queryParameter.addCallbackAndRunD((_) => {