Always set the tile url.

This avoids false positives in the url check in CacheWrite::cache when the CacheRead control is also active.
This commit is contained in:
ahocevar
2012-03-09 19:07:54 +01:00
parent 5f48e546bc
commit 3d8a9168f0

View File

@@ -113,10 +113,9 @@ OpenLayers.Control.CacheRead = OpenLayers.Class(OpenLayers.Control, {
var tile = evt.tile,
dataURI = window.localStorage.getItem("olCache_" + tile.url);
if (dataURI) {
tile.url = dataURI;
if (evt.type === "tileerror") {
tile.setImgSrc(dataURI);
} else {
tile.url = dataURI;
}
}
}