Get a hold of the selection xml (either through server code or the javascript call GetSelectionXml()).
The xml has a structure like this (not the actual layout, but close enough):
<Selection>
   <Layer id="...">
      <Class id="...">
            <ID>...</ID>
      </Class>
   </Layer>
   <Layer id="...">
      <Class id="...">
            <ID>...</ID>
      </Class>
   </Layer>
</Selection>

Simply remove the <Layer> tag that you don't want and save back the xml or call SetSelectionXml.

Regards, Kenneth Skovhede, GEOGRAF A/S



stoff skrev:
Hi,
how do I clear the selection of a single layer, while preserving the
selection of the others?

Best regards,

stoff
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to