<div>I couldnt get it to work on point or polyline with MapGuide 1.2. - Not sure if this is resolved in the new releases.</div>
<div> </div>
<div>Cheers,<br><br></div>
<div class="gmail_quote">On Wed, Nov 5, 2008 at 11:22 AM, gingerbbm <span dir="ltr"><<a href="mailto:stuart.jones@jacobs.com">stuart.jones@jacobs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Dear all<br><br>I am accessing MapGuide layers via WMS (in OpenLayers). I want to be able to<br>click a point and see feature information (ultimately to create dynamic<br>
tooltips). I found the code to do this job (see below) which employs<br>GetFeatureInfo.<br><br>The thing is, it doesn't appear to work on point or line layers, only<br>polygon ones. Can anyone confirm that this doesn't work, or offer some<br>
advice on how to make it work.<br><br> map.events.register('click', map, function (e) {<br> OpenLayers.Util.getElement('nodeList').innerHTML = "Loading...<br>please wait...";<br> var url = layerTube.getFullRequestString({<br>
REQUEST: "GetFeatureInfo",<br> EXCEPTIONS: "application/vnd.ogc.se_xml",<br> BBOX: layerTube.map.getExtent().toBBOX(),<br> X: e.xy.x,<br> Y: e.xy.y,<br>
INFO_FORMAT: 'text/html',<br> QUERY_LAYERS: layerTube.params.LAYERS,<br> WIDTH: layerTube.map.size.w,<br> HEIGHT: layerTube.map.size.h,<br> TOLERANCE: 50<br> });<br>
OpenLayers.loadURL(url, '', this, setHTML);<br> OpenLayers.Event.stop(e);<br> });<br><br><br>I would appreciate any advice on this subject.<br><br>Thanks!<br>Stuart<br><font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Using-GetFeatureInfo-on-MapGuide-layers-via-WMS-tp1461258p1461258.html" target="_blank">http://n2.nabble.com/Using-GetFeatureInfo-on-MapGuide-layers-via-WMS-tp1461258p1461258.html</a><br>
Sent from the MapGuide Users mailing list archive at Nabble.com.<br><br>_______________________________________________<br>mapguide-users mailing list<br><a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br></font></blockquote></div><br>