Removing no longer needed code.
Thanks @elemoine for catching the IE6 reflow in Tile/Image.js.
This commit is contained in:
@@ -651,17 +651,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
this.map.getZoomForResolution(resolution) + (this.zoomOffset || 0);
|
this.map.getZoomForResolution(resolution) + (this.zoomOffset || 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Method: getResolutionScale
|
|
||||||
* Return the value by which the layer is currently scaled.
|
|
||||||
*
|
|
||||||
* Returns:
|
|
||||||
* {Number} The resolution scale.
|
|
||||||
*/
|
|
||||||
getResolutionScale: function() {
|
|
||||||
return parseInt(this.div.style.width, 10) / 100;
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: applyBackBuffer
|
* Method: applyBackBuffer
|
||||||
* Create, insert, scale and position a back buffer for the layer.
|
* Create, insert, scale and position a back buffer for the layer.
|
||||||
|
|||||||
@@ -416,20 +416,6 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
this.canvasContext = null;
|
this.canvasContext = null;
|
||||||
this.events.triggerEvent("loadend");
|
this.events.triggerEvent("loadend");
|
||||||
|
|
||||||
// IE<7 needs a reflow when the tiles are loaded because of the
|
|
||||||
// percentage based positioning. Otherwise nothing is shown
|
|
||||||
// until the user interacts with the map in some way.
|
|
||||||
if (parseFloat(navigator.appVersion.split("MSIE")[1]) < 7 &&
|
|
||||||
this.layer && this.layer.div) {
|
|
||||||
var span = document.createElement("span");
|
|
||||||
span.style.display = "none";
|
|
||||||
var layerDiv = this.layer.div;
|
|
||||||
layerDiv.appendChild(span);
|
|
||||||
window.setTimeout(function() {
|
|
||||||
span.parentNode === layerDiv && span.parentNode.removeChild(span);
|
|
||||||
}, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.layerAlphaHack === true) {
|
if (this.layerAlphaHack === true) {
|
||||||
img.style.filter =
|
img.style.filter =
|
||||||
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
|
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
|
||||||
|
|||||||
Reference in New Issue
Block a user