Clean up js coordinate types
This commit is contained in:
parent
dd917558ac
commit
81e1fa58ec
@ -193,7 +193,7 @@
|
|||||||
<TabSelector bind:tabInfo />
|
<TabSelector bind:tabInfo />
|
||||||
|
|
||||||
{#if tabInfo.selected === 1}
|
{#if tabInfo.selected === 1}
|
||||||
<CoordinateInfo bind:xpin={addr} />
|
<CoordinateInfo bind:coordinateTypes bind:xpin={addr} />
|
||||||
{/if}
|
{/if}
|
||||||
{:catch message}
|
{:catch message}
|
||||||
<Error {message}>Could not start core module</Error>
|
<Error {message}>Could not start core module</Error>
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
import { onMount, onDestroy } from 'svelte';
|
import { onMount, onDestroy } from 'svelte';
|
||||||
|
|
||||||
export let xpin;
|
export let xpin;
|
||||||
let formats = ['dd', 'dms', 'dmm', 'utm', 'plus'];
|
export let coordinateTypes;
|
||||||
|
|
||||||
let urlFormats = [
|
let urlFormats = [
|
||||||
'google_maps',
|
'google_maps',
|
||||||
'geo',
|
'geo',
|
||||||
@ -54,9 +55,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
{#each formats as format}
|
{#each coordinateTypes as format}
|
||||||
<tr class="m-4 border">
|
<tr class="m-4 border">
|
||||||
<th class="p-4 border">{format.toUpperCase()}</th>
|
<th class="p-4 border">{format}</th>
|
||||||
<td class="p-4 border">{xpin.allCoordinates[format]}</td>
|
<td class="p-4 border">{xpin.allCoordinates[format]}</td>
|
||||||
<td class="p-4 border"><CopyButton data={xpin.allCoordinates[format]} /></td>
|
<td class="p-4 border"><CopyButton data={xpin.allCoordinates[format]} /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user