forked from MapComplete/MapComplete
Refactoring: move 'GetDefaultIcon' into its own Svelte-class
This commit is contained in:
parent
46ac716395
commit
335906b481
13 changed files with 97 additions and 80 deletions
|
|
@ -14,6 +14,7 @@
|
|||
import Translations from "../i18n/Translations"
|
||||
import type { SpecialVisualizationState } from "../SpecialVisualization"
|
||||
import Constants from "../../Models/Constants"
|
||||
import DefaultIcon from "../Map/DefaultIcon.svelte"
|
||||
|
||||
export let state: SpecialVisualizationState
|
||||
export let filteredLayer: FilteredLayer
|
||||
|
|
@ -58,7 +59,7 @@
|
|||
{#if showLayerTitle}
|
||||
<Checkbox selected={isDisplayed}>
|
||||
<div class="no-image-background block h-6 w-6" class:opacity-50={!$isDisplayed}>
|
||||
<ToSvelte construct={() => layer.defaultIcon()} />
|
||||
<DefaultIcon {layer}/>
|
||||
</div>
|
||||
|
||||
<Tr t={filteredLayer.layerDef.name} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue