aviroez / osmbonuspack

Automatically exported from code.google.com/p/osmbonuspack
0 stars 0 forks source link

bubble stay visible after clearing the map #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.show bubble
2.clear map( mapView.getOverlays().clear();  )
3.the markers disappear but the open bubble stay visible without its marker

What is the expected output? What do you see instead?
if you clear the map the marker and the bubble should dispear

What version of the products are you using (Android SDK, osmdroid,
OSMBonusPack)?
osmdroid 4.1  , OSMBonusPack 4.2.8

Please provide any additional information below.

Original issue reported on code.google.com by lamou...@gmail.com on 6 Jun 2014 at 12:27

Attachments:

GoogleCodeExporter commented 9 years ago
Unfortunately, there is no way to close bubbles as part of 
mapView.getOverlays().clear(). 

Simple workaround: 
Everytime you call: mapView.getOverlays().clear();
also call: InfoWindow.closeAllInfoWindowsOn(map);
which will close all open bubbles. 

You will need to upgrade to osmdroid 4.2 and OSMBonusPack 4.5. 

Original comment by mathieu....@gmail.com on 6 Jun 2014 at 3:26

GoogleCodeExporter commented 9 years ago
thank you that worked

Original comment by lamou...@gmail.com on 6 Jun 2014 at 5:50

GoogleCodeExporter commented 9 years ago

Original comment by mathieu....@gmail.com on 6 Jun 2014 at 8:21