Hello
I'm working on an openlayers page that uses FramedCloud popups. There's
a problem where sometimes the popups freeze on the map and can't be
closed. This sometimes happens when the map is zoomed without first
closing the popup. Assuming I've not made some mistake that's causing
this problem (and this is entirely possible) - i've added the following
check to kill-off any open popup 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 works, but i'd like to add an exception to allow the user to
click-drag in order to pan the map, without closing the popup.
I've been searching for a way to detect a map pan events but I can't
figure it out.
Can anyone please help?
My test page is here: http://rabeca.org/index_test.htm
cheers,
Iain
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users