[OpenLayers-Commits] r12122 - trunk/openlayers/lib/OpenLayers/Control

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Jun 22 02:30:46 EDT 2011


Author: tschaub
Date: 2011-06-21 23:30:45 -0700 (Tue, 21 Jun 2011)
New Revision: 12122

Modified:
   trunk/openlayers/lib/OpenLayers/Control/TouchNavigation.js
Log:
Clarifying that the TouchNavigation control can be used without a standard Navigation control (closes #3350).

Modified: trunk/openlayers/lib/OpenLayers/Control/TouchNavigation.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/TouchNavigation.js	2011-06-22 06:04:10 UTC (rev 12121)
+++ trunk/openlayers/lib/OpenLayers/Control/TouchNavigation.js	2011-06-22 06:30:45 UTC (rev 12122)
@@ -15,6 +15,12 @@
  *     double-tapping, tap with two fingers, and pinch zoom).  Create a new 
  *     control with the <OpenLayers.Control.TouchNavigation> constructor.
  *
+ * If you’re only targeting touch enabled devices with your mapping application,
+ *     you can create a map with only a TouchNavigation control. The 
+ *     <OpenLayers.Control.Navigation> control is mobile ready by default, but 
+ *     you can generate a smaller build of the library by only including this
+ *     touch navigation control if you aren't concerned about mouse interaction.
+ *
  * Inherits:
  *  - <OpenLayers.Control>
  */



More information about the Commits mailing list