<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Look at the buffer.* files in your MapGuide installation:<br>
C:\Program
Files\MapGuideOpenSource\WebExtensions\www\mapviewer(php|net|java)\buffer.(aspx|jsp|php).<br>
<br>
If you are using .Net, you can also try the MaestroAPI:<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/ModifyLayerFilter">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/ModifyLayerFilter</a><br>
<br>
The approach used in the MaestroAPI example is the same you would use<br>
in the other languages.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
vittorio skrev:
<blockquote cite="mid:1247653636792-3262280.post@n2.nabble.com"
 type="cite">
  <pre wrap="">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:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi all,
how to set "filter applied to data" to a layer programmatically and make
visible the result into map viewer?

Thanks,

Vittorio
  
      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>