I would like to make the map auto-focus to the current location and I've obtained the location via Location Kit.
fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);
Now, I was trying to set the latitude and longitude of the camera in OnMapReady()
function, but how to retrieve them?
@Override
public void onMapReady(HuaweiMap huaweiMap) {
float zoom = 12.0f;
LatLng latLng = new LatLng(***mLat***, ***mLong***);
CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, zoom);
.
.
.
}
I really need your assistance!!