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

vittorio vittorio.ricchiuto at hsh.it
Wed Jul 15 06:27:16 EDT 2009


Thanks Kenneth for your reponse.

I need to see code examples to load a new layer programmatically from a xml
modified file.
Can you post me kindly?

Vittorio.





Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> 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
>>   
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://n2.nabble.com/set-%22filter-applied-to-data%22-programmatically-tp3257298p3262280.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list