My Location And Marker Have Different Locations
Why does my location and marker have different locations? Before adding the marker I click on the floating button and when I click that, I call getLatitude and getLongitude from Lo
Solution 1:
The My location layer uses it's own location provider that is not the Fused Location Provider nor the Location Manager. From the documentation:
A GoogleMap object has a built-in location provider for its my-location layer, but it can be replaced with another one that implements this interface.
Also, the My location layer, the Fused Location provider and the Location Manager can get different locations (it depends on the provider, the GPS and network availability, ...).
You can replace the default location provider for the my-location layer using the GoogleMap.setLocationSource
method.
Post a Comment for "My Location And Marker Have Different Locations"