You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first time i install my app the application is getting an onError "TIMEOUT" and don't try to fetch the position anymore.
The side effect is that Geolocation.currentLocation() will be null even after the user has authorized the location service, therefore making the location available through: navigator.geolocation.getCurrentPosition( my_callback )
The text was updated successfully, but these errors were encountered:
hems
changed the title
mdg:location
mdg:location ~ Geolocation.currentLocation() returns null even when location is available through browser navigator.geolocation.getCurrentPosition
Jun 3, 2015
Working with meteor react getting the same problem i.e null.
handleMapOptions() { Tracker.autorun(() => { var latLng = Geolocation.currentLocation(); var latLng1 = Geolocation.latLng(); // Initialize the map once we have the latLng. console.log(latLng); console.log(latLng1); });
if (GoogleMaps.loaded()) {
return {
center : new google.maps.LatLng(37.779161, -122.435228),
zoom : 12,
};
}
}
The first time i install my app the application is getting an onError "TIMEOUT" and don't try to fetch the position anymore.
The side effect is that
Geolocation.currentLocation()
will be null even after the user has authorized the location service, therefore making the location available through:navigator.geolocation.getCurrentPosition( my_callback )
related to: #62
The text was updated successfully, but these errors were encountered: