forked from MapComplete/MapComplete
Fix overlays in PDF, add overlay URL parameters
This commit is contained in:
parent
891c449058
commit
4e43673de5
9 changed files with 32 additions and 9 deletions
2
State.ts
2
State.ts
|
@ -426,7 +426,7 @@ export default class State {
|
|||
|
||||
this.overlayToggles = this.layoutToUse.tileLayerSources.filter(c => c.name !== undefined).map(c => ({
|
||||
config: c,
|
||||
isDisplayed: new UIEventSource<boolean>(c.defaultState)
|
||||
isDisplayed: QueryParameters.GetQueryParameter("overlay-"+c.id, ""+c.defaultState,"Wether or not the overlay "+c.id+" is shown").map(str => str === "true", [], b => ""+b)
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue