forked from MapComplete/MapComplete
Use protomaps.sunny as default layer
This commit is contained in:
parent
6a08c28dca
commit
e8f4b382a8
18 changed files with 89 additions and 62 deletions
|
|
@ -110,7 +110,7 @@ class ApplyButton extends UIElement {
|
|||
mla.allowZooming.setData(false)
|
||||
mla.allowMoving.setData(false)
|
||||
|
||||
const previewMap = new SvelteUIElement(MaplibreMap, { map: mlmap }).SetClass("h-48")
|
||||
const previewMap = new SvelteUIElement(MaplibreMap, { mapProperties: mla, map: mlmap }).SetClass("h-48")
|
||||
|
||||
const features = this.target_feature_ids.map((id) =>
|
||||
this.state.indexedFeatures.featuresById.data.get(id)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
<ImportFlow {importFlow} on:confirm={() => importFlow.onConfirm()}>
|
||||
<div slot="map" class="relative">
|
||||
<div class="h-32">
|
||||
<MaplibreMap {map} />
|
||||
<MaplibreMap {map} mapProperties={mla} />
|
||||
</div>
|
||||
<div class="absolute bottom-0">
|
||||
<OpenBackgroundSelectorButton />
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ export class MinimapViz implements SpecialVisualization {
|
|||
state.layout.layers
|
||||
)
|
||||
|
||||
return new SvelteUIElement(MaplibreMap, { interactive: false, map: mlmap })
|
||||
return new SvelteUIElement(MaplibreMap, { interactive: false, map: mlmap, mapProperties: mla })
|
||||
.SetClass("h-40 rounded")
|
||||
.SetStyle("overflow: hidden; pointer-events: none;")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue