Close balloon showed on MapView

Posted by Pich on Stack Overflow See other posts from Stack Overflow or by Pich
Published on 2010-12-08T18:11:03Z Indexed on 2011/01/13 12:53 UTC
Read the original article Hit count: 327

Filed under:
|
|

Hi,

I have a MapView with an ItemizedOverlay and a bunch of OverlayItem:s. When an OverlayItem is tapped on custom layout balloon is displayed on MapView. I can add a close button that hides the balloon layout. But how can I close the balloon if the user tap:s on the map outside the balloon? I have an OnTouchListener on the MapView, but how can I from this localize the open balloon layout and hide it?

/P

© Stack Overflow or respective owner

Related posts about android

Related posts about mapview