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

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Wed Jul 15 09:37:17 EDT 2009


Look at the buffer.* files in your MapGuide installation:
C:\Program 
Files\MapGuideOpenSource\WebExtensions\www\mapviewer(php|net|java)\buffer.(aspx|jsp|php).

If you are using .Net, you can also try the MaestroAPI:
http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/ModifyLayerFilter

The approach used in the MaestroAPI example is the same you would use
in the other languages.

Regards, Kenneth Skovhede, GEOGRAF A/S



vittorio skrev:
> 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
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090715/ffa136ef/attachment.html


More information about the mapguide-users mailing list