Charlie-Blake
Charlie-Blake

Reputation: 11050

Hiding balloons on tap on MapView

I have a MapView with 3 different ItemizedOverlays that act with a similar behavior. They all work alright, but they only respond to taps on the items, they do nothing if I tap the map. Setting a OnClickListener on the MapView has proven to be unresponsive. Is there any way of hiding the balloon when tapping outside of it without losing pinch to zoom?

Upvotes: 0

Views: 410

Answers (1)

Braj
Braj

Reputation: 2160

Try to remove balloons in onTouchEvent of ItemizedOverlay as touch events work for each. Hope it helps.

Upvotes: 1

Related Questions