removeBackBufferDelay defaults to 0 for singleTile layers
This commit is contained in:
@@ -184,9 +184,10 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
* APIProperty: removeBackBufferDelay
|
* APIProperty: removeBackBufferDelay
|
||||||
* {Number} Delay for removing the backbuffer when all tiles have finished
|
* {Number} Delay for removing the backbuffer when all tiles have finished
|
||||||
* loading. Can be set to 0 when no css opacity transitions for the
|
* loading. Can be set to 0 when no css opacity transitions for the
|
||||||
* olTileImage class are used. Default is 2500.
|
* olTileImage class are used. Default is 0 for <singleTile> layers,
|
||||||
|
* 2500 for tiled layers.
|
||||||
*/
|
*/
|
||||||
removeBackBufferDelay: 2500,
|
removeBackBufferDelay: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: className
|
* Property: className
|
||||||
@@ -240,6 +241,10 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
arguments);
|
arguments);
|
||||||
this.grid = [];
|
this.grid = [];
|
||||||
this.tileQueue = [];
|
this.tileQueue = [];
|
||||||
|
|
||||||
|
if (this.removeBackBufferDelay === null) {
|
||||||
|
this.removeBackBufferDelay = this.singleTile ? 0 : 2500;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.className === null) {
|
if (this.className === null) {
|
||||||
this.className = this.singleTile ? 'olLayerGridSingleTile' :
|
this.className = this.singleTile ? 'olLayerGridSingleTile' :
|
||||||
|
|||||||
Reference in New Issue
Block a user