This commit is contained in:
Austen Adler 2023-02-28 05:58:48 -05:00
parent 4c41034749
commit 8a6b8fe950

View File

@ -31,8 +31,8 @@
map.on('click', (e) => {
try {
lat = '' + e.latlng.lat;
lon = '' + e.latlng.lng;
lat = '' + e.latlng.lat;
lon = '' + e.latlng.lng;
addr = address_from_lat_lon(e.latlng.lat, e.latlng.lng);
popup.setLatLng(e.latlng).setContent(`You clicked at ${addr}`).openOn(map);
} catch (err) {