This commit is contained in:
Austen Adler 2023-03-19 13:18:12 -04:00
parent 8259d37022
commit 83288289d6
2 changed files with 2 additions and 5 deletions

View File

@ -3,7 +3,8 @@ import * as xpinWasm from 'xpin-wasm';
export const emptyxpin = { export const emptyxpin = {
address: '', address: '',
latLon: [0.0, 0.0] latLon: [0.0, 0.0],
decimalDegrees: '',
}; };
export function getxpin(xpin) { export function getxpin(xpin) {

View File

@ -12,7 +12,6 @@
let map; let map;
// let latlngInputValue = { lat: '', lng: '' };
let addr = emptyxpin; let addr = emptyxpin;
let addrInputValue = ''; let addrInputValue = '';
@ -34,11 +33,8 @@
}) })
.setContent(`${addr.address}`) .setContent(`${addr.address}`)
.openOn(map); .openOn(map);
// latlngInputValue = { lat: latlng.lat, lng: latlng.lng };
// popup.setLatLng(latlng).setContent(`${addr.address}`).openOn(map);
} catch (err) { } catch (err) {
console.error(err); console.error(err);
// addr = emptyxpin;
addrInputValue = ''; addrInputValue = '';
popup.setLatLng(latlng).setContent(`You clicked at ${latlng}`).openOn(map); popup.setLatLng(latlng).setContent(`You clicked at ${latlng}`).openOn(map);
} }