Misc changes
This commit is contained in:
parent
2158dcb96f
commit
712313f153
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user