Skip to content

Commit

Permalink
Merge pull request openlayers#2247 from pagameba/source-state
Browse files Browse the repository at this point in the history
Use string values for ol.source.State enum
  • Loading branch information
pagameba committed Jun 26, 2014
2 parents d2e4603 + bf9dbd6 commit 33948a7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ol/source/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ goog.require('ol.proj');


/**
* State of the source. `0` means 'loading', `1` means 'ready', and `2` means
* 'error'.
* @enum {number}
* State of the source, one of 'loading', 'ready' or 'error'.
* @enum {string}
* @todo api
*/
ol.source.State = {
LOADING: 0,
READY: 1,
ERROR: 2
LOADING: 'loading',
READY: 'ready',
ERROR: 'error'
};


Expand Down

0 comments on commit 33948a7

Please sign in to comment.