Karina,
Sure. Here's something to start from :
yourVectorLayer.events.register("visibilitychanged", yourVectorLayer,
myOnChange);
var myOnChange = function() {
if(this.visibility === false) {
//remove your popup
}
};
Alexandre
Karina Guardado wrote:
> thanks for your help and maybe you could provide me a code example
> about using this register event because I have never use this kind of
> object.
>
> thanks again,
>
>
>
> On Wed, Feb 24, 2010 at 9:52 AM, Alexandre Dube <[email protected]
> <mailto:[email protected]>> wrote:
>
> 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] <mailto:[email protected]>
> http://openlayers.org/mailman/listinfo/users
>
>
>
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com <http://www.mapgears.com>
>
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users