Not much detail on what sort of problems you&#39;re having, but I&#39;ve got the WMSGetFeatureInfo control working for both Geoserver and Mapserver without too much grief. I think the only drama I had was in paying attention to how the control works out what layers to send wmsgetfeatureinfo requests for. I was watching firebug and wasn&#39;t seeing any requests getting fired off so I dug a little deeper. Have a look at the &quot;internal&quot; findLayers method in the WMSGetFeatureInfo control for details. That was how I got the best idea on how this behaves. It seems (from my humble understanding) that there are a couple of things the control needs to work out:<div>
<br></div><div>1. The candidate layers to query either come from the &quot;layers&quot; property if set in the control, or if &quot;layers&quot; is null (the default), get the layers property from the map.</div><div>2. If &quot;queryVisible&quot; is false in the control (the default) then they all remain candidates. If &quot;queryVisible&quot; is true, then only the visible layers remain candidates</div>
<div>3. If you have configured the &quot;url&quot; property, ok move on....if not, the url of the first layer in the above layer candidates array becomes the &quot;url&quot; property for the control.</div><div>4. The url of each of the candidate layers needs to match either</div>
<div>* the &quot;url&quot; property found in 3.</div><div>* a url found in the alternatives setup in the &quot;layerUrls&quot; property of the control (you might use layerUrls if you&#39;re tile caching for example).</div>
<div><br></div><div>If the candidate layers have passed these tests, then the control will shoot off wmsgetfeatureinfo requests for these layers. Firebugs console will show you if these requests are being sent. Once that bit is working then all you then need to do is deal with the response. If you just want example code, use those provided on the openlayers site, and tweak them until you at least get a response using the above clues - paying attention to any errors you might get from mapserver when you do (eg. your query templates aren&#39;t setup correctly etc). Mapserver errors are usually quite useful.</div>
<div><br></div><div>Otherwise, post more detail on what sort of trouble you&#39;re experiencing...</div><div><br><div class="gmail_quote">On Wed, Feb 15, 2012 at 10:12 PM, Mark Volz <span dir="ltr">&lt;<a href="mailto:volzmark@yahoo.com">volzmark@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>Hello,</div><div><br></div><div>
I am having trouble getting openlayers to use mapserver for wmsgetfeatureinfo.  Does anyone have any examples that I could use?  Most of what I came across  thus far is for geoserver, not mapserver.</div><div><br></div><div>
Thanks<br></div><div><br></div><div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>