If you are using the addPopup method of the OpenLayers.Map object, you can 
specify this in the function call. Then OpenLayers will handle this 
automagically.

addPopup
addPopup: function(     popup,
        exclusive       )

Parameters
popup   
{OpenLayers.Popup<http://dev.openlayers.org/docs/files/OpenLayers/Popup-js.html#OpenLayers.Popup>}
exclusive       {Boolean} If true, closes all other popups first


http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.addPopup

- Niklas


________________________________
Från: [email protected] [mailto:[email protected]] För 
subash_ks
Skickat: den 20 oktober 2009 09:09
Till: [email protected]
Ämne: [OpenLayers-Dev] Removing Info bubbles

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
________________________________
View this message in context: Removing Info 
bubbles<http://n2.nabble.com/Removing-Info-bubbles-tp3857118p3857118.html>
Sent from the OpenLayers Dev mailing list 
archive<http://n2.nabble.com/OpenLayers-Dev-f1832264.html> at Nabble.com.
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to