0001-maps-don-t-allow-at-all-moving-a-map-set-to-a-fixed-.patch
wcs/qommon/static/js/qommon.map.js | ||
---|---|---|
24 | 24 |
L.latLng($map_widget.data('max-bounds-lat1'), $map_widget.data('max-bounds-lng1')), |
25 | 25 |
L.latLng($map_widget.data('max-bounds-lat2'), $map_widget.data('max-bounds-lng2'))); |
26 | 26 |
} |
27 |
if ($map_widget.data('readonly') && $map_widget.attr('id') != 'backoffice-map') { |
|
28 |
map_options.scrollWheelZoom = 'center'; |
|
29 |
map_options.doubleClickZoom = 'center'; |
|
30 |
} |
|
27 | 31 |
var map = L.map($(this).attr('id'), map_options); |
28 | 32 |
var map_controls_position = $('body').data('map-controls-position') || 'topleft'; |
29 | 33 |
new L.Control.Zoom({ |
... | ... | |
55 | 59 |
}).addTo(map); |
56 | 60 |
if ($map_widget.data('readonly') && $map_widget.attr('id') != 'backoffice-map') { |
57 | 61 |
map.dragging.disable(); |
62 |
map.boxZoom.disable(); |
|
63 |
map.keyboard.disable(); |
|
58 | 64 |
} else { |
59 | 65 |
map.addControl(gps_control); |
60 | 66 |
map.on('click', function(e) { |
61 |
- |