Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move transitionEffect to Layer.Grid.prototype, and discourage the use…

… of transitionEffect:"resize" on non-opaque layers
  • Loading branch information...
commit 8c6466bf2ae55f741af4d467dd32af89a5d9d7c1 1 parent d252a61
@elemoine authored
Showing with 16 additions and 14 deletions.
  1. +0 −14 lib/OpenLayers/Layer.js
  2. +16 −0 lib/OpenLayers/Layer/Grid.js
View
14 lib/OpenLayers/Layer.js
@@ -321,20 +321,6 @@ OpenLayers.Layer = OpenLayers.Class({
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
* {Object} This object can be used to store additional information on a
* layer object.
View
16 lib/OpenLayers/Layer/Grid.js
@@ -92,6 +92,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?
*/
Please sign in to comment.
Something went wrong with that request. Please try again.