mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-24 06:22:08 +03:00
user interface: enable scrollwheel zoom. Disable on touch devices
This commit is contained in:
parent
9f1d3ac272
commit
8f0199008d
@ -10,11 +10,9 @@ jQuery(document).on('ready', function(){
|
|||||||
$('#q').focus();
|
$('#q').focus();
|
||||||
|
|
||||||
map = new L.map('map', {
|
map = new L.map('map', {
|
||||||
// center: [nominatim_map_init.lat || 0, nominatim_map_init.lon],
|
attributionControl: false, // moved to page footer
|
||||||
// zoom: nominatim_map_init.zoom,
|
scrollWheelZoom: !L.Browser.touch,
|
||||||
attributionControl: false,
|
touchZoom: false
|
||||||
scrollWheelZoom: false,
|
|
||||||
touchZoom: false,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user