[mapguide-users] Using GetFeatureInfo on MapGuide layers via WMS
Kori Maleski
kori.maleski at gmail.com
Wed Nov 5 14:13:01 EST 2008
I couldnt get it to work on point or polyline with MapGuide 1.2. - Not sure
if this is resolved in the new releases.
Cheers,
On Wed, Nov 5, 2008 at 11:22 AM, gingerbbm <stuart.jones at jacobs.com> wrote:
>
> Dear all
>
> I am accessing MapGuide layers via WMS (in OpenLayers). I want to be able
> to
> click a point and see feature information (ultimately to create dynamic
> tooltips). I found the code to do this job (see below) which employs
> GetFeatureInfo.
>
> The thing is, it doesn't appear to work on point or line layers, only
> polygon ones. Can anyone confirm that this doesn't work, or offer some
> advice on how to make it work.
>
> map.events.register('click', map, function (e) {
> OpenLayers.Util.getElement('nodeList').innerHTML = "Loading...
> please wait...";
> var url = layerTube.getFullRequestString({
> REQUEST: "GetFeatureInfo",
> EXCEPTIONS: "application/vnd.ogc.se_xml",
> BBOX: layerTube.map.getExtent().toBBOX(),
> X: e.xy.x,
> Y: e.xy.y,
> INFO_FORMAT: 'text/html',
> QUERY_LAYERS: layerTube.params.LAYERS,
> WIDTH: layerTube.map.size.w,
> HEIGHT: layerTube.map.size.h,
> TOLERANCE: 50
> });
> OpenLayers.loadURL(url, '', this, setHTML);
> OpenLayers.Event.stop(e);
> });
>
>
> I would appreciate any advice on this subject.
>
> Thanks!
> Stuart
> --
> View this message in context:
> http://n2.nabble.com/Using-GetFeatureInfo-on-MapGuide-layers-via-WMS-tp1461258p1461258.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20081105/aea3acd9/attachment.html
More information about the mapguide-users
mailing list