Fixing typo which causes CacheRead to fail when CacheWrite is active
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user