[OpenLayers-Commits] r11373 - sandbox/crschmidt/pan-tap/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Feb 23 13:51:34 EST 2011


Author: crschmidt
Date: 2011-02-23 10:51:34 -0800 (Wed, 23 Feb 2011)
New Revision: 11373

Modified:
   sandbox/crschmidt/pan-tap/examples/mobile.js
Log:
Change OSM layer to use transitionEffect, drop geolocation


Modified: sandbox/crschmidt/pan-tap/examples/mobile.js
===================================================================
--- sandbox/crschmidt/pan-tap/examples/mobile.js	2011-02-23 18:43:48 UTC (rev 11372)
+++ sandbox/crschmidt/pan-tap/examples/mobile.js	2011-02-23 18:51:34 UTC (rev 11373)
@@ -7,7 +7,8 @@
     
     // layer for drawn features
     var vector = new OpenLayers.Layer.Vector();
-
+    var osm = new OpenLayers.Layer.OSM();
+    osm.transitionEffect = "resize";
     // create map
     map = new OpenLayers.Map({
         div: "map",
@@ -28,13 +29,13 @@
             new OpenLayers.Control.Attribution(),
             new OpenLayers.Control.ZoomPanel()
         ],
-        layers: [new OpenLayers.Layer.OSM(), vector],
+        layers: [osm, vector],
         center: new OpenLayers.LonLat(0, 0),
         zoom: 1
     });
 
     // attempt to get position
-    if (window.navigator && navigator.geolocation) {
+/*    if (window.navigator && navigator.geolocation) {
         navigator.geolocation.getCurrentPosition(
             updatePosition,
             function failure(error) {
@@ -44,7 +45,7 @@
                 enableHighAccuracy: true
             }
         );
-    }
+    }*/
 
 };
 



More information about the Commits mailing list