move transitionEffect to Layer.Grid.prototype, and discourage the use of transitionEffect:"resize" on non-opaque layers

This commit is contained in:
Éric Lemoine
2012-03-31 21:32:49 +02:00
parent d252a6156a
commit 8c6466bf2a
2 changed files with 16 additions and 14 deletions

View File

@@ -91,6 +91,22 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
*/
buffer: 0,
/**
* APIProperty: transitionEffect
* {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.
*
* Using "resize" on non-opaque layers can cause undesired visual
* effects. This is therefore discouraged.
*/
transitionEffect: null,
/**
* APIProperty: numLoadingTiles
* {Integer} How many tiles are still loading?