Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

updated local ol method to correspond with new ol version

Benjamina04d052b41d6
diff --git a/web/js/ol.wv/ol.wv.lookupimagetile.js b/web/js/ol.wv/ol.wv.lookupimagetile.js
index cbfda0519..007249e9b 100644
--- a/web/js/ol.wv/ol.wv.lookupimagetile.js
+++ b/web/js/ol.wv/ol.wv.lookupimagetile.js
@@ -39,8 +39,8 @@ ol.wv.LookupImageTile.prototype.getImage = function(opt_context) {
ol.wv.LookupImageTile.prototype.load = function() {
- if ( this.state === ol.TileState.IDLE ) {
- this.state = ol.TileState.LOADING;
+ if ( this.state === ol.Tile.State.IDLE ) {
+ this.state = ol.Tile.State.LOADING;
var that = this;
this.image_.addEventListener("load", function() {
that.canvas_ = document.createElement("canvas");
@@ -68,7 +68,7 @@ ol.wv.LookupImageTile.prototype.load = function() {
}
}
g.putImageData(imageData, 0, 0);
- that.state = ol.TileState.LOADED;
+ that.state = ol.Tile.State.LOADED;
that.changed();
});
this.image_.src = this.src_;