[OpenLayers-Users] Popup closebox and formatting.

Christopher Schmidt crschmidt at metacarta.com
Thu May 31 16:16:37 EDT 2007


On Thu, May 31, 2007 at 01:36:39PM -0500, MATTHEW J PURDY wrote:
> Hello all,
> 
> I'm an amateur at this, but I really want my popup windows to have a closebox on them like the example 'popup.html' included in the download. As of now, you have to re-click the icon to get the window to destroy. I'm also interested in formatting the windows to make them more attractive. Can anyone recommend a simple way to do this? Maybe modify the popup.js?

Popups have a 'closeBox' option:

http://dev.openlayers.org/docs/OpenLayers/Popup.html#initialize

set it to true.   

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list