With "load the features", do you mean:
* select them ?
* create a temporary featuresource and display them?
* add a filter to a layer, and display that?

If you meant the last one, you should save a copy of the filtered LayerDefinition to the session repo. Then create a copy of the MapDefinition, alter the layer's resourceid to point at the temp layer. Then do the same with the WebLayout, and start the viewer with the temp WebLayout.

A basic outline of the startup process can be seen here:
http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/AddInitialLayer

The example uses the MaestroAPI, but the approach is the same, regardless of the API.

Regards, Kenneth Skovhede, GEOGRAF A/S



Micho Gar skrev:
Hi all,

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.

Thanks.


--
# michogar
# Analista Programador SIG
# GNU/Linux Counter 462666

Una visión personal:
http://michogar.blogspot.com

El dia a dia:
http://twitter.com/michogar


------------------------------------------------------------------------

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to