Hi,
Register a "moveend" event to your map objet :
yourMapObj.events.register("moveend", yourMapObj, checkPopup)
Then, in your checkPopup function, check your map if it has any popup
and destroy them.
Regards,
Alexandre
Asle Benoni wrote:
> Hello,
> I have some popups from a WFS layer and a KML layer . When I click the
> point the popup shows. If I zoom in or out without closing the popup
> the popup stays and I cannot close it. Is there a way to automatically
> close any popups that are open when zooming in or out?
>
> Thanks for any help!
>
> /asle
> _______________________________________________
> 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