Skip to content Skip to sidebar Skip to footer

Android Google Maps Not Loading The Map When Using GoogleMap.AnimateCamera()

Google Maps document According to Google maps document, in order to apply a CameraUpdate to the map, we can either move the camera instantly(by using GoogleMap.moveCamera(CameraUpd

Solution 1:

  1. Try to change .builder(mMap.cameraPosition)... to .builder()...
  2. Make sure you are calling this method after onMapReady callback

Solution 2:

this works for me

LatLng initialLocation = new LatLng(latitude, longitude);
gmap.animateCamera(CameraUpdateFactory.newLatLngZoom(initialLocation, 18.0f));

I use it to animate map to a particular location with LatLng, I have never tried tilt though


Post a Comment for "Android Google Maps Not Loading The Map When Using GoogleMap.AnimateCamera()"