From 81e1fa58ec3c67467535f1f468417f69a0488428 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 22 Apr 2023 14:03:02 -0400 Subject: [PATCH] Clean up js coordinate types --- web-frontend/src/routes/app/+page.svelte | 2 +- web-frontend/src/routes/app/CoordinateInfo.svelte | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web-frontend/src/routes/app/+page.svelte b/web-frontend/src/routes/app/+page.svelte index 3580946..5f7327e 100644 --- a/web-frontend/src/routes/app/+page.svelte +++ b/web-frontend/src/routes/app/+page.svelte @@ -193,7 +193,7 @@ {#if tabInfo.selected === 1} - + {/if} {:catch message} Could not start core module diff --git a/web-frontend/src/routes/app/CoordinateInfo.svelte b/web-frontend/src/routes/app/CoordinateInfo.svelte index ad40870..4437891 100644 --- a/web-frontend/src/routes/app/CoordinateInfo.svelte +++ b/web-frontend/src/routes/app/CoordinateInfo.svelte @@ -3,7 +3,8 @@ import { onMount, onDestroy } from 'svelte'; export let xpin; - let formats = ['dd', 'dms', 'dmm', 'utm', 'plus']; + export let coordinateTypes; + let urlFormats = [ 'google_maps', 'geo', @@ -54,9 +55,9 @@ {/each} - {#each formats as format} + {#each coordinateTypes as format} - {format.toUpperCase()} + {format} {xpin.allCoordinates[format]}