Tests, example change, and Util addition, plus usage in Tile/Image to allow

use of relative URLs, urls with port 80 in them, etc. patch originally from
tschaub, revised by euzuro, reviewed by me. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2093 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-12-22 19:03:32 +00:00
parent 88ac5a803c
commit 01cf10f53d
4 changed files with 176 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ OpenLayers.Tile.Image.prototype =
// from the map, in which case this check is not needed.
if (this.layer) {
var loaded = this.layer.alpha ? this.imgDiv.firstChild.src : this.imgDiv.src;
if (loaded != this.url) {
if (!OpenLayers.Util.isEquivalentUrl(loaded, this.url)) {
this.imgDiv.style.display = "none";
}
}