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 : '<a href="http://localhost:9000/cgi-bin/mapserv.exe">http://localhost:9000/cgi-bin/mapserv.exe</a>',</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>title : ' ',</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 : '/ms4w/apps/demo-cv/demoCV.map'</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>'getfeatureinfo' : function(event) {</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>var popup = new OpenLayers.Popup.FramedCloud("Datos",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>