forked from MapComplete/MapComplete
Add attribution button as standalone button, fix image license display
This commit is contained in:
parent
b942dd764b
commit
664a7f821e
13 changed files with 160 additions and 116 deletions
|
@ -105,24 +105,7 @@ export default class LeftControls extends Combine {
|
|||
state.featureSwitchBackgroundSelection
|
||||
)
|
||||
|
||||
// If the welcomeMessage is disabled, the copyright is hidden (as that is where the copyright is located
|
||||
const copyright = new Toggle(
|
||||
undefined,
|
||||
new Lazy(() => {
|
||||
new ScrollableFullScreen(
|
||||
() => Translations.t.general.attribution.attributionTitle,
|
||||
() => new CopyrightPanel(state),
|
||||
"copyright",
|
||||
guiState.copyrightViewIsOpened
|
||||
)
|
||||
return new MapControlButton(Svg.copyright_svg()).onClick(() =>
|
||||
guiState.copyrightViewIsOpened.setData(true)
|
||||
)
|
||||
}),
|
||||
state.featureSwitchWelcomeMessage
|
||||
)
|
||||
|
||||
super([currentViewAction, filterButton, downloadButton, copyright, mapSwitch])
|
||||
super([currentViewAction, filterButton, downloadButton, mapSwitch])
|
||||
|
||||
this.SetClass("flex flex-col")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue