I have overlays items for markers and an overlay for a drawing. I really don't like the idea of drawing just for drawing and using cpu cylces in vain, so I need to know how we can assure that the MapView has finishing his zoom to get the properly projection of it.
What I mean? Well, If you implement an Overlay, you will see that if you zoom the MapView the API function getZoomLevel() will return the NEW zoom level but the draw isn't finished by the MapView.
To be clear, here is an example of what I want to accomplish:
The problem is that when you zoom, the old path will be shown and I want to get then a new path with the new projection. I have tried using an oldZoom and currentZoom, but as zoom you set the zoom to the controller, you will get the new zoom level but the projection will be the old.
It seems that google guys missed here that, because MapView calls the draw method on every overlay, including an itemized overlay. At least I tried that and when I draw the new path with the new zoom level, the path is drawn in the same place (I assume is because the projection is the old one). Then, I zoom again, and the new path is drawn on the place that should be drawn before.
Any hints, ideas or something to accomplish this? I need to know WHEN the MapView really has his projection ready for the current ZoomLevel.