¡@

Home 

2014/10/16 ¤W¤È 08:13:07

android Programming Glossary: enhancedmapview

How to catch that map panning and zoom are really finished?

http://stackoverflow.com/questions/3567420/how-to-catch-that-map-panning-and-zoom-are-really-finished

android.view.MotionEvent import com.google.android.maps.GeoPoint import com.google.android.maps.MapView public class EnhancedMapView extends MapView public interface OnZoomChangeListener public void onZoomChange MapView view int newZoom int oldZoom public.. interface OnPanChangeListener public void onPanChange MapView view GeoPoint newCenter GeoPoint oldCenter private EnhancedMapView _this Set this variable to your preferred timeout private long events_timeout 500L private boolean is_touched false private.. int last_zoom private Timer zoom_event_delay_timer new Timer private Timer pan_event_delay_timer new Timer private EnhancedMapView.OnZoomChangeListener zoom_change_listener private EnhancedMapView.OnPanChangeListener pan_change_listener public EnhancedMapView..