Select to view content in your preferred language

how to make all features out side a selected polygon invisible....

624
1
01-17-2011 07:04 PM
srinivasreddy
Deactivated User
I run small spatial query to select a particular polygon feature on the map.In map i am having 10 featurelayers. i need to make all features from all 10 layers make invisible which are not inside the selected polygon feature. i,e just like clipping. but i dont want to create new feature layers........inside the selected polygon. is it possible ,if so please give some ideas. i am using arcgis server 9.3.1

thank you....
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
You could set the other Feature Layer's mode to MODE_SELECTION:
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#mode
and then call selectFeatures() on them where the Query's geometry is the polygon.
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#selectFeatures()
0 Kudos