Hi, <div><br></div><div>I have the next code to show a popup when a user clicks over the map:</div><div><br></div><div><div><br></div><div>info = new OpenLayers.Control.WMSGetFeatureInfo({</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>url : &#39;<a href="http://localhost:9000/cgi-bin/mapserv.exe">http://localhost:9000/cgi-bin/mapserv.exe</a>&#39;,</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>title : &#39; &#39;,</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>layers : [ StatesWms ],</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>queryVisible : true,</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>vendorParams : {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>map : &#39;/ms4w/apps/demo-cv/demoCV.map&#39;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>},</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>eventListeners : {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&#39;getfeatureinfo&#39; : function(event) {</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>var popup = new OpenLayers.Popup.FramedCloud(&quot;Datos&quot;,map.getLonLatFromPixel(event.xy), null, event.text, null, true);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>popup.autoSize = true;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>map.addPopup(popup);</div><div><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>});</div><div><br></div><div>map.addControl(info);</div><div>info.activate();</div></div><div><br></div><div>When I click over the map, the popup with the correct information appears at the web client, but I want that if I click in another point, the first popup will be closed and the new will be open. Some help?</div>
<div><br></div><div>Thanks</div>