Merge remote-tracking branch 'openlayers/master' into vector-api
This commit is contained in:
@@ -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 && (
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -10,7 +10,7 @@ goog.require('ol.style.Style');
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Timeout duration.
|
||||
* @define {number} Animation duration.
|
||||
*/
|
||||
ol.interaction.DRAGZOOM_ANIMATION_DURATION = 200;
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_frameState) {
|
||||
goog.base(this, type, map, opt_frameState);
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {goog.events.BrowserEvent}
|
||||
*/
|
||||
this.browserEvent = browserEvent;
|
||||
|
||||
@@ -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.<ol.proj.Units, number>}
|
||||
* @const
|
||||
* @type {Object.<ol.proj.Units, number>}
|
||||
*/
|
||||
ol.METERS_PER_UNIT = {};
|
||||
ol.METERS_PER_UNIT[ol.proj.Units.DEGREES] =
|
||||
|
||||
@@ -113,7 +113,8 @@ goog.inherits(ol.source.Stamen, ol.source.XYZ);
|
||||
|
||||
|
||||
/**
|
||||
* @const {Array.<ol.Attribution>}
|
||||
* @const
|
||||
* @type {Array.<ol.Attribution>}
|
||||
*/
|
||||
ol.source.Stamen.ATTRIBUTIONS = [
|
||||
new ol.Attribution({
|
||||
|
||||
@@ -5,6 +5,7 @@ goog.require('ol.Sphere');
|
||||
|
||||
/**
|
||||
* The normal sphere.
|
||||
* @const {ol.Sphere}
|
||||
* @const
|
||||
* @type {ol.Sphere}
|
||||
*/
|
||||
ol.sphere.NORMAL = new ol.Sphere(6370997);
|
||||
|
||||
@@ -5,6 +5,7 @@ goog.require('ol.Sphere');
|
||||
|
||||
/**
|
||||
* A sphere with radius equal to the semi-major axis of the WGS84 ellipsoid.
|
||||
* @const {ol.Sphere}
|
||||
* @const
|
||||
* @type {ol.Sphere}
|
||||
*/
|
||||
ol.sphere.WGS84 = new ol.Sphere(6378137);
|
||||
|
||||
@@ -56,7 +56,8 @@ ol.structs.PriorityQueue = function(priorityFunction, keyFunction) {
|
||||
|
||||
|
||||
/**
|
||||
* @const {number}
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
ol.structs.PriorityQueue.DROP = Infinity;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user