Export ol.Geolocation.SUPPORTED and provide ol.Geolocation
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
@exportClass ol.Geolocation ol.GeolocationOptions
|
@exportClass ol.Geolocation ol.GeolocationOptions
|
||||||
@exportSymbol ol.Geolocation.SUPPORTED
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// FIXME handle geolocation not supported
|
// FIXME handle geolocation not supported
|
||||||
|
|
||||||
goog.provide('ol.Geolocation');
|
goog.provide('ol.Geolocation');
|
||||||
goog.provide('ol.Geolocation.SUPPORTED');
|
|
||||||
goog.provide('ol.GeolocationProperty');
|
goog.provide('ol.GeolocationProperty');
|
||||||
|
|
||||||
goog.require('goog.events');
|
goog.require('goog.events');
|
||||||
@@ -144,6 +143,10 @@ ol.Geolocation.prototype.handleTrackingChanged_ = function() {
|
|||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
*/
|
*/
|
||||||
ol.Geolocation.SUPPORTED = 'geolocation' in goog.global.navigator;
|
ol.Geolocation.SUPPORTED = 'geolocation' in goog.global.navigator;
|
||||||
|
goog.exportProperty(
|
||||||
|
ol.Geolocation,
|
||||||
|
'SUPPORTED',
|
||||||
|
ol.Geolocation.SUPPORTED);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user