Rename _ol_source_ImageStatic_ to Static

This commit is contained in:
Tim Schaub
2018-01-08 15:44:04 -07:00
parent c5d10f2001
commit 312820ed4c
8 changed files with 24 additions and 24 deletions
+5 -5
View File
@@ -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;