Use ol.inherits instead of goog.inherits
This commit is contained in:
@@ -118,7 +118,7 @@ ol.source.Zoomify = function(opt_options) {
|
||||
}
|
||||
}
|
||||
|
||||
goog.base(this, {
|
||||
ol.source.TileImage.call(this, {
|
||||
attributions: options.attributions,
|
||||
cacheSize: options.cacheSize,
|
||||
crossOrigin: options.crossOrigin,
|
||||
@@ -130,7 +130,7 @@ ol.source.Zoomify = function(opt_options) {
|
||||
});
|
||||
|
||||
};
|
||||
goog.inherits(ol.source.Zoomify, ol.source.TileImage);
|
||||
ol.inherits(ol.source.Zoomify, ol.source.TileImage);
|
||||
|
||||
|
||||
/**
|
||||
@@ -146,7 +146,7 @@ goog.inherits(ol.source.Zoomify, ol.source.TileImage);
|
||||
ol.source.ZoomifyTile_ = function(
|
||||
tileCoord, state, src, crossOrigin, tileLoadFunction) {
|
||||
|
||||
goog.base(this, tileCoord, state, src, crossOrigin, tileLoadFunction);
|
||||
ol.ImageTile.call(this, tileCoord, state, src, crossOrigin, tileLoadFunction);
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -156,7 +156,7 @@ ol.source.ZoomifyTile_ = function(
|
||||
this.zoomifyImageByContext_ = {};
|
||||
|
||||
};
|
||||
goog.inherits(ol.source.ZoomifyTile_, ol.ImageTile);
|
||||
ol.inherits(ol.source.ZoomifyTile_, ol.ImageTile);
|
||||
|
||||
|
||||
/**
|
||||
@@ -169,7 +169,7 @@ ol.source.ZoomifyTile_.prototype.getImage = function(opt_context) {
|
||||
if (key in this.zoomifyImageByContext_) {
|
||||
return this.zoomifyImageByContext_[key];
|
||||
} else {
|
||||
var image = goog.base(this, 'getImage', opt_context);
|
||||
var image = ol.ImageTile.prototype.getImage.call(this, opt_context);
|
||||
if (this.state == ol.TileState.LOADED) {
|
||||
if (image.width == tileSize && image.height == tileSize) {
|
||||
this.zoomifyImageByContext_[key] = image;
|
||||
|
||||
Reference in New Issue
Block a user