Rename _ol_source_ImageStatic_ to Static
This commit is contained in:
@@ -20,7 +20,7 @@ import ImageSource from '../source/Image.js';
|
||||
* @param {olx.source.ImageStaticOptions} options Options.
|
||||
* @api
|
||||
*/
|
||||
var _ol_source_ImageStatic_ = function(options) {
|
||||
var Static = function(options) {
|
||||
var imageExtent = options.imageExtent;
|
||||
|
||||
var crossOrigin = options.crossOrigin !== undefined ?
|
||||
@@ -52,13 +52,13 @@ var _ol_source_ImageStatic_ = function(options) {
|
||||
|
||||
};
|
||||
|
||||
inherits(_ol_source_ImageStatic_, ImageSource);
|
||||
inherits(Static, ImageSource);
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_source_ImageStatic_.prototype.getImageInternal = function(extent, resolution, pixelRatio, projection) {
|
||||
Static.prototype.getImageInternal = function(extent, resolution, pixelRatio, projection) {
|
||||
if (intersects(extent, this.image_.getExtent())) {
|
||||
return this.image_;
|
||||
}
|
||||
@@ -69,7 +69,7 @@ _ol_source_ImageStatic_.prototype.getImageInternal = function(extent, resolution
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_source_ImageStatic_.prototype.handleImageChange = function(evt) {
|
||||
Static.prototype.handleImageChange = function(evt) {
|
||||
if (this.image_.getState() == ImageState.LOADED) {
|
||||
var imageExtent = this.image_.getExtent();
|
||||
var image = this.image_.getImage();
|
||||
@@ -93,4 +93,4 @@ _ol_source_ImageStatic_.prototype.handleImageChange = function(evt) {
|
||||
}
|
||||
ImageSource.prototype.handleImageChange.call(this, evt);
|
||||
};
|
||||
export default _ol_source_ImageStatic_;
|
||||
export default Static;
|
||||
|
||||
Reference in New Issue
Block a user