Skip to content Skip to sidebar Skip to footer

Retrieve Saved Latlong Value From Firebase And Show In Marker

I have previously asked the similar question where I had issue with saving the data in the firebase cloud. I managed to store the latitude & longitude data in the firebase data

Solution 1:

Please add this code after adding marker, so that the marker will move to the location which you added

try {
            CameraUpdate center = CameraUpdateFactory.newLatLng(new LatLng(lat, lng));
            CameraUpdate zoom = CameraUpdateFactory.zoomTo(12);
            googleMap.moveCamera(center);
            googleMap.animateCamera(zoom);
        } catch (Exception e) {
            Log.getStackTraceString(e);
        } 

Post a Comment for "Retrieve Saved Latlong Value From Firebase And Show In Marker"