[OpenLayers-Commits] r11212 - trunk/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Tue Feb 22 03:54:42 EST 2011


Author: erilem
Date: 2011-02-22 00:54:42 -0800 (Tue, 22 Feb 2011)
New Revision: 11212

Added:
   trunk/openlayers/examples/mobile-navigation.html
Removed:
   trunk/openlayers/examples/mobile-touchnavigation-control.html
Log:
let's have a basic mobile-navigation example focusing on navigation-related functionality for mobile, no functional change

Copied: trunk/openlayers/examples/mobile-navigation.html (from rev 11208, trunk/openlayers/examples/mobile-touchnavigation-control.html)
===================================================================
--- trunk/openlayers/examples/mobile-navigation.html	                        (rev 0)
+++ trunk/openlayers/examples/mobile-navigation.html	2011-02-22 08:54:42 UTC (rev 11212)
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
+    <meta name="apple-mobile-web-app-capable" content="yes" />
+    <title>OpenLayers TouchNavigation Control</title>
+    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
+    <link rel="stylesheet" href="style.css" type="text/css" />
+    <script src="../lib/OpenLayers.js"></script>
+    <script type="text/javascript">
+        var map, layer;
+        function init() {
+            map = new OpenLayers.Map( 'map', { controls: [
+                new OpenLayers.Control.TouchNavigation({
+                    dragPanOptions: {
+                        interval: 0 // non-zero kills performance on some mobile phones
+                    }
+                })
+            ] });
+            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
+                    "http://vmap0.tiles.osgeo.org/wms/vmap0",
+                    {layers: 'basic'} );
+            map.addLayer(layer);
+            map.setCenter(new OpenLayers.LonLat(5, 40), 2);
+        }
+    </script>
+  </head>
+  <body onload="init()">
+    <h1 id="title">TouchNavigation Control</h1>
+
+    <div id="tags">
+        mobile, touch, drag, move, zoom, navigate
+    </div>
+
+    <div id="shortdesc">Demonstrate TouchNavigation Control features</div>
+
+    <div id="map" class="smallmap"></div>
+    <div id="docs">
+        This example demonstrates a couple features of the TouchNavigation
+        control. The TouchNavigation control controls most map dragging,
+        movement, zooming, etc, optimized for mobile devices.
+    </div>
+  </body>
+</html>

Deleted: trunk/openlayers/examples/mobile-touchnavigation-control.html
===================================================================
--- trunk/openlayers/examples/mobile-touchnavigation-control.html	2011-02-22 08:19:05 UTC (rev 11211)
+++ trunk/openlayers/examples/mobile-touchnavigation-control.html	2011-02-22 08:54:42 UTC (rev 11212)
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
-    <meta name="apple-mobile-web-app-capable" content="yes" />
-    <title>OpenLayers TouchNavigation Control</title>
-    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
-    <link rel="stylesheet" href="style.css" type="text/css" />
-    <script src="../lib/OpenLayers.js"></script>
-    <script type="text/javascript">
-        var map, layer;
-        function init() {
-            map = new OpenLayers.Map( 'map', { controls: [
-                new OpenLayers.Control.TouchNavigation({
-                    dragPanOptions: {
-                        interval: 0 // non-zero kills performance on some mobile phones
-                    }
-                })
-            ] });
-            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
-                    "http://vmap0.tiles.osgeo.org/wms/vmap0",
-                    {layers: 'basic'} );
-            map.addLayer(layer);
-            map.setCenter(new OpenLayers.LonLat(5, 40), 2);
-        }
-    </script>
-  </head>
-  <body onload="init()">
-    <h1 id="title">TouchNavigation Control</h1>
-
-    <div id="tags">
-        mobile, touch, drag, move, zoom, navigate
-    </div>
-
-    <div id="shortdesc">Demonstrate TouchNavigation Control features</div>
-
-    <div id="map" class="smallmap"></div>
-    <div id="docs">
-        This example demonstrates a couple features of the TouchNavigation
-        control. The TouchNavigation control controls most map dragging,
-        movement, zooming, etc, optimized for mobile devices.
-    </div>
-  </body>
-</html>



More information about the Commits mailing list