Changelog
2.1.5 (2019-01-09)
locateByIP()
method would fail due to external service being shut down. Added a new (default) Geo-IP service provider to GeoJS with HTTPS
support.getIP()
method now uses XHR request instead of JSONP, since CORS is supported by the service.xhr
to true
when passing a new Geo-IP source to setGeoIPSource()
method.)timeout
option is changed to 6000
for .locate()
method.Changelog
2.1.3 (2018-04-02)
Changelog
2.1.1 (2017-03-11)
geolocator
to window
even if it's used via an import
or require
statement. i.e. this happens when used within babel/webpack bundled code or from within an electron app. See issues #42 and #48.Changelog
2.1.0 (2016-09-30)
Please read the [API documentation][api-docs].
.getStaticMap()
method. #34. Make sure you have enabled Google Static Maps API in Google Developers console.geolocator.config()
or corresponding methods such as .createMap()
or .getStaticMap()
.maximumWait:Number
and onProgress:Function
options for .locate()
method.Changelog
2.0.0 (2016-06-25)
Please read the [API documentation][api-docs].
.locate()
and .locateByIP()
methods.geolocator.location
property is dropped. You can always access the result, via the second argument of each async method's callback. See documented examples.setGeoIPSource()
method.Changelog
isPositionError()
.Error
or PositionError
(HTML5) is passed to error callbacks instead of String
error message. See updated documentation. Fixes issue #7. (This shouldn't be a breaking-change but do test your app if you decide to upgrade.)