Hello All,
I'm working to develop a javascript/html application and would like to understand how to subset features displayed from a feature service defined by an sql query. Can anyone help with resources to accomplish this?
Specifically, we would like a user input to define a where clause that then displays a map window with only the features that satisfy that where clause. Any examples of how to set up a where clause client side would be helpful!
Thanks in advance,
Mike
Solved! Go to Solution.
Robert,
Thanks for the resources. Further digging had me come across the .setDefinitionExpression() method. That seems to be the solution that works best and easiest for what I'm trying. Thanks for putting down that path.
Enjoy the day,
Mike
Michael,
Your desired end result would be a combination of a couple of the JS API Samples.
There is not a sample that does exactly what you are looking for so your will have to grab necessary parts of both samples.
Robert,
Thanks for the resources. Further digging had me come across the .setDefinitionExpression() method. That seems to be the solution that works best and easiest for what I'm trying. Thanks for putting down that path.
Enjoy the day,
Mike