view_on_osm_link = map_link_to_osm(map);
map_zoom = map.getZoom();
map_viewbox = map_viewbox_as_string(map);
- mouse_position = '-'
+ mouse_position = '-';
if (mouse_lat_lng) {
- mouse_position = [mouse_lat_lng.lat.toFixed(5), mouse_lat_lng.lng.toFixed(5)].join(',')
+ mouse_position = [mouse_lat_lng.lat.toFixed(5), mouse_lat_lng.lng.toFixed(5)].join(',');
}
if (last_click_latlng) {
last_click = [last_click_latlng.lat.toFixed(5), last_click_latlng.lng.toFixed(5)].join(',');
map_store.subscribe(map => {
- if(!map) { return; }
+ if (!map) return;
map.on('move', function () {
display_map_position(map);
});
});
- function handleHideClick(e) {
+ function handleHideClick() {
document.getElementById('map-position').style.display = 'none';
- document.getElementById('show-map-position').style.display = 'block';
+ document.getElementById('show-map-position').style.display = 'block';
}
</script>
<div id="map-position">
<div id="map-position-inner">
map center: {map_center}
- <a target="_blank" href="{view_on_osm_link}">view on osm.org</a>
+ <a target="_blank" rel="noreferrer" href="{view_on_osm_link}">view on osm.org</a>
<br>
map zoom: {map_zoom}
<br>