forked from MapComplete/MapComplete
		
	Fix loading external velopark data
This commit is contained in:
		
							parent
							
								
									250eede658
								
							
						
					
					
						commit
						505844b64a
					
				
					 6 changed files with 26 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -4,7 +4,6 @@
 | 
			
		|||
    import { UIEventSource } from "../../Logic/UIEventSource"
 | 
			
		||||
    import type { OsmTags } from "../../Models/OsmFeature"
 | 
			
		||||
    import type { SpecialVisualizationState } from "../SpecialVisualization"
 | 
			
		||||
    import type { P4CPicture } from "../../Logic/Web/NearbyImagesSearch"
 | 
			
		||||
    import type { Feature } from "geojson"
 | 
			
		||||
    import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
 | 
			
		||||
    import ComparisonAction from "./ComparisonAction.svelte"
 | 
			
		||||
| 
						 | 
				
			
			@ -19,7 +18,6 @@
 | 
			
		|||
 | 
			
		||||
    export let tags: UIEventSource<OsmTags>
 | 
			
		||||
    export let state: SpecialVisualizationState
 | 
			
		||||
    export let image: P4CPicture
 | 
			
		||||
    export let feature: Feature
 | 
			
		||||
    export let layer: LayerConfig
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -115,6 +113,5 @@
 | 
			
		|||
      {layer} />
 | 
			
		||||
  {/each}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{/if}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,11 +11,12 @@ import { UIEventSource } from "../../Logic/UIEventSource"
 | 
			
		|||
import ComparisonTable from "./ComparisonTable.svelte"
 | 
			
		||||
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
 | 
			
		||||
import type { Feature } from "geojson"
 | 
			
		||||
import type { OsmTags } from "../../Models/OsmFeature"
 | 
			
		||||
 | 
			
		||||
export let url: string
 | 
			
		||||
export let postprocessVelopark: boolean
 | 
			
		||||
export let state: SpecialVisualizationState
 | 
			
		||||
export let tags: UIEventSource<Record<string, string>>
 | 
			
		||||
export let tags: UIEventSource<OsmTags>
 | 
			
		||||
export let layer: LayerConfig
 | 
			
		||||
export let feature: Feature
 | 
			
		||||
let data: any = undefined
 | 
			
		||||
| 
						 | 
				
			
			@ -56,6 +57,6 @@ onMount(async () => {
 | 
			
		|||
  <Loading>
 | 
			
		||||
    Loading {$tags[url]}
 | 
			
		||||
  </Loading>
 | 
			
		||||
{:else}
 | 
			
		||||
  <ComparisonTable externalProperties={data.properties} osmProperties={$tags} {state} {feature} {layer} {tags}/>
 | 
			
		||||
{:else if data.properties !== undefined}
 | 
			
		||||
  <ComparisonTable externalProperties={data.properties} osmProperties={$tags} {state} {feature} {layer} {tags} />
 | 
			
		||||
{/if}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue