move transitionEffect to Layer.Grid.prototype, and discourage the use of transitionEffect:"resize" on non-opaque layers
This commit is contained in:
@@ -320,20 +320,6 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
*/
|
*/
|
||||||
wrapDateLine: false,
|
wrapDateLine: false,
|
||||||
|
|
||||||
/**
|
|
||||||
* APIProperty: transitionEffect
|
|
||||||
* {String} The transition effect to use when the map is panned or
|
|
||||||
* zoomed.
|
|
||||||
*
|
|
||||||
* There are currently two supported 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.
|
|
||||||
*/
|
|
||||||
transitionEffect: null,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: metadata
|
* Property: metadata
|
||||||
* {Object} This object can be used to store additional information on a
|
* {Object} This object can be used to store additional information on a
|
||||||
|
|||||||
@@ -91,6 +91,22 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
*/
|
*/
|
||||||
buffer: 0,
|
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
|
* APIProperty: numLoadingTiles
|
||||||
* {Integer} How many tiles are still loading?
|
* {Integer} How many tiles are still loading?
|
||||||
|
|||||||
Reference in New Issue
Block a user