From 83288289d63fdf35685072e4a2fdcd17e1bc751e Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 19 Mar 2023 13:18:12 -0400 Subject: [PATCH] Cleanup --- web-frontend/src/lib/common.js | 3 ++- web-frontend/src/routes/app/+page.svelte | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/web-frontend/src/lib/common.js b/web-frontend/src/lib/common.js index 5e4c0ce..84f75cb 100644 --- a/web-frontend/src/lib/common.js +++ b/web-frontend/src/lib/common.js @@ -3,7 +3,8 @@ import * as xpinWasm from 'xpin-wasm'; export const emptyxpin = { address: '', - latLon: [0.0, 0.0] + latLon: [0.0, 0.0], + decimalDegrees: '', }; export function getxpin(xpin) { diff --git a/web-frontend/src/routes/app/+page.svelte b/web-frontend/src/routes/app/+page.svelte index fa6fc08..696ddaa 100644 --- a/web-frontend/src/routes/app/+page.svelte +++ b/web-frontend/src/routes/app/+page.svelte @@ -12,7 +12,6 @@ let map; - // let latlngInputValue = { lat: '', lng: '' }; let addr = emptyxpin; let addrInputValue = ''; @@ -34,11 +33,8 @@ }) .setContent(`${addr.address}`) .openOn(map); - // latlngInputValue = { lat: latlng.lat, lng: latlng.lng }; - // popup.setLatLng(latlng).setContent(`${addr.address}`).openOn(map); } catch (err) { console.error(err); - // addr = emptyxpin; addrInputValue = ''; popup.setLatLng(latlng).setContent(`You clicked at ${latlng}`).openOn(map); }