I have a bunch of server data that my client turns into overlays. I don't want to load it all at once. When the user pans to a new location I want to start a process that loads the data for that new location. I cannot find a hook in the process that tells me when the map has been panned. I have found one method that does half the job, but it seem like the process should be more straight forward.
Right now I am extending MapView and overriding dispatchTouchEvent and watching for the event to be ACTION_UP. This captures the panning, but not the zooming. The zooming seems more tricky because there are already zoom controls with the map. My best guess is extend the zoom controls to MyZoomControls and add that as another zoom controller in MyMapView that I already extended.
This seems like overkill. That is why I wanted to know if there is a more unified way of handling when the map that is inside the MapView has finished animating. I tried overriding onAnimationEnd() from MapView but I think that is looking for an animation of the entire view and not the map inside. I was thinking I could implement AnimationListener on MyMapView but if that does work I don't know how to register MyMapView to listen for the internal map. What kind of object is the map inside the view??
Thanks for whatever help you can provide.