[OpenLayers-Users] wfs + popup bug
Bryan Hempen
brhempen at uos.de
Sat Nov 28 11:23:03 EST 2009
Bryan Hempen schrieb:
> hi everyone!
>
>
> the situation: i am running a wfs-server for viewing hotels as points of
> interest which can be clicked to show a popup.
>
> the problem: everything works fine, except the fact that when i zoom in
> or out while a popup is still opened, it is not possible to close the
> popup anymore.
>
> just see yourself: http://igf-project.igf.uni-osnabrueck.de/~bhempen/
>
> i do not know if this is a known problem, did not find anything at google.
>
> i worked on all of the functions regarding feature selecting or
> unselecting using the example from
> http://openlayers.org/dev/examples/sundials-spherical-mercator.html
> where the bug does not exist. the code now is close to identic, but it
> still does not work.
>
> the problem might be openlayers reloading the wfs-layer, so the previous
> version is not available anymore afterwards.
>
> please go forward taking a look at the code!
>
> why does it work in the kml-example and does not work for me?
>
> thanks for the help.
>
>
> best regards,
> Bryan Hempen
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
i fixed it using the following code:
function onPopupClose(evt) {
selectControl.unselectAll();
for (var i=0; i < map.popups.length; i++) {
map.removePopup(map.popups[i]);
}
}
thanks anyway :)
best regards,
Bryan Hempen
More information about the Users
mailing list