[mapguide-users] RE: Features Are Not Highlighted

Martin Morrison martin.morrison at edsi.com
Wed Feb 25 08:05:10 EST 2009

I believe you need to refresh the map...


From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of ravinder.singh at BIRLASOFT.COM
Sent: Wednesday, February 25, 2009 6:57 AM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Features Are Not Highlighted


I have written the following code to select/highlight the features on the map.

        MgMap map = new MgMap(myConnection);
        MgFeatureQueryOptions queryOptions = new MgFeatureQueryOptions();
        MgLayer layer = map.GetLayers().GetItem(0) as MgLayer;
        MgFeatureReader featureReader = layer.SelectFeatures(queryOptions);
        MgSelection selection = new MgSelection(map);
        selection.AddFeatures(layer, featureReader, 0);
        selectionXml = selection.ToXml();

The code runs perfectly. And in viewer it also shows that 2 Features Selected. But features are not highlighted on the map.
Please assist...

Thanks & Regards,


"This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is

prohibited. If you have received this communication in error, please notify us by reply e-mail(administrator at birlasoft.com) immediately and permanently delete this message and any attachments. Thank you."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090225/96f35b4e/attachment.html

More information about the mapguide-users mailing list