Add ol.Geolocation.isSupported property
This commit is contained in:
@@ -77,6 +77,12 @@ ol.Geolocation.prototype.handleProjectionChanged_ = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {boolean} Is supported.
|
||||||
|
*/
|
||||||
|
ol.Geolocation.isSupported = 'geolocation' in navigator;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @param {GeolocationPosition} position position event.
|
* @param {GeolocationPosition} position position event.
|
||||||
|
|||||||
Reference in New Issue
Block a user