Only clear canvas when necessary, add tests
This commit is contained in:
@@ -228,6 +228,9 @@ ol.renderer.canvas.TileLayer.prototype.prepareFrame = function(frameState, layer
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
} else {
|
||||
if (this.renderedExtent_ && !ol.extent.equals(imageExtent, this.renderedExtent_)) {
|
||||
context.clearRect(0, 0, width, height);
|
||||
}
|
||||
oversampling = this.oversampling_;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ ol.Tile = function(tileCoord, state, opt_options) {
|
||||
* @type {number}
|
||||
*/
|
||||
this.transition_ = options.transition === undefined ?
|
||||
250 : options.transition;
|
||||
275 : options.transition;
|
||||
|
||||
/**
|
||||
* Lookup of start times for rendering transitions. If the start time is
|
||||
|
||||
Reference in New Issue
Block a user