subash_ks wrote:
Hi All,
I have an openlayer map with several markers.By clicking on the markers its showing info bubbles.But i need only one info bubble at a time.That means by clicking on the info bubble i have to remove older info bubbles,i need only the newely clicked one.Is it possible ?I am using mapstraction library also.
Thanks and Regards,
Subash K S
Are you using OpenLayers.Popup?
If using Popup you can roll through the popups layer
for(i=0;map.popups.length;i++)
{
map.removePopup(map.popups[i])
}
I tend to delete the popup layer and create again each time to avoid redraw errors.
Good luck!
Hrannar