<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
To do this, you have to know what the Xml structure for selections is:<br>
<a class="moz-txt-link-freetext" href="http://techearth.net/gis/mapguideManual/index.php5?title=MapGuide_Manual:Programmer:Active_selections">http://techearth.net/gis/mapguideManual/index.php5?title=MapGuide_Manual:Programmer:Active_selections</a><br>
<br>
The xml looks like this:<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
&lt;FeatureSet&gt;<br>
&nbsp;&nbsp; &lt;Layer id="6f0528ca-0000-1000-8000-005056c00008"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Class id="Default:Parcels"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ID&gt;piwAAA==&lt;/ID&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Class&gt;<br>
&nbsp;&nbsp; &lt;/Layer&gt;<br>
&lt;/FeatureSet&gt;<br>
<br>
The layer id can be read from the runtime map layer's Id property.<br>
The class property is called FeatureName (I think).<br>
<br>
You can have multiple &lt;Layer&gt;, &lt;Class&gt; and &lt;ID&gt;
elements.<br>
<br>
To select one feature from one layer, and two features from another
layer, just add them:<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
&lt;FeatureSet&gt;<br>
&nbsp;&nbsp; &lt;Layer id="6f0528ca-0000-1000-8000-005056c00008"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Class id="Default:Parcels"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ID&gt;piwAAA==&lt;/ID&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Class&gt;<br>
&nbsp;&nbsp; &lt;/Layer&gt;<br>
&nbsp;&nbsp; &lt;Layer id="6f0528ca-0000-1000-8000-ff5056cffff8"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Class id="Default:Roads"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ID&gt;zarAAA==&lt;/ID&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ID&gt;rt7AAA==&lt;/ID&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Class&gt;<br>
&nbsp;&nbsp; &lt;/Layer&gt;<br>
&lt;/FeatureSet&gt;<br>
<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Amit Kumar Shukla skrev:
<blockquote
 cite="mid:da9418290909110002j554026c4p18818c9129344a16@mail.gmail.com"
 type="cite"><br clear="all">
Hi List,<br>
&nbsp;I'm using MapGuide Open Source 2.1 Beta 1. I want to do selection of
selected feature as well as features near to it. How can I show
selection of both, if features are in different layers.
&nbsp;Selection in one layer is working properly . <br>
  <br>
Hopefully someone help me.<br>
  <br>
Thanks &amp; regards.<br>
Amit<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
  </pre>
</blockquote>
</body>
</html>