Karina, You could register a "visibilitychanged" event on your Layer.Text object to close all popups on the map when the visibility is changed to "false".
Alexandre Karina Guardado wrote: > Hello, > > When working with the text layer and click on one marker there is not > option to close it just to click on the icon again. Is there any code > to add a close button or something in this window without having to > click the icon again. The problem is that users get confused when they > open a window and then disactive the text layer and the windows is > still open but there is not way to close it. > any suggestion , thanks, > > karina > El salvador > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > -- Alexandre Dubé Mapgears www.mapgears.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
