forked from MapComplete/MapComplete
		
	Merge develop
This commit is contained in:
		
						commit
						d0ebd0e233
					
				
					 187 changed files with 1201 additions and 22352 deletions
				
			
		|  | @ -1,20 +1,22 @@ | |||
| <script lang="ts"> | ||||
|   import PointRenderingConfig, { IconConfig } from "../../Models/ThemeConfig/PointRenderingConfig" | ||||
|   import { Store } from "../../Logic/UIEventSource" | ||||
|   import DynamicIcon from "./DynamicIcon.svelte" | ||||
|   import { IconConfig } from "../../Models/ThemeConfig/PointRenderingConfig"; | ||||
|   import { ImmutableStore, Store } from "../../Logic/UIEventSource"; | ||||
|   import DynamicIcon from "./DynamicIcon.svelte"; | ||||
|   import TagRenderingConfig from "../../Models/ThemeConfig/TagRenderingConfig"; | ||||
| 
 | ||||
|   /** | ||||
|    * Renders a 'marker', which consists of multiple 'icons' | ||||
|    */ | ||||
|   export let config: PointRenderingConfig | ||||
|   let icons: IconConfig[] = config.marker | ||||
|   export let tags: Store<Record<string, string>> | ||||
|   let rotation = tags.map((tags) => config.rotation.GetRenderValue(tags).Subs(tags).txt) | ||||
|   export let marker: IconConfig[] = config?.marker; | ||||
|   export let tags: Store<Record<string, string>>; | ||||
|   export let rotation: TagRenderingConfig | ||||
|   let _rotation = rotation ? tags.map(tags => rotation.GetRenderValue(tags).Subs(tags).txt) : new ImmutableStore(0); | ||||
|    | ||||
| </script> | ||||
| 
 | ||||
| {#if config !== undefined} | ||||
|   <div class="relative h-full w-full" style={`transform: rotate(${$rotation})`}> | ||||
|     {#each icons as icon} | ||||
| {#if marker && marker} | ||||
|   <div class="relative h-full w-full" style={`transform: rotate(${$_rotation})`}> | ||||
|     {#each marker as icon} | ||||
|       <DynamicIcon {icon} {tags} /> | ||||
|     {/each} | ||||
|   </div> | ||||
|  |  | |||
|  | @ -19,6 +19,9 @@ | |||
|   import Teardrop from "../../assets/svg/Teardrop.svelte" | ||||
|   import Teardrop_with_hole_green from "../../assets/svg/Teardrop_with_hole_green.svelte" | ||||
|   import Triangle from "../../assets/svg/Triangle.svelte" | ||||
|   import Brick_wall_square from "../../assets/svg/Brick_wall_square.svelte"; | ||||
|   import Brick_wall_round from "../../assets/svg/Brick_wall_round.svelte"; | ||||
|   import Gps_arrow from "../../assets/svg/Gps_arrow.svelte"; | ||||
| 
 | ||||
|   /** | ||||
|    * Renders a single icon. | ||||
|  | @ -72,6 +75,20 @@ | |||
|       <Teardrop_with_hole_green {color} /> | ||||
|     {:else if icon === "triangle"} | ||||
|       <Triangle {color} /> | ||||
|     {:else if icon === "brick_wall_square"} | ||||
|       <Brick_wall_square {color} /> | ||||
|     {:else if icon === "brick_wall_round"} | ||||
|       <Brick_wall_round {color} /> | ||||
|     {:else if icon === "gps_arrow"} | ||||
|       <Gps_arrow {color} /> | ||||
|     {:else if icon === "checkmark"} | ||||
|       <Checkmark {color} /> | ||||
|     {:else if icon === "help"} | ||||
|       <Help {color} /> | ||||
|     {:else if icon === "close"} | ||||
|       <Close {color} /> | ||||
|     {:else if icon === "invalid"} | ||||
|       <Invalid {color} /> | ||||
|     {:else} | ||||
|       <img class="h-full w-full" src={icon} /> | ||||
|     {/if} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue