Zoom control is now only disabled on multitouch capable devices by default

and can be forced on again via a preference.
This commit is contained in:
Jon Benson
2013-05-07 17:22:07 +10:00
parent 541d4c8899
commit 084494bec0
5 changed files with 22 additions and 4 deletions

View File

@ -3,6 +3,8 @@
// created a basic framework. All of these functions should only ever
// be run once.
// Used to disable on multitouch devices
window.showZoom = true;
window.setupBackButton = function() {
var c = window.isSmartphone()
@ -156,7 +158,7 @@ window.setupMap = function() {
window.map = new L.Map('map', $.extend(getPosition(),
{zoomControl: !window.isSmartphone()}
{zoomControl: window.showZoom}
));
var addLayers = {};