Fixing typo which causes CacheRead to fail when CacheWrite is active

This commit is contained in:
ahocevar
2012-03-21 19:33:41 +01:00
parent 97582d637f
commit 8d42f33a28
2 changed files with 13 additions and 3 deletions

View File

@@ -119,7 +119,7 @@ OpenLayers.Control.CacheRead = OpenLayers.Class(OpenLayers.Control, {
url.indexOf(OpenLayers.ProxyHost) === 0) {
url = OpenLayers.Control.CacheWrite.urlMap[url];
}
var dataURI = window.localStorage.getItem("olCache_" + tile.url);
var dataURI = window.localStorage.getItem("olCache_" + url);
if (dataURI) {
tile.url = dataURI;
if (evt.type === "tileerror") {