At a quick glance. 1/ you are adding the layer to the map twice (though that should be a problem). 2/ You want to add the events to the control (select) not to the layer.
Also, consider making popup global in scope. (it means you can make sure popup is destroyed before opening a new one - a problem you can get into is orphaned popups when you say zoom without closing). -- Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232 Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
