Add ol.BrowserFeature.HAS_DEVICE_ORIENTATION

This commit is contained in:
Éric Lemoine
2013-12-18 08:20:52 +01:00
parent 79718151b7
commit 62e8803287
4 changed files with 13 additions and 11 deletions
+10
View File
@@ -21,6 +21,16 @@ ol.ASSUME_TOUCH = false;
ol.BrowserFeature.DEVICE_PIXEL_RATIO = goog.global.devicePixelRatio || 1;
/**
* Indicates if DeviceOrientation is supported in the user's browser.
* @const
* @type {boolean}
* @todo stability experimental
*/
ol.BrowserFeature.HAS_DEVICE_ORIENTATION =
'DeviceOrientationEvent' in goog.global;
/**
* True if browser supports touch events.
* @const