[OpenLayers-Commits] r11603 - sandbox/crschmidt/ovi-mobile/lib/OpenLayers/Layer

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Tue Mar 1 14:37:04 EST 2011


Author: crschmidt
Date: 2011-03-01 11:37:03 -0800 (Tue, 01 Mar 2011)
New Revision: 11603

Modified:
   sandbox/crschmidt/ovi-mobile/lib/OpenLayers/Layer/EventPane.js
Log:
PUlling in eventpane fix from trnk


Modified: sandbox/crschmidt/ovi-mobile/lib/OpenLayers/Layer/EventPane.js
===================================================================
--- sandbox/crschmidt/ovi-mobile/lib/OpenLayers/Layer/EventPane.js	2011-03-01 15:43:16 UTC (rev 11602)
+++ sandbox/crschmidt/ovi-mobile/lib/OpenLayers/Layer/EventPane.js	2011-03-01 19:37:03 UTC (rev 11603)
@@ -225,7 +225,9 @@
         
         if (this.dragPanMapObject) {
             this.dragPanMapObject(dx, -dy);
-        }
+        } else {
+            this.moveTo(); 
+        }    
     },
 
     /**
@@ -239,7 +241,7 @@
      */
     moveTo:function(bounds, zoomChanged, dragging) {
         OpenLayers.Layer.prototype.moveTo.apply(this, arguments);
-
+        
         if (this.mapObject != null) {
 
             var newCenter = this.map.getCenter();
@@ -252,7 +254,6 @@
 
                 var moOldZoom = this.getMapObjectZoom();
                 var oldZoom= this.getOLZoomFromMapObjectZoom(moOldZoom);
-
                 if ( !(newCenter.equals(oldCenter)) || 
                      !(newZoom == oldZoom) ) {
 



More information about the Commits mailing list