From 712313f153c77a1e226d1307c1cc58e98d1f934e Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 15 Mar 2023 23:07:56 -0400 Subject: [PATCH] Misc changes --- src/conversions.rs | 1 + web-frontend/src/routes/app/+page.svelte | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/conversions.rs b/src/conversions.rs index ee6c3a1..ce6bb09 100644 --- a/src/conversions.rs +++ b/src/conversions.rs @@ -2,6 +2,7 @@ mod wrap; use std::ops::RangeInclusive; use s2::{cellid::CellID, latlng::LatLng}; +use words::Word; pub(crate) const TWELVE_BITS: u64 = 0b1111_1111_1111; pub(crate) const THIRTEEN_BITS: u64 = 0b1_1111_1111_1111; diff --git a/web-frontend/src/routes/app/+page.svelte b/web-frontend/src/routes/app/+page.svelte index 9fc11a5..95f3e93 100644 --- a/web-frontend/src/routes/app/+page.svelte +++ b/web-frontend/src/routes/app/+page.svelte @@ -29,10 +29,13 @@ latlng = e.latlng; addr = getxpin(wasm.call.EncodedAddress.from_lat_lon(latlng.lat, latlng.lng)); console.log(latlng, addr); - popup.setLatLng({ - lat:addr.latLon[0], - lng:addr.latLon[1] - }).setContent(`${addr.address}`).openOn(map); + popup + .setLatLng({ + lat: addr.latLon[0], + lng: addr.latLon[1] + }) + .setContent(`${addr.address}`) + .openOn(map); // popup.setLatLng(e.latlng).setContent(`${addr.address}`).openOn(map); } catch (err) { console.error(err);