Merge pull request #800 from ahocevar/transform
Use GPU where available; animated zooming. r=@elemoine
This commit is contained in:
@@ -650,7 +650,11 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
||||
if(!backBuffer) {
|
||||
return;
|
||||
}
|
||||
this.div.insertBefore(backBuffer, this.div.firstChild);
|
||||
if (resolution === this.gridResolution) {
|
||||
this.div.insertBefore(backBuffer, this.div.firstChild);
|
||||
} else {
|
||||
this.map.layerContainerDiv.insertBefore(backBuffer, this.map.baseLayer.div);
|
||||
}
|
||||
this.backBuffer = backBuffer;
|
||||
|
||||
// set some information in the instance for subsequent
|
||||
@@ -731,7 +735,9 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
||||
delete this._transitionElement;
|
||||
}
|
||||
if(this.backBuffer) {
|
||||
this.div.removeChild(this.backBuffer);
|
||||
if (this.backBuffer.parentNode) {
|
||||
this.backBuffer.parentNode.removeChild(this.backBuffer);
|
||||
}
|
||||
this.backBuffer = null;
|
||||
this.backBufferResolution = null;
|
||||
if(this.backBufferTimerId !== null) {
|
||||
|
||||
Reference in New Issue
Block a user