Resize transitions by default

This commit is contained in:
Tim Schaub
2013-02-14 15:18:07 -07:00
parent 891cd35f60
commit 0cf9833362
2 changed files with 8 additions and 4 deletions

View File

@@ -96,16 +96,16 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
* {String} The transition effect to use when the map is zoomed.
* Two posible values:
*
* null - No transition effect (the default).
* "resize" - Existing tiles are resized on zoom to provide a visual
* effect of the zoom having taken place immediately. As the
* new tiles become available, they are drawn over top of the
* resized tiles.
* resized tiles (this is the default setting).
* null - No transition effect.
*
* Using "resize" on non-opaque layers can cause undesired visual
* effects. This is therefore discouraged.
* effects. Set transitionEffect to null in this case.
*/
transitionEffect: null,
transitionEffect: "resize",
/**
* APIProperty: numLoadingTiles

View File

@@ -51,6 +51,10 @@ The `moveDelay` is the replacement for the `tileLoadingDelay` layer config optio
In general, when targeting mobile devices or when using slow servers or connections for tiled layers, it is recommended to configure the map with a TileManager.
## Layer.Grid: Resize transitions by default
The `transitionEffect` property for grid layers has been changed to "resize" by default. This allows smooth transitions with animated zooming (also enabled by default). If resize transitions are not wanted for individual layers, set `transitionEffect` to `null`.
## Control.DragPan: Kinetic by default
The `enableKinetic` property for the DragPan control has been changed to true by default. This will enable kinetic panning only if the `OpenLayers/Kinetic.js` file is included in your build.