Add ol.BrowserFeature.DEVICE_PIXEL_RATIO constant

This commit is contained in:
Frederic Junod
2013-11-20 12:36:35 +01:00
parent 5c2b5f3c11
commit 71d3fc4921

View File

@@ -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}