<div dir="ltr"><div>Hello Nina!!<br></div>
<div>I believe that you want to get the info of all the layers of your map at a single click </div>
<div>into a determined position, right?</div>
<div> </div>
<div>So, at QUERY_LAYERS param, you'll have to write what Mika said, but leaving the </div>
<div>index off (map.layers.params.LAYERS) , this way, all the array will be sent to the query! (I beleve this should work)!<br></div>
<div> </div>
<div>You said about layerlist...</div>
<div> </div>
<div>If you notice, the "layerlist" at the OpenLayers site's example is declared as a list of </div>
<div>layers names:</div>
<div> </div>
<div><a href="http://trac.openlayers.org/wiki/GetFeatureInfo">http://trac.openlayers.org/wiki/GetFeatureInfo</a> (line 3 of the first code ;) )</div>
<div> </div>
<div>(I don't know if you have declared it.. but.. it's there...hehehe)</div>
<div> </div>
<div>Oh and...I don't know if you have overlays in your map, but, if you do, maybe is better to take care about the visibility of layers...</div>
<div> </div>
<div>I've made some tests and discovered that even when a overlay is not showed in the map, the getFeatureInfo returns it's infos when you use a query param like this (map.layers.params.LAYERS), because you pass the layer to the query anyway... XD</div>
<div> </div>
<div>Only some adjusts can fix this, if necessary.. =)</div>
<div> </div>
<div>I hope I have helped! =)</div>
<div> </div>
<div>Rodrigo</div>
<div> </div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Thu, Sep 25, 2008 at 8:24 AM, Lehtonen, Mika <span dir="ltr"><<a href="mailto:mika@digikartta.net">mika@digikartta.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Nina,<br><br>I use this to get a particular layer info:<br><br>QUERY_LAYERS: map.layers[1].params.LAYERS<br>
<br>I really don't know how to choose all the layers, but maybe someone knows. I don't know what happens if you leave the index off...<br><br>cheers,<br>mika<br><br><br><br><br>Nina Helle-Mildt kirjoitti:<br>
<div>
<div></div>
<div class="Wj3C7c">> Hey,<br>><br>> thanks for your replay Ian. Of course I missed the QUERY_LAYERS but that<br>> doesn't seem to be all. I tried with<br>><br>> QUERY_LAYERS: layerlist<br>><br>> and with<br>
><br>> QUERY_LAYERS: wms.params.LAYERS.<br>><br>> Unfortunately without success. Any other ideas or examples?<br>><br>> Thanks,<br>> Nina<br>><br>><br>><br>><br>> Ian Turton wrote:<br>><br>
>> On Thu, Sep 25, 2008 at 3:59 AM, Nina Helle-Mildt<br>>> <<a href="mailto:helle@sdac.hannover.bgr.de">helle@sdac.hannover.bgr.de</a>> wrote:<br>>><br>>>> Hey there,<br>>>><br>>>> so far I've been able to query one overlay layer, following the Feature<br>
>>> Info Example on the OpenLayers homepage. Now I'm trying to query all<br>>>> existing overlay layers - but with little success.<br>>>><br>>> I work with GeoServer instead of mapserver but the parameters should<br>
>> be the same (at least that's what I tell my students) so I think you<br>>> are missing the QUERY_LAYERS: as below.<br>>><br>>><br>>>> function findLayerClick(event) {<br>>>><br>
>>> layerlist = "seis,seis_ger";<br>>>> OpenLayers.Util.getElement('nodeList').innerHTML = "Einen Moment bitte ...";<br>>>> var url = map.getFullRequestString({<br>>>> REQUEST: "GetFeatureInfo",<br>
>>> EXCEPTIONS: "application/vnd.ogc.se_xml",<br>>>> BBOX: map.getExtent().toBBOX(),<br>>>> X: event.xy.x,<br>>>> Y: event.xy.y,<br>>>> INFO_FORMAT: 'text/html',<br>
>>><br>>> QUERY_LAYERS: wms.params.LAYERS,<br>>><br>>><br>>>> WIDTH: map.size.w,<br>>>> HEIGHT: map.size.h},<br>>>> "<a href="http://www.seismologie.bgr.de:8080/cgi-bin/mapserv" target="_blank">http://www.seismologie.bgr.de:8080/cgi-bin/mapserv</a>?");<br>
>>> OpenLayers.loadURL(url, '', this, setHTML);<br>>>> Event.stop(event);<br>>>> }<br>>>><br>>>><br>>> Ian<br>>><br>> _______________________________________________<br>
> Users mailing list<br>> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>> <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>======================================<br>Rodrigo C. Antonialli<br>Rio Claro - SP - Brasil<br>Contato: (19) 9757-0370<br><a href="mailto:rca.cirdan@gmail.com">rca.cirdan@gmail.com</a><br>
<a href="mailto:rcantonialli@gmail.com">rcantonialli@gmail.com</a><br>Skype: rc_antonialli<br><br><a href="http://www.linkedin.com/in/rcaprofile">http://www.linkedin.com/in/rcaprofile</a><br></div>