Hi guys, I have a feature layer with two types, by default all the types are displayed,
I am planning to add a checkbox list to check or uncheck the type displayed, I have found the property "types" in featureLayers, and I have tried to use it like that :
but it didn't work, all I wanna is the ability to extract the type of every single row in a feature layer, Can you help me ?
Thomas Solow Robert Scheitlin, GISP Rebecca Strauch, GISP
Solved! Go to Solution.
Sara,
The Types property is not part of the FeatureLayer constructor so it can not be used in the manner you are attempting. Your best best is to use setDefinitionExpression with a SQL statement that will return only feature included in your type.
Sara,
The Types property is not part of the FeatureLayer constructor so it can not be used in the manner you are attempting. Your best best is to use setDefinitionExpression with a SQL statement that will return only feature included in your type.