[fusion-commits] r2743 - trunk/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Jul 2 23:37:18 PDT 2013


Author: jng
Date: 2013-07-02 23:37:17 -0700 (Tue, 02 Jul 2013)
New Revision: 2743

Modified:
   trunk/lib/Map.js
Log:
#575: The offender was the OpenLayers.Control.TouchNavigation we've added to the OL map as part of the OL 2.12 upgrade. The default OpenLayers.Control.Navigation control is already mobile ready, it just cannot pinch zoom. Adding the OpenLayers.Control.PinchZoom restores this functionality without causing this issue to prop up again.

Modified: trunk/lib/Map.js
===================================================================
--- trunk/lib/Map.js	2013-07-03 05:19:48 UTC (rev 2742)
+++ trunk/lib/Map.js	2013-07-03 06:37:17 UTC (rev 2743)
@@ -255,7 +255,7 @@
         OpenLayers.DOTS_PER_INCH = this._nDpi;
         if (!this.oMapOL) {
             var options = {
-                controls: [ new OpenLayers.Control.TouchNavigation() ],
+                controls: [ new OpenLayers.Control.PinchZoom() ],
                 fallThrough: true,
                 scales: scalesArray,
                 fractionalZoom: this.fractionalZoom



More information about the fusion-commits mailing list