added option to turn of animation. r=crschmidt,tschaub (closes #2286)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9696 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2009-10-01 19:47:31 +00:00
parent 8c3562e3ad
commit 449ea29086

View File

@@ -70,7 +70,15 @@ OpenLayers.Layer.VirtualEarth = OpenLayers.Class(
* projection, which allows support for vector drawing, overlaying
* other maps, etc.
*/
sphericalMercator: false,
sphericalMercator: false,
/**
* APIProperty: animationEnabled
* {Boolean} If set to true, the transition between zoom levels will be
* animated. Set to false to match the zooming experience of other
* layer types. Default is true.
*/
animationEnabled: true,
/**
* Constructor: OpenLayers.Layer.VirtualEarth
@@ -117,6 +125,9 @@ OpenLayers.Layer.VirtualEarth = OpenLayers.Class(
} catch (e) { }
this.mapObject.HideDashboard();
if(typeof this.mapObject.SetAnimationEnabled == "function") {
this.mapObject.SetAnimationEnabled(this.animationEnabled);
}
}
//can we do smooth panning? this is an unpublished method, so we need