Add ol.BrowserFeature.DEVICE_PIXEL_RATIO constant
This commit is contained in:
@@ -11,6 +11,13 @@ ol.ASSUME_TOUCH = false;
|
|||||||
* @type {Object}
|
* @type {Object}
|
||||||
*/
|
*/
|
||||||
ol.BrowserFeature = {
|
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.
|
* True if browser supports touch events.
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
|||||||
Reference in New Issue
Block a user