forked from MapComplete/MapComplete
Huge refactoring of state and initial UI setup
This commit is contained in:
parent
4e43673de5
commit
eff6b5bfad
37 changed files with 5232 additions and 4907 deletions
|
@ -104,19 +104,7 @@ export default class ExportPDF {
|
|||
|
||||
})
|
||||
|
||||
const initialized =new Set()
|
||||
for (const overlayToggle of State.state.overlayToggles) {
|
||||
new ShowOverlayLayer(overlayToggle.config, minimap.leafletMap, overlayToggle.isDisplayed)
|
||||
initialized.add(overlayToggle.config)
|
||||
}
|
||||
|
||||
for (const tileLayerSource of State.state.layoutToUse.tileLayerSources) {
|
||||
if (initialized.has(tileLayerSource)) {
|
||||
continue
|
||||
}
|
||||
new ShowOverlayLayer(tileLayerSource, minimap.leafletMap)
|
||||
}
|
||||
|
||||
State.state.AddAllOverlaysToMap(minimap.leafletMap)
|
||||
}
|
||||
|
||||
private cleanup() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue