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