Hello again,
I think I'm part the way there. I've included the following check that ensures
that popups are destroyed when the map or zoom control is clicked:
map.div.onmouseup = function(e){
if (OpenLayers.Event.isLeftClick(e)){
if (feature.popup != null) {
popup.destroy();
popup = null;
alert("Left button click on map - destroy called");
}
}
};
This is fine, however I wish to include the exception that when the map is
clicked and dragged (ie. to pan), the popup is not destroyed. I've come across
this boolean: "OpenLayers.Control.DragPan.panned" in the docs but can't manage
to implement it.
The edited version is now here: http://rabeca.org/index_test.htm
Can someone please help?
Cheers, Iain
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users