Thanks!<br>I am not sure if I wrote this correctly. If you can take a quick look at <a href="http://naturkart.no/kulturminnekart/">http://naturkart.no/kulturminnekart/</a>  and turn on som layers, click a marker and then zoom. The popup stays put. I was not sure what to use instead ofr &quot;wfslayer&quot;.<br>
<br>/asle<br><br><div class="gmail_quote">2009/6/11 Ivan Grcic <span dir="ltr">&lt;<a href="mailto:igrcic@gmail.com">igrcic@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Asle, this migh help also, especiall if you are using some strategy<br>
like BBOX with wfs layer:<br>
<br>
wfsLayer.events.register(&#39;loadstart&#39;, this, function (evt){<br>
        if(selectedFeature &amp;&amp; selectedFeature.popup){<br>
            selectControls.unselect(PARAMS.selectedFeature);<br>
           //selectControls.unselectAll();  &lt;= this might also work<br>
        }<br>
}<br>
<br>
i was banging my head with this one for some time, then i figured out<br>
that features are NOT being unselected before they are removed from<br>
the layer (BBOX has changed =&gt; new features are fetched)<br>
<br>
that way the popup stays on map but that feature that the popup has<br>
been opened on doesnt exist anymore, and there was no way to close the<br>
popup.<br>
registering loadstart event and unselecting feature there before the<br>
strategy loads new features did the job!<br>
<br>
hope it helps someone,<br>
<br>
cheers<br>
<div><div></div><div class="h5"><br>
On Tue, Jun 9, 2009 at 2:15 PM, Alexandre Dube&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt;  Just put a break point on this line :<br>
&gt;            if (*feature.popup[]*= null){<br>
&gt;<br>
&gt;  Then, using the &quot;script&quot; tag and at the right the &quot;watch&quot; tab, you will<br>
&gt; then be able to see all variables and object currently available,<br>
&gt; including &quot;this&quot; (which should be your map object).<br>
&gt;<br>
&gt;  There&#39;s plenty of tutorials on the web that could help.  Just google<br>
&gt; &quot;firebug how to use&quot; for example.<br>
&gt;<br>
&gt; Best of luck,<br>
&gt;<br>
&gt; Alexandre<br>
&gt;<br>
&gt;<br>
&gt; Asle Benoni wrote:<br>
&gt;&gt; Ok. Not really sure where to put this, when does it fire?<br>
&gt;&gt;<br>
&gt;&gt;         function checkPopup(feature) {<br>
&gt;&gt;             if (*feature.popup[]*= null){<br>
&gt;&gt;             feature.popup.destroy();<br>
&gt;&gt;             }<br>
&gt;&gt;         }<br>
&gt;&gt;<br>
&gt;&gt;         map.events.register(&quot;moveend&quot;, map, checkPopup);<br>
&gt;&gt; I have FireBug but do not really know what to check :-(<br>
&gt;&gt;<br>
&gt;&gt; Forgive my small knowledge here.<br>
&gt;&gt;<br>
&gt;&gt; /asle<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Alexandre Dubé<br>
&gt; Mapgears<br>
&gt; <a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
</div></div><font color="#888888">Ivan Grcic<br>
</font></blockquote></div><br>