Blurred or blank google map on camera animation
I am developing an Android application and I am tracking user movement. I want to animate the camera when the user moves (on every onLocationChange call). First, I did it like this and it worked fine:
map.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(location
.getLatitude(), location.getLongitude())));
Here is a screenshot of the screen when using this snippet:
But as you can see, this is not an animation, so I wrote this:
CameraPosition cameraPosition = new CameraPosition.Builder()
.zoom(zoom)
.target(new LatLng(location.getLatitude(), location
.getLongitude())).build();
map.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));
But it doesn't work fine, the map moves with animation, but the streets are blurry and the street names are not visible (look at the screenshot):
I've also tried non-zoom animation - same result. The map becomes clear only after pressing the zoom buttons, however some points and routes are still blurry. So, any ideas how to solve this? Thanks in advance!
+3
source to share
No one has answered this question yet
Check out similar questions: