Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "unique values" #11

Open
jpeterson opened this issue Nov 29, 2018 · 0 comments
Open

Support "unique values" #11

jpeterson opened this issue Nov 29, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@jpeterson
Copy link
Owner

jpeterson commented Nov 29, 2018

Support displaying unique values for non-domain fields.

ValueTypeChooser has already been started for this purpose, but isn't fully implemented.

props.selectedValueType can be supplied as 'value' or 'unique' to change the value input being displayed.

Screenshot from ArcGIS Online

image

Sample query to get unique values (with count for each, for ordering):

https://services1.arcgis.com/BteRGjYsGtVEXzaX/arcgis/rest/services/LA_Bay_2017/FeatureServer/0/query?f=json&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=*&groupByFieldsForStatistics=lat&outStatistics=%5B%7B%22statisticType%22%3A%22count%22%2C%22onStatisticField%22%3A%22lat%22%2C%22outStatisticFieldName%22%3A%22countOFlat%22%7D%5D&outSR=102100

@jpeterson jpeterson added the enhancement New feature or request label Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant