<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Book Antiqua";
        panose-1:2 4 6 2 5 3 5 3 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Book Antiqua","serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:729421041;
        mso-list-type:hybrid;
        mso-list-template-ids:-1129386496 68812815 68812825 68812827 68812815 68812825 68812827 68812815 68812825 68812827;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=HR link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Hello,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>You
need to refresh mapFrame.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Look
at this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Put
this in head of file<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Courier New";color:#2B91AF;background:black;mso-highlight:black'>&lt;</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#FFA346;background:
black;mso-highlight:black'>script</span><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:11.0pt;font-family:"Courier New";color:#30C9AE;background:
black;mso-highlight:black'>type</span><span style='font-size:11.0pt;font-family:
"Courier New";color:#D0D0D0;background:black;mso-highlight:black'>=</span><span
style='font-size:11.0pt;font-family:"Courier New";color:salmon;background:black;
mso-highlight:black'>&quot;text/javascript&quot;</span><span style='font-size:
11.0pt;font-family:"Courier New";color:#2B91AF;background:black;mso-highlight:
black'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Courier New";color:red;background:black;mso-highlight:black'>function</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'> </span><span style='font-size:11.0pt;font-family:
"Courier New";color:white;background:black;mso-highlight:black'>select</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'>(</span><span style='font-size:11.0pt;font-family:
"Courier New";color:white;background:black;mso-highlight:black'>xml</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'>)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>{<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style='font-size:11.0pt;font-family:"Courier New";color:white;
background:black;mso-highlight:black'>parent</span><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>.</span><span
style='font-size:11.0pt;font-family:"Courier New";color:white;background:black;
mso-highlight:black'>mapFrame</span><span style='font-size:11.0pt;font-family:
"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>.</span><span
style='font-size:11.0pt;font-family:"Courier New";color:white;background:black;
mso-highlight:black'>SetSelectionXML</span><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>(</span><span
style='font-size:11.0pt;font-family:"Courier New";color:white;background:black;
mso-highlight:black'>xml</span><span style='font-size:11.0pt;font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style='font-size:11.0pt;font-family:"Courier New";color:white;
background:black;mso-highlight:black'>parent</span><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>.</span><span
style='font-size:11.0pt;font-family:"Courier New";color:white;background:black;
mso-highlight:black'>mapFrame</span><span style='font-size:11.0pt;font-family:
"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>.</span><span
style='font-size:11.0pt;font-family:"Courier New";color:white;background:black;
mso-highlight:black'>ZoomSelection</span><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>();&nbsp;&nbsp;
<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>}<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#2B91AF;background:black;mso-highlight:black'>&lt;/</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#FFA346;background:
black;mso-highlight:black'>script</span><span style='font-size:11.0pt;
font-family:"Courier New";color:#2B91AF;background:black;mso-highlight:black'>&gt;</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#2B91AF'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&#8230;and
this at the end of file&#8230;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#2B91AF'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>&nbsp;&nbsp;&nbsp;
</span><span style='font-size:11.0pt;font-family:"Courier New";color:white;
background:black;mso-highlight:black'>map.Save</span><span style='font-size:
11.0pt;font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:
black'>();<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";
color:#E0E0E0;background:black;mso-highlight:black'>&nbsp;&nbsp;&nbsp; </span><span
style='font-size:11.0pt;font-family:"Courier New";color:white;background:black;
mso-highlight:black'>RegisterStartupScript</span><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>(</span><span
style='font-size:11.0pt;font-family:"Courier New";color:red;background:black;
mso-highlight:black'>&quot;start&quot;</span><span style='font-size:11.0pt;
font-family:"Courier New";color:#E0E0E0;background:black;mso-highlight:black'>,
</span><span style='font-size:11.0pt;font-family:"Courier New";color:red;
background:black;mso-highlight:black'>&quot;&lt;script&gt;select('&quot;</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'> </span><span style='font-size:11.0pt;font-family:
"Courier New";color:white;background:black;mso-highlight:black'>+</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'> </span><span style='font-size:11.0pt;font-family:
"Courier New";color:white;background:black;mso-highlight:black'>selectionXml</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'> </span><span style='font-size:11.0pt;font-family:
"Courier New";color:white;background:black;mso-highlight:black'>+</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'> </span><span style='font-size:11.0pt;font-family:
"Courier New";color:red;background:black;mso-highlight:black'>&quot;');&lt;/script&gt;&quot;</span><span
style='font-size:11.0pt;font-family:"Courier New";color:#E0E0E0;background:
black;mso-highlight:black'>);</span><span style='font-size:11.0pt;font-family:
"Courier New";color:#2B91AF'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>ravinder.singh@BIRLASOFT.COM<br>
<b>Sent:</b> Wednesday, February 25, 2009 12:57 PM<br>
<b>To:</b> mapguide-users@lists.osgeo.org<br>
<b>Subject:</b> [mapguide-users] Features Are Not Highlighted<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>Hi,<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>I have written the following
code to select/highlight the features on the map.<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:teal'>MgMap</span> map = <span style='color:blue'>new</span>
<span style='color:teal'>MgMap</span>(myConnection);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
map.Open(<span style='color:maroon'>&quot;MyMap&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:teal'>MgFeatureQueryOptions</span> queryOptions = <span
style='color:blue'>new</span> <span style='color:teal'>MgFeatureQueryOptions</span>();<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
queryOptions.SetFilter(<span style='color:maroon'>&quot;ID&lt;4&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:teal'>MgLayer</span> layer = map.GetLayers().GetItem(0) <span
style='color:blue'>as</span> <span style='color:teal'>MgLayer</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:teal'>MgFeatureReader</span> featureReader =
layer.SelectFeatures(queryOptions);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:teal'>MgSelection</span> selection = <span style='color:
blue'>new</span> <span style='color:teal'>MgSelection</span>(map);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
selection.AddFeatures(layer, featureReader, 0);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
selectionXml = selection.ToXml();&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Book Antiqua","serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Book Antiqua","serif"'>The
code runs perfectly. And in viewer it also shows that 2 Features Selected. But
features are not highlighted on the map.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Book Antiqua","serif"'>Please
assist&#8230;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Book Antiqua","serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Book Antiqua","serif";color:gray'>Thanks &amp; Regards,<o:p></o:p></span></b></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:gray'>Ravinder<o:p></o:p></span></p>

<pre><span lang=EN-US>******************************************************************************************************************************<o:p></o:p></span></pre><pre><span
lang=EN-US>&quot;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 <o:p></o:p></span></pre><pre><span
lang=EN-US>prohibited. If you have received this communication in error, please notify us by reply e-mail(administrator@birlasoft.com) immediately and permanently delete this message and any attachments. Thank you.&quot;<o:p></o:p></span></pre><pre><span
lang=EN-US>******************************************************************************************************************************<o:p></o:p></span></pre></div>

</body>

</html>