[mapguide-users] set "filter applied to data" programmatically

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Tue Jul 14 16:28:27 EDT 2009


The runtime map is a copy of the MapDefinition and references 
LayerDefinitions.
You usually get to the Runtime map by calling MgMap.Open(...).
To modify the filter, you must modify the LayerDefinition that is 
referenced by the
runtime map.

You need to get the LayerDefinition xml, and modify it.
If you save it, the layer will be modified for all users.

Instead, save a modified copy in the session repository.
The update the runtime map layer to point to the temporary
LayerDefinition.

Finally call Refresh in the client.

Regards, Kenneth Skovhede, GEOGRAF A/S




vittorio skrev:
> Hi all,
> how to set "filter applied to data" to a layer programmatically and make
> visible the result into map viewer?
>
> Thanks,
>
> Vittorio
>   


More information about the mapguide-users mailing list