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