When my map shows, it always start at a fixed location (near Africa).
Then, I use the following code to center the map to the location I want.
mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(loc.getLatitude(), loc.getLongitude()), 14.0f));
My question is that could I set a default location and zoom level before the map shows?
Because I don't want my users to see the animation at the beginning.
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…