Cleanup
This commit is contained in:
parent
8259d37022
commit
83288289d6
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user