use moveTo when dragPanMap object is not available. r=crschmidt (closes #3135)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11580 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -225,6 +225,8 @@ OpenLayers.Layer.EventPane = OpenLayers.Class(OpenLayers.Layer, {
|
|||||||
|
|
||||||
if (this.dragPanMapObject) {
|
if (this.dragPanMapObject) {
|
||||||
this.dragPanMapObject(dx, -dy);
|
this.dragPanMapObject(dx, -dy);
|
||||||
|
} else {
|
||||||
|
this.moveTo(this.map.getCachedCenter());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user