[OpenLayers-Users] closeBoxCallback not being called
Doug Kunzman
dkunzman at usgs.gov
Mon Mar 26 12:59:56 EDT 2012
Hi -
I have an openlayers popup dialog box and the callback method defined in
the constructor isn't being called when the dialog box "close" button is
pressed.
I have searched the openlayers user list and can't find what I'm going
wrong. The big problem is that when the dialog box is displayed the item
that is selected when the dialog box is displayed is staying selected.
This is a a big problem. This is my code...
popup = new OpenLayers.Popup("featurePopup123",
feature.geometry.getBounds().getCenterLonLat(),
new OpenLayers.Size(300, 150), html, null, true,
function() {
popupControl.unselectAll();
map.removePopup(popup);
});
popup.autoSize = true;
popup.addCloseBox();
I've tried several version of openlayers and am currently using 2.7.4.
thanks,
Douglas Kunzman
12201 Sunrise Valley Drive
Reston, VA 20192
Phone: 703 648-4234
dkunzman at usgs.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120326/8d6a2fae/attachment.html
More information about the Users
mailing list