forked from MapComplete/MapComplete
Merge develop
This commit is contained in:
commit
1378c1a779
372 changed files with 26005 additions and 20082 deletions
|
|
@ -43,6 +43,8 @@
|
|||
import Train from "../../assets/svg/Train.svelte"
|
||||
import Airport from "../../assets/svg/Airport.svelte"
|
||||
import BuildingStorefront from "@babeard/svelte-heroicons/outline/BuildingStorefront"
|
||||
import LockClosed from "@babeard/svelte-heroicons/solid/LockClosed"
|
||||
import Key from "@babeard/svelte-heroicons/solid/Key"
|
||||
|
||||
/**
|
||||
* Renders a single icon.
|
||||
|
|
@ -54,7 +56,7 @@
|
|||
export let color: string | undefined = undefined
|
||||
export let clss: string | undefined = ""
|
||||
clss ??= ""
|
||||
export let emojiHeight = 40
|
||||
export let emojiHeight = "40px"
|
||||
</script>
|
||||
|
||||
{#if icon}
|
||||
|
|
@ -150,6 +152,10 @@
|
|||
<PencilIcon class={clss} {color} />
|
||||
{:else if icon === "user_circle"}
|
||||
<UserCircleIcon class={clss} {color} />
|
||||
{:else if icon === "lock"}
|
||||
<LockClosed class={clss} {color} />
|
||||
{:else if icon === "key"}
|
||||
<Key class={clss} {color} />
|
||||
{:else if icon==="globe_alt"}
|
||||
<GlobeAltIcon class={clss} {color} />
|
||||
{:else if icon === "building_office_2"}
|
||||
|
|
@ -163,10 +169,9 @@
|
|||
{:else if icon === "building_storefront"}
|
||||
<BuildingStorefront {color} class={clss}/>
|
||||
{:else if Utils.isEmoji(icon)}
|
||||
<span style={`font-size: ${emojiHeight}px; line-height: ${emojiHeight}px`}>
|
||||
<span style={`font-size: ${emojiHeight}; line-height: ${emojiHeight}`}>
|
||||
{icon}
|
||||
</span>
|
||||
|
||||
{:else}
|
||||
<img class={clss ?? "h-full w-full"} src={icon} aria-hidden="true" alt="" />
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
* Class which is applied onto the individual icons
|
||||
*/
|
||||
export let clss = ""
|
||||
export let emojiHeight: string = "40px"
|
||||
|
||||
/**
|
||||
* Class applied onto the entire element
|
||||
|
|
@ -41,7 +42,7 @@
|
|||
<div class={twMerge("relative", size)}>
|
||||
{#each iconsParsed as icon}
|
||||
<div class="absolute top-0 left-0 flex h-full w-full items-center">
|
||||
<Icon icon={icon.icon} color={icon.color} {clss} />
|
||||
<Icon icon={icon.icon} color={icon.color} {clss} {emojiHeight} />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -93,6 +93,15 @@
|
|||
{#each availableLayers as availableLayer}
|
||||
<option value={availableLayer.properties.id}>
|
||||
{availableLayer.properties.name}
|
||||
{#if availableLayer.properties.category.startsWith("historic")}
|
||||
⏱️
|
||||
{/if}
|
||||
{#if availableLayer.properties.category.endsWith("elevation")}
|
||||
⛰
|
||||
{/if}
|
||||
{#if availableLayer.properties.best}
|
||||
⭐
|
||||
{/if}
|
||||
</option>
|
||||
{/each}
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue