[OpenLayers-Commits] r11209 - sandbox/bartvde/sencha/openlayers/examples/map

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Feb 21 12:45:06 EST 2011


Author: bartvde
Date: 2011-02-21 09:45:06 -0800 (Mon, 21 Feb 2011)
New Revision: 11209

Modified:
   sandbox/bartvde/sencha/openlayers/examples/map/index.js
Log:
use touch navigation control

Modified: sandbox/bartvde/sencha/openlayers/examples/map/index.js
===================================================================
--- sandbox/bartvde/sencha/openlayers/examples/map/index.js	2011-02-21 17:38:11 UTC (rev 11208)
+++ sandbox/bartvde/sencha/openlayers/examples/map/index.js	2011-02-21 17:45:06 UTC (rev 11209)
@@ -33,7 +33,13 @@
 
             useCurrentLocation: true,
             mapOptions : {
-                controls: [],
+                controls: [                
+                    new OpenLayers.Control.TouchNavigation({
+                        dragPanOptions: {
+                            interval: 0 // non-zero kills performance on some mobile phones
+                        }
+                    })
+                ],
                 center : new OpenLayers.LonLat(-122.135672, 37.381592),  //nearby San Fran
                 zoom : 10
             },



More information about the Commits mailing list