[OpenLayers-Users] Popup can not be closed when zooming

Alexandre Dube adube at mapgears.com
Thu Jun 4 08:23:35 EDT 2009


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
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Users mailing list