Zoom events that work in Mapview android

I need to redraw the overlay after scaling the user.
What is the best way to do this?
I tried everything I can think of (keeping state getZoomLevel (), overriding onUserInteraction ()), nothing really works.
The problem is that draw () is called when the user clicks the zoom button, so the information that my draw method (about the state of the map) gets is different from the state after mapview finishes scaling.
In addition, draw () is not called at the end of the zoom, so only if I pan the map does the overlay really draw correctly.

+7
android google-maps android-mapview zooming
source share
2 answers

As no one answered about this after 7 months, I will write what I finished doing.

I used the handler to update the map manually after 500 ms, it worked fine.

Handler handler; handler.postDelayed(refreshRoute, 500); 
+2
source share

Have you tried calling mapview.postInvalidate() after scaling?

0
source share

All Articles