diff --git a/src/ol/GeolocationProperty.js b/src/ol/GeolocationProperty.js index 087e7aa842..1ae8cf9a5b 100644 --- a/src/ol/GeolocationProperty.js +++ b/src/ol/GeolocationProperty.js @@ -1,10 +1,11 @@ /** * @module ol/GeolocationProperty */ + /** * @enum {string} */ -var _ol_GeolocationProperty_ = { +export default { ACCURACY: 'accuracy', ACCURACY_GEOMETRY: 'accuracyGeometry', ALTITUDE: 'altitude', @@ -16,5 +17,3 @@ var _ol_GeolocationProperty_ = { TRACKING: 'tracking', TRACKING_OPTIONS: 'trackingOptions' }; - -export default _ol_GeolocationProperty_; diff --git a/src/ol/ImageState.js b/src/ol/ImageState.js index 865680689a..0b6c1cbd20 100644 --- a/src/ol/ImageState.js +++ b/src/ol/ImageState.js @@ -1,14 +1,13 @@ /** * @module ol/ImageState */ + /** * @enum {number} */ -var _ol_ImageState_ = { +export default { IDLE: 0, LOADING: 1, LOADED: 2, ERROR: 3 }; - -export default _ol_ImageState_; diff --git a/src/ol/MapProperty.js b/src/ol/MapProperty.js index dabdb21b2a..fe940e027c 100644 --- a/src/ol/MapProperty.js +++ b/src/ol/MapProperty.js @@ -1,14 +1,13 @@ /** * @module ol/MapProperty */ + /** * @enum {string} */ -var _ol_MapProperty_ = { +export default { LAYERGROUP: 'layergroup', SIZE: 'size', TARGET: 'target', VIEW: 'view' }; - -export default _ol_MapProperty_; diff --git a/src/ol/OverlayPositioning.js b/src/ol/OverlayPositioning.js index f864614e20..b0584fe558 100644 --- a/src/ol/OverlayPositioning.js +++ b/src/ol/OverlayPositioning.js @@ -1,13 +1,14 @@ /** * @module ol/OverlayPositioning */ + /** * Overlay position: `'bottom-left'`, `'bottom-center'`, `'bottom-right'`, * `'center-left'`, `'center-center'`, `'center-right'`, `'top-left'`, * `'top-center'`, `'top-right'` * @enum {string} */ -var _ol_OverlayPositioning_ = { +export default { BOTTOM_LEFT: 'bottom-left', BOTTOM_CENTER: 'bottom-center', BOTTOM_RIGHT: 'bottom-right', @@ -18,5 +19,3 @@ var _ol_OverlayPositioning_ = { TOP_CENTER: 'top-center', TOP_RIGHT: 'top-right' }; - -export default _ol_OverlayPositioning_; diff --git a/src/ol/TileState.js b/src/ol/TileState.js index 5fc633f9f5..28eccf259f 100644 --- a/src/ol/TileState.js +++ b/src/ol/TileState.js @@ -1,10 +1,11 @@ /** * @module ol/TileState */ + /** * @enum {number} */ -var _ol_TileState_ = { +export default { IDLE: 0, LOADING: 1, LOADED: 2, @@ -12,5 +13,3 @@ var _ol_TileState_ = { EMPTY: 4, ABORT: 5 }; - -export default _ol_TileState_; diff --git a/src/ol/ViewHint.js b/src/ol/ViewHint.js index 44f30bbba6..92c75624c3 100644 --- a/src/ol/ViewHint.js +++ b/src/ol/ViewHint.js @@ -1,12 +1,11 @@ /** * @module ol/ViewHint */ + /** * @enum {number} */ -var _ol_ViewHint_ = { +export default { ANIMATING: 0, INTERACTING: 1 }; - -export default _ol_ViewHint_; diff --git a/src/ol/ViewProperty.js b/src/ol/ViewProperty.js index 5e14d02988..192863d084 100644 --- a/src/ol/ViewProperty.js +++ b/src/ol/ViewProperty.js @@ -1,13 +1,12 @@ /** * @module ol/ViewProperty */ + /** * @enum {string} */ -var _ol_ViewProperty_ = { +export default { CENTER: 'center', RESOLUTION: 'resolution', ROTATION: 'rotation' }; - -export default _ol_ViewProperty_; diff --git a/src/ol/events/KeyCode.js b/src/ol/events/KeyCode.js index 8c21fdd50c..e855570c82 100644 --- a/src/ol/events/KeyCode.js +++ b/src/ol/events/KeyCode.js @@ -1,6 +1,7 @@ /** * @module ol/events/KeyCode */ + /** * @enum {number} * @const diff --git a/src/ol/extent/Corner.js b/src/ol/extent/Corner.js index 0f98ebc79e..3336d03422 100644 --- a/src/ol/extent/Corner.js +++ b/src/ol/extent/Corner.js @@ -1,6 +1,7 @@ /** * @module ol/extent/Corner */ + /** * Extent corner. * @enum {string} diff --git a/src/ol/extent/Relationship.js b/src/ol/extent/Relationship.js index 6cad82a5ad..bc983e3953 100644 --- a/src/ol/extent/Relationship.js +++ b/src/ol/extent/Relationship.js @@ -1,6 +1,7 @@ /** * @module ol/extent/Relationship */ + /** * Relationship to an extent. * @enum {number} diff --git a/src/ol/format/IGCZ.js b/src/ol/format/IGCZ.js index 587cdef0fd..4cc557be82 100644 --- a/src/ol/format/IGCZ.js +++ b/src/ol/format/IGCZ.js @@ -1,14 +1,13 @@ /** * @module ol/format/IGCZ */ + /** * IGC altitude/z. One of 'barometric', 'gps', 'none'. * @enum {string} */ -var _ol_format_IGCZ_ = { +export default { BAROMETRIC: 'barometric', GPS: 'gps', NONE: 'none' }; - -export default _ol_format_IGCZ_; diff --git a/src/ol/geom/GeometryLayout.js b/src/ol/geom/GeometryLayout.js index 7fe50df068..25e5350612 100644 --- a/src/ol/geom/GeometryLayout.js +++ b/src/ol/geom/GeometryLayout.js @@ -1,17 +1,16 @@ /** * @module ol/geom/GeometryLayout */ + /** * The coordinate layout for geometries, indicating whether a 3rd or 4th z ('Z') * or measure ('M') coordinate is available. Supported values are `'XY'`, * `'XYZ'`, `'XYM'`, `'XYZM'`. * @enum {string} */ -var GeometryLayout = { +export default { XY: 'XY', XYZ: 'XYZ', XYM: 'XYM', XYZM: 'XYZM' }; - -export default GeometryLayout; diff --git a/src/ol/interaction/Property.js b/src/ol/interaction/Property.js index 864fcfa590..74a7ef91a7 100644 --- a/src/ol/interaction/Property.js +++ b/src/ol/interaction/Property.js @@ -1,11 +1,10 @@ /** * @module ol/interaction/Property */ + /** * @enum {string} */ -var _ol_interaction_Property_ = { +export default { ACTIVE: 'active' }; - -export default _ol_interaction_Property_; diff --git a/src/ol/layer/Property.js b/src/ol/layer/Property.js index 9714dd31a9..a8d8fe3ad2 100644 --- a/src/ol/layer/Property.js +++ b/src/ol/layer/Property.js @@ -1,10 +1,11 @@ /** * @module ol/layer/Property */ + /** * @enum {string} */ -var _ol_layer_Property_ = { +export default { OPACITY: 'opacity', VISIBLE: 'visible', EXTENT: 'extent', @@ -13,5 +14,3 @@ var _ol_layer_Property_ = { MIN_RESOLUTION: 'minResolution', SOURCE: 'source' }; - -export default _ol_layer_Property_; diff --git a/src/ol/layer/TileProperty.js b/src/ol/layer/TileProperty.js index 53390f7349..ab100a416b 100644 --- a/src/ol/layer/TileProperty.js +++ b/src/ol/layer/TileProperty.js @@ -1,12 +1,11 @@ /** * @module ol/layer/TileProperty */ + /** * @enum {string} */ -var _ol_layer_TileProperty_ = { +export default { PRELOAD: 'preload', USE_INTERIM_TILES_ON_ERROR: 'useInterimTilesOnError' }; - -export default _ol_layer_TileProperty_; diff --git a/src/ol/render/canvas/Instruction.js b/src/ol/render/canvas/Instruction.js index 43f6dfb8c0..70421bc1e2 100644 --- a/src/ol/render/canvas/Instruction.js +++ b/src/ol/render/canvas/Instruction.js @@ -1,10 +1,11 @@ /** * @module ol/render/canvas/Instruction */ + /** * @enum {number} */ -var _ol_render_canvas_Instruction_ = { +export default { BEGIN_GEOMETRY: 0, BEGIN_PATH: 1, CIRCLE: 2, @@ -19,5 +20,3 @@ var _ol_render_canvas_Instruction_ = { SET_STROKE_STYLE: 11, STROKE: 12 }; - -export default _ol_render_canvas_Instruction_; diff --git a/src/ol/source/State.js b/src/ol/source/State.js index ebf8dd5331..8f2947e914 100644 --- a/src/ol/source/State.js +++ b/src/ol/source/State.js @@ -1,15 +1,14 @@ /** * @module ol/source/State */ + /** * State of the source, one of 'undefined', 'loading', 'ready' or 'error'. * @enum {string} */ -var _ol_source_State_ = { +export default { UNDEFINED: 'undefined', LOADING: 'loading', READY: 'ready', ERROR: 'error' }; - -export default _ol_source_State_; diff --git a/src/ol/source/WMTSRequestEncoding.js b/src/ol/source/WMTSRequestEncoding.js index 8a5e95ba9b..3bc7451095 100644 --- a/src/ol/source/WMTSRequestEncoding.js +++ b/src/ol/source/WMTSRequestEncoding.js @@ -1,13 +1,12 @@ /** * @module ol/source/WMTSRequestEncoding */ + /** * Request encoding. One of 'KVP', 'REST'. * @enum {string} */ -var _ol_source_WMTSRequestEncoding_ = { +export default { KVP: 'KVP', // see spec §8 REST: 'REST' // see spec §10 }; - -export default _ol_source_WMTSRequestEncoding_; diff --git a/src/ol/style/IconAnchorUnits.js b/src/ol/style/IconAnchorUnits.js index 703c8771a9..eaa549d3ce 100644 --- a/src/ol/style/IconAnchorUnits.js +++ b/src/ol/style/IconAnchorUnits.js @@ -1,13 +1,12 @@ /** * @module ol/style/IconAnchorUnits */ + /** * Icon anchor units. One of 'fraction', 'pixels'. * @enum {string} */ -var _ol_style_IconAnchorUnits_ = { +export default { FRACTION: 'fraction', PIXELS: 'pixels' }; - -export default _ol_style_IconAnchorUnits_; diff --git a/src/ol/style/IconOrigin.js b/src/ol/style/IconOrigin.js index 1c473ba59c..d1bad0bdf7 100644 --- a/src/ol/style/IconOrigin.js +++ b/src/ol/style/IconOrigin.js @@ -1,15 +1,14 @@ /** * @module ol/style/IconOrigin */ + /** * Icon origin. One of 'bottom-left', 'bottom-right', 'top-left', 'top-right'. * @enum {string} */ -var _ol_style_IconOrigin_ = { +export default { BOTTOM_LEFT: 'bottom-left', BOTTOM_RIGHT: 'bottom-right', TOP_LEFT: 'top-left', TOP_RIGHT: 'top-right' }; - -export default _ol_style_IconOrigin_; diff --git a/src/ol/style/TextPlacement.js b/src/ol/style/TextPlacement.js index 636863f8e0..5c3cd77528 100644 --- a/src/ol/style/TextPlacement.js +++ b/src/ol/style/TextPlacement.js @@ -1,6 +1,7 @@ /** * @module ol/style/TextPlacement */ + /** * Text placement. One of `'point'`, `'line'`. Default is `'point'`. Note that * `'line'` requires the underlying geometry to be a {@link ol.geom.LineString}, @@ -8,9 +9,7 @@ * {@link ol.geom.MultiPolygon}. * @enum {string} */ -var _ol_style_TextPlacement_ = { +export default { POINT: 'point', LINE: 'line' }; - -export default _ol_style_TextPlacement_;