[mapguide-users] set "filter applied to data" programmatically
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Thu Jul 16 15:35:06 EDT 2009
The function BuildLayerDefinitionContent() builds the LayerDefinition
from an xml template:
http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/mapviewerjava/buffer.jsp#L432
This saves the modified xml:
http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/mapviewerjava/buffer.jsp#L131
And here the layer is added to the map:
http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/mapviewerjava/buffer.jsp#L173
And finally the map is saved:
http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/mapviewerjava/buffer.jsp#L347
Regards, Kenneth Skovhede, GEOGRAF A/S
vittorio skrev:
> Hi Kenneth,
> I gave a look at buffer.jsp file, but I have not found anything about xml. I
> would like to understand how to add programmatically a layer from an xml
> file.
>
> Vittorio.
>
>
>
> Kenneth Skovhede, GEOGRAF A/S wrote:
>
>> 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.
>>>
>>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090716/f9e89f4b/attachment.html
More information about the mapguide-users
mailing list