Rename _ol_source_Image_ to ImageSource
This commit is contained in:
@@ -9,7 +9,7 @@ import _ol_events_ from '../events.js';
|
||||
import EventType from '../events/EventType.js';
|
||||
import {intersects, getHeight, getWidth} from '../extent.js';
|
||||
import {get as getProjection} from '../proj.js';
|
||||
import _ol_source_Image_ from '../source/Image.js';
|
||||
import ImageSource from '../source/Image.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
@@ -28,9 +28,9 @@ var _ol_source_ImageStatic_ = function(options) {
|
||||
|
||||
var /** @type {ol.ImageLoadFunctionType} */ imageLoadFunction =
|
||||
options.imageLoadFunction !== undefined ?
|
||||
options.imageLoadFunction : _ol_source_Image_.defaultImageLoadFunction;
|
||||
options.imageLoadFunction : ImageSource.defaultImageLoadFunction;
|
||||
|
||||
_ol_source_Image_.call(this, {
|
||||
ImageSource.call(this, {
|
||||
attributions: options.attributions,
|
||||
projection: getProjection(options.projection)
|
||||
});
|
||||
@@ -52,7 +52,7 @@ var _ol_source_ImageStatic_ = function(options) {
|
||||
|
||||
};
|
||||
|
||||
inherits(_ol_source_ImageStatic_, _ol_source_Image_);
|
||||
inherits(_ol_source_ImageStatic_, ImageSource);
|
||||
|
||||
|
||||
/**
|
||||
@@ -91,6 +91,6 @@ _ol_source_ImageStatic_.prototype.handleImageChange = function(evt) {
|
||||
this.image_.setImage(canvas);
|
||||
}
|
||||
}
|
||||
_ol_source_Image_.prototype.handleImageChange.call(this, evt);
|
||||
ImageSource.prototype.handleImageChange.call(this, evt);
|
||||
};
|
||||
export default _ol_source_ImageStatic_;
|
||||
|
||||
Reference in New Issue
Block a user