Merge pull request #1315 from mtmail/ui-initialize-switch-to-reverse-link

UI: update the switch-to-reverse link after each map click
This commit is contained in:
Sarah Hoffmann 2019-02-24 17:51:09 +01:00 committed by GitHub
commit 64f7b13888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,9 +93,9 @@ jQuery(document).ready(function(){
$('#map-position-inner').html([html_center,html_zoom,html_viewbox,html_click,html_mouse].join('<br/>'));
var reverse_params = {
// lat: map.getCenter().lat.toFixed(5),
// lon: map.getCenter().lng.toFixed(5),
// zoom: 2,
lat: map.getCenter().lat.toFixed(5),
lon: map.getCenter().lng.toFixed(5),
zoom: map.getZoom(),
format: 'html'
}
$('#switch-to-reverse').attr('href', 'reverse.php?' + $.param(reverse_params));