Use layer-<layerid> again as URL parameter

This commit is contained in:
pietervdvn 2022-02-16 00:21:03 +01:00
parent 4638f82635
commit f2042a6db4

View file

@ -375,7 +375,7 @@ export default class MapState extends UserRelatedState {
} else if (layer.syncSelection === "global") { } else if (layer.syncSelection === "global") {
isDisplayed = this.getPref("layer-" + layer.id + "-enabled", layer) isDisplayed = this.getPref("layer-" + layer.id + "-enabled", layer)
} else { } else {
isDisplayed = QueryParameters.GetBooleanQueryParameter("layer-" + layer.id + "-enabled",layer.shownByDefault, "Wether or not layer "+layer.id+" is shown") isDisplayed = QueryParameters.GetBooleanQueryParameter("layer-" + layer.id, layer.shownByDefault, "Wether or not layer "+layer.id+" is shown")
} }