How to capture location from MapActivity

Considering...

  • Activities that extend from MapActivity
  • Uses ItemizedOverlay to show multiple balls on a map.
  • ZoomControls enabled

ItemizeOverlay implements onTap(...), which works great when you click one of the overlay items.

The question arises: how to identify the crane on another part of the map (in order to obtain the location and center at this point).

+1
source share
1 answer

"" ( , - onDraw), MapView onTap, MapController.setCenter.

MapView.getOverlays :

( ) ( , true). , , , View.postInvalidate(), .

+2

All Articles