Format
This commit is contained in:
parent
4c41034749
commit
8a6b8fe950
@ -31,8 +31,8 @@
|
|||||||
|
|
||||||
map.on('click', (e) => {
|
map.on('click', (e) => {
|
||||||
try {
|
try {
|
||||||
lat = '' + e.latlng.lat;
|
lat = '' + e.latlng.lat;
|
||||||
lon = '' + e.latlng.lng;
|
lon = '' + e.latlng.lng;
|
||||||
addr = address_from_lat_lon(e.latlng.lat, 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);
|
popup.setLatLng(e.latlng).setContent(`You clicked at ${addr}`).openOn(map);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user