Change ol.ImageState to ol.Image.State
This commit is contained in:
@@ -1,29 +1,17 @@
|
||||
goog.provide('ol.ImageBase');
|
||||
goog.provide('ol.ImageState');
|
||||
|
||||
goog.require('ol');
|
||||
goog.require('ol.events.EventTarget');
|
||||
goog.require('ol.events.EventType');
|
||||
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
ol.ImageState = {
|
||||
IDLE: 0,
|
||||
LOADING: 1,
|
||||
LOADED: 2,
|
||||
ERROR: 3
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.events.EventTarget}
|
||||
* @param {ol.Extent} extent Extent.
|
||||
* @param {number|undefined} resolution Resolution.
|
||||
* @param {number} pixelRatio Pixel ratio.
|
||||
* @param {ol.ImageState} state State.
|
||||
* @param {ol.Image.State} state State.
|
||||
* @param {Array.<ol.Attribution>} attributions Attributions.
|
||||
*/
|
||||
ol.ImageBase = function(extent, resolution, pixelRatio, state, attributions) {
|
||||
@@ -56,7 +44,7 @@ ol.ImageBase = function(extent, resolution, pixelRatio, state, attributions) {
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @type {ol.ImageState}
|
||||
* @type {ol.Image.State}
|
||||
*/
|
||||
this.state = state;
|
||||
|
||||
@@ -114,7 +102,7 @@ ol.ImageBase.prototype.getResolution = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @return {ol.ImageState} State.
|
||||
* @return {ol.Image.State} State.
|
||||
*/
|
||||
ol.ImageBase.prototype.getState = function() {
|
||||
return this.state;
|
||||
|
||||
Reference in New Issue
Block a user