Giter Site home page Giter Site logo

arcgis-filter's People

Contributors

codylawson avatar jpeterson avatar jwasilgeo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

r-watkins

arcgis-filter's Issues

Support relative date filters

Support filters like the following:

startDate is in the last 1 day

startDate BETWEEN CURRENT_TIMESTAMP - 1 AND CURRENT_TIMESTAMP

Support IN statements

Support filters like the following:

First Name is one of the following: Josh, Jake, Joe.

FirstName IN ('Josh', 'Jake', 'Joe')

Allow filter to be pre-populated via props

In order to support a workflow where users persist their filter outside of this component and need to be able to reopen the component with the same filter options applied, it needs to support a prop that can hydrate all the various components.

Support nested Sets

Sets are only supported one level deep. More complex queries would be possible if it were possible to nest sets within sets.

Support BETWEEN date filters

Support filters like the following:

startDate is between 5/15/18 and 5/20/18

ContainmentDateTime BETWEEN '2018-05-15 06:00:00' AND '2018-05-21 05:59:59'

image

Dates are initially "Invalid Date"

When first picking a date field, the sql string reports the date as "Invalid Date" - it should instead default to the same as the default date in the form control.

Support "unique values"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.