goog.require creates a namespace object already
This commit is contained in:
+18
-18
@@ -8,22 +8,22 @@ ol.ASSUME_TOUCH = false;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Object}
|
* The ratio between physical pixels and device-independent pixels
|
||||||
*/
|
* (dips) on the device (`window.devicePixelRatio`).
|
||||||
ol.BrowserFeature = {
|
* @const
|
||||||
/**
|
* @type {number}
|
||||||
* The ratio between physical pixels and device-independent pixels
|
* @todo stability experimental
|
||||||
* (dips) on the device (`window.devicePixelRatio`).
|
*/
|
||||||
* @type {number}
|
ol.BrowserFeature.DEVICE_PIXEL_RATIO = goog.global.devicePixelRatio || 1;
|
||||||
*/
|
|
||||||
DEVICE_PIXEL_RATIO: goog.global.devicePixelRatio || 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* True if browser supports touch events.
|
/**
|
||||||
* @type {boolean}
|
* True if browser supports touch events.
|
||||||
*/
|
* @const
|
||||||
HAS_TOUCH: ol.ASSUME_TOUCH ||
|
* @type {boolean}
|
||||||
(goog.global.document &&
|
* @todo stability experimental
|
||||||
'ontouchstart' in goog.global.document.documentElement) ||
|
*/
|
||||||
!!(goog.global.navigator.msPointerEnabled)
|
ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH ||
|
||||||
};
|
(goog.global.document &&
|
||||||
|
'ontouchstart' in goog.global.document.documentElement) ||
|
||||||
|
!!(goog.global.navigator.msPointerEnabled);
|
||||||
|
|||||||
Reference in New Issue
Block a user