diff --git a/src/ol/browserfeature.js b/src/ol/browserfeature.js index ab229e2cfa..b8b9614ea8 100644 --- a/src/ol/browserfeature.js +++ b/src/ol/browserfeature.js @@ -32,7 +32,8 @@ ol.ENABLE_WEBGL = true; /** * The ratio between physical pixels and device-independent pixels * (dips) on the device (`window.devicePixelRatio`). - * @const {number} + * @const + * @type {number} * @todo stability experimental */ ol.BrowserFeature.DEVICE_PIXEL_RATIO = goog.global.devicePixelRatio || 1; @@ -40,7 +41,8 @@ ol.BrowserFeature.DEVICE_PIXEL_RATIO = goog.global.devicePixelRatio || 1; /** * True if browser supports Canvas. - * @const {boolean} + * @const + * @type {boolean} * @todo stability experimental */ ol.BrowserFeature.HAS_CANVAS = ol.ENABLE_CANVAS && ( @@ -63,7 +65,8 @@ ol.BrowserFeature.HAS_CANVAS = ol.ENABLE_CANVAS && ( /** * Indicates if DeviceOrientation is supported in the user's browser. - * @const {boolean} + * @const + * @type {boolean} * @todo stability experimental */ ol.BrowserFeature.HAS_DEVICE_ORIENTATION = @@ -72,7 +75,8 @@ ol.BrowserFeature.HAS_DEVICE_ORIENTATION = /** * True if browser supports DOM. - * @const {boolean} + * @const + * @type {boolean} * @todo stability experimental */ ol.BrowserFeature.HAS_DOM = ol.ENABLE_DOM; @@ -80,7 +84,8 @@ ol.BrowserFeature.HAS_DOM = ol.ENABLE_DOM; /** * Is HTML5 geolocation supported in the current browser? - * @const {boolean} + * @const + * @type {boolean} * @todo stability experimental */ ol.BrowserFeature.HAS_GEOLOCATION = 'geolocation' in goog.global.navigator; @@ -88,7 +93,8 @@ ol.BrowserFeature.HAS_GEOLOCATION = 'geolocation' in goog.global.navigator; /** * True if browser supports touch events. - * @const {boolean} + * @const + * @type {boolean} * @todo stability experimental */ ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH || @@ -99,7 +105,8 @@ ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH || /** * True if browser supports WebGL. - * @const {boolean} + * @const + * @type {boolean} * @todo stability experimental */ ol.BrowserFeature.HAS_WEBGL = ol.ENABLE_WEBGL && ( diff --git a/src/ol/css.js b/src/ol/css.js index 5dbbddd11d..80eb7b523d 100644 --- a/src/ol/css.js +++ b/src/ol/css.js @@ -4,7 +4,8 @@ goog.provide('ol.css'); /** * The CSS class that we'll give the DOM elements to have them unselectable. * - * @const {string} + * @const + * @type {string} */ ol.css.CLASS_UNSELECTABLE = 'ol-unselectable'; @@ -12,6 +13,7 @@ ol.css.CLASS_UNSELECTABLE = 'ol-unselectable'; /** * The CSS class for unsupported feature. * - * @const {string} + * @const + * @type {string} */ ol.css.CLASS_UNSUPPORTED = 'ol-unsupported'; diff --git a/src/ol/interaction/dragzoominteraction.js b/src/ol/interaction/dragzoominteraction.js index 2cc9ed0e99..62c0727c63 100644 --- a/src/ol/interaction/dragzoominteraction.js +++ b/src/ol/interaction/dragzoominteraction.js @@ -20,7 +20,8 @@ ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS = 8; /** - * @const {number} + * @const + * @type {number} */ ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS_SQUARED = ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS * diff --git a/src/ol/proj/proj.js b/src/ol/proj/proj.js index c0c750a88f..c1ca1b1a68 100644 --- a/src/ol/proj/proj.js +++ b/src/ol/proj/proj.js @@ -19,7 +19,8 @@ ol.ENABLE_PROJ4JS = true; /** * Have Proj4js. - * @const {boolean} + * @const + * @type {boolean} */ ol.HAVE_PROJ4JS = ol.ENABLE_PROJ4JS && typeof Proj4js == 'object'; @@ -47,7 +48,8 @@ ol.proj.Units = { /** * Meters per unit lookup table. - * @const {Object.