Hello all,
I am new to ESRI as well as JavaScript.
I am currently trying to develop a custom widget that takes attributes of a field within a FeatureLayer and gives you the option to filter between them. So the structure would be this:
---- [FeatureLayer]
------ [FIELD]
---------- [ATTRIBUTES: x,y,z,...,]
With the widget then giving you the ability to input a FeatureLayer, a specific FIELD within the FeatureLayer and which ATTRIBUTES within that FIELD you would like to filter and outputting a drop down menu on the map as a selector.
Code wise I have this:
[FILE] main.ts