Hello,<div><br></div><div>I have ClusterStrategy On Vector Layer. On select I&#39;m showing a popup. </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div>function createPopup(feature){</div><div>
<span class="Apple-tab-span" style="white-space:pre">                        </span>if(popup){</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>onFeatureUnselect(feature);</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>}<span class="Apple-tab-span" style="white-space:pre">                        </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>popup = new OpenLayers.Popup.FramedCloud(&quot;feed&quot;,</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>new OpenLayers.LonLat(feature.geometry.x, feature.geometry.y),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>new OpenLayers.Size(300,120),</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>&quot;abc&quot;, null,</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>true, onPopupClose);//, onPopupClose</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>popup.autoSize= false;<span class="Apple-tab-span" style="white-space:pre">                        </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>map.addPopup(popup);<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div>
<div><br></div><div>Please notice that I&#39;m <b>not </b>adding &quot;popup&quot; to &quot;feature&quot;.</div><div><br></div><div>My problem is that on unselect feature (as a picture on the map) is not visible. I can still see it in debug in firebug.</div>
<div><br></div><div>I tracked the problem down to the following:</div><div><br></div><div><span class="Apple-style-span" style="font-family: &#39;Times New Roman&#39;; font-size: medium; ">drawFeature in OpenLayers/Renderer.js</span></div>
<div><br></div><div><span class="Apple-style-span" style="font-family: &#39;Times New Roman&#39;; font-size: medium; "><div>var bounds = feature.geometry.getBounds();</div><div>if (!bounds.intersectsBounds(this.extent)) {</div>
<div>style = {display: &quot;none&quot;};</div><div>}</div><div><br></div><div><br></div><div>When I checked the &quot;bounds&quot; they are in EPSG:4326 and &quot;this.extent&quot; is in EPSG:900913. In my application I&#39;m using EPSG:900913.</div>
<div>This means that bounds.intersectsBounds(this.extent) will always return false.</div><div><br></div><div>I have found a workaround,  I transform feature.geometry.bounds from EPSG:4326 to EPSG:900913 but this means dirty code and results in some other quirks (that&#39;s exactly why I use <span class="Apple-style-span" style="font-family: arial; font-size: small; ">new OpenLayers.LonLat(feature.geometry.x, feature.geometry.y), instead of feature.geometry.getBounds().getCenterLonLat()<span class="Apple-style-span" style="font-family: &#39;Times New Roman&#39;; font-size: medium; ">) .</span></span></div>
<div><span class="Apple-style-span" style="font-family: arial; font-size: small; "><span class="Apple-style-span" style="font-family: &#39;Times New Roman&#39;; font-size: medium; "><br></span></span></div><div><span class="Apple-style-span" style="font-family: arial; font-size: small; "><span class="Apple-style-span" style="font-family: &#39;Times New Roman&#39;; font-size: medium; "><br>
</span></span></div><div>Looks to me like a bug but maybe I&#39;m doing something wrong?</div><div><br></div><table><tbody><tr><td class="webkit-line-number" style="background-position: 100% 1px; background-repeat: no-repeat no-repeat; ">
<br></td><td class="webkit-line-content" style="background-color: white; "><br></td></tr></tbody></table></span></div><div>-- </div>salut<br>#geko<br>
</div>