Reputation: 3113
I am using the android mapview balloons open source
How can i tweak it so it will always show ALL the balloons on the overlay ? Update: What i want to achieve is having a list of overlays on the map, each containing the bubble on top of it, with the address of that overlay . I want ALL the icons (and their balloons) to be visible ALL THE TIME, regardless of a tap on a specific item . this way, the addresses are always visible and you don't have to tap on an item to see its address balloon .
Upvotes: 0
Views: 462
Reputation: 12487
I'm assuming you have a class that extends BalloonItemizedOverlay.
You can programatically call onTap( int indexOfOverlay ) to make the ballon pop up.
If you don't have any functionality associated with each of the ballons, you can override the onTap method to iterate over the list of overlay items and call onTap for each of them, to display all the ballons at once. You can then call this method when adding the BalloonItemizedOverlay to the map view overlays.
Upvotes: 2
Reputation: 989
try:
overlay.setShowDisclosure(true);
overlay.setSnapToCenter(true);
Upvotes: 0