[OpenLayers-Dev] Removing Info bubbles
hauxon
hrannar at loftmyndir.is
Thu Oct 22 11:27:46 EDT 2009
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
--
View this message in context: http://n2.nabble.com/Removing-Info-bubbles-tp3857118p3872986.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
More information about the Dev
mailing list