1
I use this code to retrieve Lat and lang from a user in firebase, My doubt is how to give an automatic (animated) zoom in the marker...
mDatabase.child(mPost_key).addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
Location childLocation = dataSnapshot.getValue(Location.class);
LatLng childPos = new LatLng(childLocation.getLat(),childLocation.getLang());
MarkerOptions markerOptions =new MarkerOptions().position(childPos);
Marker marker = mMap.addMarker(markerOptions);
userMarkers.put(dataSnapshot.getKey(),marker);
}