I'm developing an Android app that is supposed to use Google Maps.
I used this code to track the change in zoom (from here link)
googleMap.setOnCameraMoveListener(new GoogleMap.OnCameraMoveListener() {
@Override
public void onCameraMove() {
CameraPosition cameraPosition = googleMap.getCameraPosition();
if(cameraPosition.zoom > 18.0) {
googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);
} else {
googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
}
}
});
But in this case, the satellite map reloads at the slightest camera shift.
How to load an area of a certain size so that the map does not load continuously?