[mapguide-users] Features Are Not Highlighted
ravinder.singh at BIRLASOFT.COM
ravinder.singh at BIRLASOFT.COM
Wed Feb 25 06:56:52 EST 2009
Hi,
I have written the following code to select/highlight the features on
the map.
MgMap map = new MgMap(myConnection);
map.Open("MyMap");
MgFeatureQueryOptions queryOptions = new
MgFeatureQueryOptions();
queryOptions.SetFilter("ID<4");
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,
Ravinder
******************************************************************************************************************************
"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/e4e87c98/attachment.html
More information about the mapguide-users
mailing list