I want to take a picture when moveCamera is finished.
I used the onCamerachange () and onMapLoaded () functions for the Googlemap object,
But this time of the callback handler does not fit my intention.
I want to move the camera to what I want, and when the map download is finished, you want to take a screenshot.
Who do you guys know how I can do this?
Thanks.
==================================================== ==
+ MYSOLUTION
Actually, I want to implement a breakdown callback () function, which is supported in google API javascript. But, as a result, there is no function that would fully fulfill this function.
The OnMapLoaded () callback function is run only once when the map is loaded first.
OnCameraChanged() OnCancallableCallback .
,
...
mMap.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 10), this);
...
@Override
public void onFinish() {
mapFragment.getMapAsync(this);
}
..
@Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
mMap.setOnMapLoadedCallback(this);
}
, , onMapLoaded() .
.