blankImageUrl is no longer needed for image tiles
This commit is contained in:
@@ -60,14 +60,6 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
*/
|
||||
asyncRequestId: null,
|
||||
|
||||
/**
|
||||
* Property: blankImageUrl
|
||||
* {String} Using a data scheme url is not supported by all browsers, but
|
||||
* we don't care because we either set it as css backgroundImage, or the
|
||||
* image's display style is set to "none" when we use it.
|
||||
*/
|
||||
blankImageUrl: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAQAIBRAA7",
|
||||
|
||||
/**
|
||||
* APIProperty: maxGetUrlLength
|
||||
* {Number} If set, requests that would result in GET urls with more
|
||||
@@ -297,11 +289,9 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
if (this.url && img.getAttribute("src") == this.url) {
|
||||
this.onImageLoad();
|
||||
} else {
|
||||
if (img.getAttribute("src") !== this.blankImageUrl) {
|
||||
OpenLayers.Event.stopObservingElement(img);
|
||||
if (this.crossOriginKeyword) {
|
||||
img.removeAttribute("crossorigin");
|
||||
}
|
||||
OpenLayers.Event.stopObservingElement(img);
|
||||
if (this.crossOriginKeyword) {
|
||||
img.removeAttribute("crossorigin");
|
||||
}
|
||||
OpenLayers.Event.observe(img, "load",
|
||||
OpenLayers.Function.bind(this.onImageLoad, this)
|
||||
|
||||
Reference in New Issue
Block a user