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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user