<!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">
With "load the features", 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'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 class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/AddInitialLayer">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 class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Micho Gar skrev:
<blockquote
 cite="mid:5b9547fb0904072331u480de803q52bba83fccd3f5b0@mail.gmail.com"
 type="cite"><span dir="ltr"></span>Hi all,<br>
  <br>
I'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&oacute;n personal:<br>
  <a moz-do-not-send="true" href="http://michogar.blogspot.com">http://michogar.blogspot.com</a><br>
  <br>
El dia a dia: <br>
  <a moz-do-not-send="true" href="http://twitter.com/michogar">http://twitter.com/michogar</a><br>
  <br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>
</body>
</html>