Add layer-control-toggle to the URL bar and in the share-screen, fix #90
This commit is contained in:
parent
734f571b5d
commit
0e4cd630e6
4 changed files with 32 additions and 5 deletions
|
@ -127,7 +127,10 @@ export class InitUiElements {
|
|||
|
||||
InitUiElements.OnlyIf(State.state.featureSwitchLayers, () => {
|
||||
|
||||
const checkbox = new CheckBox(layerControl, closedFilterButton);
|
||||
const checkbox = new CheckBox(layerControl, closedFilterButton,
|
||||
QueryParameters.GetQueryParameter("layer-control-toggle", "false")
|
||||
.map((str) => str !== "false", [], b => "" + b)
|
||||
);
|
||||
checkbox.AttachTo("filter__selection");
|
||||
State.state.bm.Location.addCallback(() => {
|
||||
checkbox.isEnabled.setData(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue