Hi Eric,<br>Thanks for the info, didn't know that.<br><br><div class="gmail_quote">2008/10/31 Eric Lemoine <span dir="ltr"><<a href="mailto:eric.c2c@gmail.com">eric.c2c@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
SelectFeature won't help with WMS layers. Eric<br>
<br>
2008/10/31, Indika Tantrigoda <<a href="mailto:indika85@gmail.com">indika85@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> Hi,<br>
> I too had the same problem, but it was with a wfs point layer.<br>
> I was able to get around this by using selectFeature (thanks to all on the<br>
> list who helped me out)<br>
><br>
> Check this out<br>
> <a href="http://www.nabble.com/WFS-Layers%2C-Markers%2C-Popups-to20189787.html" target="_blank">http://www.nabble.com/WFS-Layers%2C-Markers%2C-Popups-to20189787.html</a><br>
><br>
> Maybe this could give you a clue.<br>
><br>
> Regards,<br>
> Indika<br>
><br>
> 2008/10/31 Nina Helle-Mildt <<a href="mailto:helle@sdac.hannover.bgr.de">helle@sdac.hannover.bgr.de</a>><br>
><br>
>> Hi there,<br>
>><br>
>> a couple of weeks ago I already posted a mail on querying layers using<br>
>> the GetFeatureUnfo request. Many thanks to all of you who tried to help<br>
>> me! Nevertheless I'm still struggeling with this task:<br>
>><br>
>> I have two overlay layers (both wms layers) displaying point data. What<br>
>> I want to do is, clicking a point object of one of the two layers with<br>
>> the mouse in order to get the results of this query displayed in an<br>
>> defined area next to the map.<br>
>><br>
>> I would appreciate any help - a complete example would be great!<br>
>><br>
>> Best regards<br>
>> Nina<br>
>><br>
>><br>
>> Below parts of my code:<br>
>><br>
>> //Overlay Layers:<br>
>> var seis = new OpenLayers.Layer.WMS.Untiled("Erdbeben weltweit ",<br>
>> "<a href="http://www.seismologie.bgr.de:8080/cgi-bin/mapserv?map=seis_wms.map" target="_blank">http://www.seismologie.bgr.de:8080/cgi-bin/mapserv?map=seis_wms.map</a>",<br>
>> {transparent: 'true', layers:<br>
>> ['q_year','q_month','q_week','aktuell_welt']},<br>
>> {'buffer': 1},<br>
>> {singleTile: true, 'ratio': 1.0},<br>
>> {'isBaseLayer': false, 'gutter': 20});<br>
>><br>
>> var seis_ger = new OpenLayers.Layer.WMS.Untiled("Erdbeben<br>
>> Deutschland",<br>
>> "<a href="http://www.seismologie.bgr.de:8080/cgi-bin/mapserv?map=seis_d_wms.map" target="_blank">http://www.seismologie.bgr.de:8080/cgi-bin/mapserv?map=seis_d_wms.map</a>",<br>
>> {transparent: 'true', layers:<br>
>> ['q_year_ger','q_month_ger','q_week_ger',<br>
>> 'aktuell_ger','box']},<br>
>> {'buffer': 1},<br>
>> {singleTile: true, 'ratio': 1.0},<br>
>> {'isBaseLayer': false, 'gutter': 20});<br>
>><br>
>> ...<br>
>><br>
>> //Support GetFeatureInfo<br>
>><br>
>> map.events.register('click', map, function (e) {<br>
>> document.getElementById('nodeList').innerHTML = "Einen Moment bitte ...";<br>
>> var url = map.layers[0].getFullRequestString(<br>
>> {<br>
>> REQUEST: "GetFeatureInfo",<br>
>> EXCEPTIONS: "application/vnd.ogc.se_xml",<br>
>> BBOX: map.getExtent().toBBOX(),<br>
>> X: e.xy.x,<br>
>> Y: e.xy.y,<br>
>> INFO_FORMAT: 'text/html',<br>
>> QUERY_LAYERS: map.layers[0].params.LAYERS,<br>
>> FEATURE_COUNT: 50,<br>
>> WIDTH: map.size.w,<br>
>> HEIGHT: map.size.h}<br>
>> );<br>
>><br>
>> OpenLayers.loadURL(url, '', this, setHTML);<br>
>> OpenLayers.Event.stop(e);<br>
>> });<br>
>> function setHTML(response) {<br>
>> OpenLayers.Util.getElement('nodeList').innerHTML =<br>
>> response.responseText;}<br>
>><br>
>><br>
>><br>
>><br>
>> //Support GetFeatureInfo - this Version (works great with only 1 layer)<br>
>><br>
>> // map.events.register('click', map, function (e) {<br>
>> // //document.getElementById('map').style.cursor = 'crosshair';<br>
>> // OpenLayers.Util.getElement('nodeList').innerHTML = "Einen Moment<br>
>> bitte ...";<br>
>> // var url = seis.getFullRequestString({<br>
>> // REQUEST: "GetFeatureInfo",<br>
>> // EXCEPTIONS: "application/vnd.ogc.se_xml",<br>
>> // BBOX: seis.map.getExtent().toBBOX(),<br>
>> // X: e.xy.x,<br>
>> // Y: e.xy.y,<br>
>> // INFO_FORMAT: 'text/html',<br>
>> // QUERY_LAYERS: seis.params.LAYERS,<br>
>> // WIDTH: seis.map.size.w,<br>
>> // HEIGHT: seis.map.size.h});<br>
>> // OpenLayers.loadURL(url, '', this, setHTML);<br>
>> //alternativ:<br>
>> window.open(url);<br>
>> // OpenLayers.Event.stop(e);<br>
>> // });<br>
>> // function setHTML(response) {<br>
>> // OpenLayers.Util.getElement('nodeList').innerHTML =<br>
>> response.responseText;}<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>
</div></div></blockquote></div><br>