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:
@@ -72,6 +72,14 @@ OpenLayers.Layer.VirtualEarth = OpenLayers.Class(
|
|||||||
*/
|
*/
|
||||||
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
|
* Constructor: OpenLayers.Layer.VirtualEarth
|
||||||
*
|
*
|
||||||
@@ -117,6 +125,9 @@ OpenLayers.Layer.VirtualEarth = OpenLayers.Class(
|
|||||||
|
|
||||||
} catch (e) { }
|
} catch (e) { }
|
||||||
this.mapObject.HideDashboard();
|
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
|
//can we do smooth panning? this is an unpublished method, so we need
|
||||||
|
|||||||
Reference in New Issue
Block a user