AnsweredAssumed Answered

display only one type of a feature Layer

Question asked by Sara_EL_MALKI on Jun 12, 2017
Latest reply on Jun 12, 2017 by rscheitlin

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 :

featureLayer9 = new FeatureLayer(url+"9", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
id:"troncon",
visible:true,
types:{"Name":"Normale"}
});

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 ?

 types of a feature layer

Thomas Solow Robert Scheitlin, GISP Rebecca Strauch, GISP

ArcGIS Enterprise

Outcomes