do not return too early from onImageLoad
This commit is contained in:
@@ -349,11 +349,8 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile.BackBufferable, {
|
|||||||
// IE<7 needs a reflow when the tiles are loaded because of the
|
// IE<7 needs a reflow when the tiles are loaded because of the
|
||||||
// percentage based positioning. Otherwise nothing is shown
|
// percentage based positioning. Otherwise nothing is shown
|
||||||
// until the user interacts with the map in some way.
|
// until the user interacts with the map in some way.
|
||||||
if (parseFloat(navigator.appVersion.split("MSIE")[1]) < 7) {
|
if (parseFloat(navigator.appVersion.split("MSIE")[1]) < 7 &&
|
||||||
if (!this.layer || !this.layer.div) {
|
this.layer && this.layer.div) {
|
||||||
// nothing to do if the layer is destroyed already
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var span = document.createElement("span");
|
var span = document.createElement("span");
|
||||||
span.style.display = "none";
|
span.style.display = "none";
|
||||||
var layerDiv = this.layer.div;
|
var layerDiv = this.layer.div;
|
||||||
|
|||||||
Reference in New Issue
Block a user