[mapguide-users] Filter features before create the map
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Wed Apr 8 03:15:02 EDT 2009
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
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090408/053f42b3/attachment.html
More information about the mapguide-users
mailing list