[mapguide-users] clear selection of one layer
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Sat Jan 17 06:56:31 EST 2009
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
>
More information about the mapguide-users
mailing list