Add ol.Geolocation.isSupported property

This commit is contained in:
Frederic Junod
2013-02-07 15:59:12 +01:00
parent 753b37ad47
commit 44a5eca437

View File

@@ -77,6 +77,12 @@ ol.Geolocation.prototype.handleProjectionChanged_ = function() {
};
/**
* @type {boolean} Is supported.
*/
ol.Geolocation.isSupported = 'geolocation' in navigator;
/**
* @private
* @param {GeolocationPosition} position position event.