Hi,<div><br></div><div>I have created one OpenLayer script with several layers. One of this layers comes from a remote Map Server. Now, I have achieve show all the layers, but when I try obtain information from the remote layer, the function do not returns anything.</div>
<div><br></div><div>Exists some meaning to read two or more url's at the same time? Thanks</div><div><br></div><div>My code is like this,</div><div><br></div><div><div>var RemoteLayer = </div><div> new OpenLayers.Layer.WMS("Remote",</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> "<a href="http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx">http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx</a>?", </div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> {layers : 'Catastro', </div><div> format : 'image/png', </div><div> <span class="Apple-tab-span" style="white-space:pre">                        </span> transparent : true},</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span> {isBaseLayer : false, </div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> singleTile:true,</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span> ratio: 1});</div>
</div><div><br></div><div>... </div><div><br></div><div><div>info = new OpenLayers.Control.WMSGetFeatureInfo({</div><div> url : '/cgi-bin/mapserv.exe',</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> title : 'Info',</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span> layers : [ LocalLayer1, LocalLayer2, RemoteLayer],</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 : {map : 'mapfile'},</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>eventListeners : {'getfeatureinfo' : function(event) { </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><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><span class="Apple-tab-span" style="white-space:pre">        </span>if(event.text!="")</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><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><span class="Apple-tab-span" style="white-space:pre">        </span>{</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                                                        </span><span class="Apple-tab-span" style="white-space:pre">        </span>var popup = new OpenLayers.Popup.FramedCloud("Datos",</div><div> <span class="Apple-tab-span" style="white-space:pre">                                                                                                                                                                </span> <span class="Apple-tab-span" style="white-space:pre">        </span> map.getLonLatFromPixel(event.xy), </div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                                                                                                                                        </span> null,</div><div><span class="Apple-tab-span" style="white-space:pre">                                                                                                                                                                        </span> event.text, </div><div><span class="Apple-tab-span" style="white-space:pre">                                                                                                                                                                        </span> null,</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                                                                                                                                        </span> true);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                                                                                                </span>popup.autoSize = true;</div><div>
<br></div><div><span class="Apple-tab-span" style="white-space:pre">                                                                                                </span>map.addPopup(popup, true);</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>