[Mapguide_users] Filter Selection by Layer
Kori Maleski
Kori.Maleski at websoftdev.com
Mon Jan 8 13:54:58 EST 2007
What exactly do you need to do following the filtering?
You can create a new selection object and add the desired features to it
from the initial selection object. You can use this new selection object to
then perform the reselection in the map or what ever you need to do.
________________________________
Kori Maleski
Senior Application Developer
WEBSOFT DEVELOPERS, INC.
P: (530) 759-8754 ext 114
F: (530) 759-0923
kori.maleski at websoftdev.com
________________________________
-----Original Message-----
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of Scott Hameister
Sent: Monday, January 08, 2007 7:26 AM
To: mapguide_users at lists.osgeo.org
Subject: [Mapguide_users] Filter Selection by Layer
I would like to use the API to filter a selection by a specific list of
layers...Ex: I have 8 selectable utility layers in my map, My user selects a
square area that contains 6 of these selectable layers, I want to take the
current selection (branching off from the OnSelection event) and filter the
selection down to just two or three layers...lets say Electrical Underground
(EUG), and Electrical above Ground (EAG) layers.
I found selection.GenerateFilter(layer, layerClassName) on MgSelection, but
that only allows for me to filter by a single layer...Am I missing the
obvious?
_______________________________________________
Mapguide_users mailing list
Mapguide_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide_users
More information about the Mapguide-users
mailing list