Hello. I am newbie in the web app builder area. How can I apply a definition expression on a layer to draw only the features that meets the criteria. I looked into the layerInfos in the json file but I am not sure iof you can you use a definition expression. Thanks.
Solved! Go to Solution.
Thank you. I see how is done in the code. I was hoping to see a configuration file (perhaps json file)that you can define the layers that you use in the map and the definition expression to define which datasets to display. I am trying to migrate to JS from FLEX where you can do this in the configuration file.
I was working on this to make it a widget but I have been distracted for a few weeks.
Maybe Robert Scheitlin, GISP can help you.
Also look at some examples here: Web AppBuilder Developer Edition – Customization Resource List
Have you tried the Query Widget? I think you can filter a layer in Query Widget UI and also in the configuration json file.
Yes, That's correct. However, in my case where I have multiple layers is a lot easier to modify the definition expression in a configuration file rather than creating a map for each case.