Thanks Kenneth, I would triying the last one. I will review the process that you say.<br><br><br><div class="gmail_quote">2009/4/8 Kenneth Skovhede, GEOGRAF A/S <span dir="ltr">&lt;<a href="mailto:ks@geograf.dk">ks@geograf.dk</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  

<div bgcolor="#ffffff" text="#000000">
With &quot;load the features&quot;, do you mean:<br>
* select them ?<br>
* create a temporary featuresource and display them?<br>
* add a filter to a layer, and display that?<br>
<br>
If you meant the last one, you should save a copy of the filtered
LayerDefinition to the session repo.<br>
Then create a copy of the MapDefinition, alter the layer&#39;s resourceid
to point at the temp layer.<br>
Then do the same with the WebLayout, and start the viewer with the temp
WebLayout.<br>
<br>
A basic outline of the startup process can be seen here:<br>
<a href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/AddInitialLayer" target="_blank">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/AddInitialLayer</a><br>
<br>
The example uses the MaestroAPI, but the approach is the same,
regardless of the API.<br>
<pre cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Micho Gar skrev:
<blockquote type="cite"><div><div></div><div class="h5"><span dir="ltr"></span>Hi all,<br>
  <br>
I&#39;m trying to filter the features before load the map. I
created a basic filter, but do not know how to load only the fetaures
filtered.<br>
  <br>
Thanks.<br>
  <br>
  <br>
-- <br>
# michogar<br>
# Analista Programador SIG<br>
# GNU/Linux Counter 462666<br>
  <br>
Una visión personal:<br>
  <a href="http://michogar.blogspot.com" target="_blank">http://michogar.blogspot.com</a><br>
  <br>
El dia a dia: <br>
  <a href="http://twitter.com/michogar" target="_blank">http://twitter.com/michogar</a><br>
  <br>
  <br>
  </div></div><pre><hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
  </pre>
</blockquote>
</div>

<br>_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br># michogar<br># Analista Programador SIG<br># GNU/Linux Counter 462666<br><br>Una visión personal:<br><a href="http://michogar.blogspot.com">http://michogar.blogspot.com</a><br>
<br>El dia a dia: <br><a href="http://twitter.com/michogar">http://twitter.com/michogar</a><br><br><br>