| 
									
										
										
										
											2023-11-16 03:32:04 +01:00
										 |  |  | <script lang="ts"> | 
					
						
							| 
									
										
										
										
											2023-11-23 15:47:16 +01:00
										 |  |  |   import type { Feature } from "geojson" | 
					
						
							|  |  |  |   import type { SpecialVisualizationState } from "../SpecialVisualization" | 
					
						
							|  |  |  |   import LayerConfig from "../../Models/ThemeConfig/LayerConfig" | 
					
						
							|  |  |  |   import TagRenderingAnswer from "../Popup/TagRendering/TagRenderingAnswer.svelte" | 
					
						
							| 
									
										
										
										
											2023-12-21 17:36:43 +01:00
										 |  |  |   import DirectionIndicator from "../Base/DirectionIndicator.svelte" | 
					
						
							| 
									
										
										
										
											2023-11-16 03:32:04 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-23 15:47:16 +01:00
										 |  |  |   export let state: SpecialVisualizationState | 
					
						
							| 
									
										
										
										
											2023-11-16 03:32:04 +01:00
										 |  |  |   export let feature: Feature | 
					
						
							| 
									
										
										
										
											2023-12-15 01:46:01 +01:00
										 |  |  |   export let i: number = undefined | 
					
						
							| 
									
										
										
										
											2023-11-16 03:32:04 +01:00
										 |  |  |   let id = feature.properties.id | 
					
						
							| 
									
										
										
										
											2023-11-23 15:47:16 +01:00
										 |  |  |   let tags = state.featureProperties.getStore(id) | 
					
						
							| 
									
										
										
										
											2024-10-17 04:06:03 +02:00
										 |  |  |   let layer: LayerConfig = state.theme.getMatchingLayer(tags.data) | 
					
						
							| 
									
										
										
										
											2023-11-16 03:32:04 +01:00
										 |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-24 05:01:10 +01:00
										 |  |  | <span class="inline-flex gap-x-1"> | 
					
						
							| 
									
										
										
										
											2023-12-30 15:24:30 +01:00
										 |  |  |   <a | 
					
						
							|  |  |  |     class="small flex w-fit cursor-pointer items-center space-x-0.5" | 
					
						
							|  |  |  |     href={`#${feature.properties.id}`} | 
					
						
							|  |  |  |   > | 
					
						
							|  |  |  |     {#if i !== undefined} | 
					
						
							|  |  |  |       <span class="font-bold">{i + 1}  </span> | 
					
						
							|  |  |  |     {/if} | 
					
						
							|  |  |  |     <TagRenderingAnswer | 
					
						
							|  |  |  |       config={layer.title} | 
					
						
							|  |  |  |       extraClasses="inline-flex w-fit" | 
					
						
							|  |  |  |       {layer} | 
					
						
							|  |  |  |       selectedElement={feature} | 
					
						
							|  |  |  |       {state} | 
					
						
							|  |  |  |       {tags} | 
					
						
							|  |  |  |     /> | 
					
						
							| 
									
										
										
										
											2024-01-29 16:43:23 +01:00
										 |  |  |     <DirectionIndicator {feature} {state} /> | 
					
						
							| 
									
										
										
										
											2023-12-30 15:24:30 +01:00
										 |  |  |   </a> | 
					
						
							| 
									
										
										
										
											2023-12-24 05:01:10 +01:00
										 |  |  | </span> |