Listeners (Listener) for changes to Google Maps v2 Android Camera Zoom?

0

I'm using the CameraPosition () to get the Camera Zoom in Google Maps

mMap.getCameraPosition().zoom

It works perfectly when calling from somewhere in the code, but I would like to create a Listener to change the Camera Zoom either by gestures or by clicking the Zoom [+] and [-] button, and get the new Zoom value every time it is changed by the user, I found this beautiful example , but GoogleMap.OnCameraChangeListener example is obsolete according to your documentation

The documentation I cited tells me which new methods I should use, but no practical examples, it seems that GoogleMap.OnCameraChangeListener has been broken up into GoogleMap.OnCameraMoveStartedListener , GoogleMap.OnCameraMoveListener and GoogleMap.OnCameraIdleListener , since I've never worked with Google Maps event listeners, it was very confusing for me to use them only with this documentation information.

Does anyone have a simple and practical example using the new Methods to listen to the changes of the Camera (Zoom)?

It can be more of a Listener since by gestures I believe it will be one and by the buttons it will be another ...

    
asked by anonymous 03.02.2018 / 04:29

0 answers