Add ol.BrowserFeature.HAS_GEOLOCATION

This commit is contained in:
Éric Lemoine
2013-12-18 08:22:35 +01:00
parent 62e8803287
commit b6ec5838f7
4 changed files with 12 additions and 11 deletions

View File

@@ -31,6 +31,15 @@ ol.BrowserFeature.HAS_DEVICE_ORIENTATION =
'DeviceOrientationEvent' in goog.global;
/**
* Is HTML5 geolocation supported in the current browser?
* @const
* @type {boolean}
* @todo stability experimental
*/
ol.BrowserFeature.HAS_GEOLOCATION = 'geolocation' in goog.global.navigator;
/**
* True if browser supports touch events.
* @const