Add ol.BrowserFeature.DEVICE_PIXEL_RATIO constant
This commit is contained in:
1 parent
5c2b5f3c11
commit
71d3fc4921
1 file changed
+7
@@ -11,6 +11,13 @@ ol.ASSUME_TOUCH = false;
|
||||
* @type {Object}
|
||||
*/
|
||||
ol.BrowserFeature = {
|
||||
/**
|
||||
* The ratio between physical pixels and device-independent pixels
|
||||
* (dips) on the device (`window.devicePixelRatio`).
|
||||
* @type {number}
|
||||
*/
|
||||
DEVICE_PIXEL_RATIO: goog.global.devicePixelRatio || 1,
|
||||
|
||||
/**
|
||||
* True if browser supports touch events.
|
||||
* @type {boolean}
|
||||
|
||||
Reference in new issue
Block a user