]> git.openstreetmap.org Git - nominatim.git/commitdiff
user interface: enable scrollwheel zoom. Disable on touch devices
authormarc tobias <mtm@marcs-MacBook-Pro.local>
Thu, 21 Jan 2016 14:47:55 +0000 (14:47 +0000)
committermarc tobias <mtm@marcs-MacBook-Pro.local>
Thu, 21 Jan 2016 14:47:55 +0000 (14:47 +0000)
website/js/nominatim-ui.js

index a3d5e77cba2ba1fa07f2b49c8bfbafb5a210bb4f..1c90cb0f618074556cc52c73082307acc92ee147 100644 (file)
@@ -10,11 +10,9 @@ jQuery(document).on('ready', function(){
        $('#q').focus();
 
        map = new L.map('map', {
        $('#q').focus();
 
        map = new L.map('map', {
-                               // center: [nominatim_map_init.lat || 0, nominatim_map_init.lon],
-                               // zoom:   nominatim_map_init.zoom,
-                               attributionControl: false,
-                               scrollWheelZoom:    false,
-                               touchZoom:          false,
+                               attributionControl: false, // moved to page footer
+                               scrollWheelZoom:    !L.Browser.touch,
+                               touchZoom:          false
                        });
 
 
                        });