terriajs
terriajs copied to clipboard
Experiment: Add table column filtering selectable dimensions
What this PR does
- https://github.com/TerriaJS/terriajs/issues/1407
- https://github.com/TerriaJS/terriajs/issues/1196
This is a description of what I've done in this PR, especially explaining choices made to make the reviewer's job easier. If I don't replace this paragraph with an actual description, my PR will probably be ignored.
Test me
How should reviewers test this? (Hint: If you want to provide a test catalog item, create a Gist of its catalog JSON, add its url and your branch name to this url: http://ci.terria.io/<branch name>/#clean&<raw url of your gist>
, and then paste that in the body of this PR)
Checklist
- [ ] There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
- [ ] I've updated relevant documentation in
doc/
. - [ ] I've updated CHANGES.md with what I changed.
- [ ] I've provided instructions in the PR description on how to test this PR.
3 Aug 22
- write use stories - ana to set up a chat
@philipgrimmett we will help in designing this filter for CSV specific details are here: https://github.com/terriajs/vic-digital-twin/issues/369
Update 12 Oc 22- Ana to set up chat with Phil and Nick
Test link with filtering
http://ci.terria.io/col-filtering/#start=%7B%22version%22%3A%228.0.0%22%2C%22initSources%22%3A%5B%7B%22stratum%22%3A%22user%22%2C%22models%22%3A%7B%22DL4Av6wY5h%22%3A%7B%22columns%22%3A%5B%7B%22name%22%3A%22status%22%2C%22filter%22%3A%7B%22enable%22%3Atrue%2C%22values%22%3A%5B%22CURRENT%22%5D%7D%7D%5D%2C%22defaultColumn%22%3A%7B%22filter%22%3A%7B%22enable%22%3Afalse%2C%22allowMultipleValues%22%3Afalse%7D%7D%2C%22styles%22%3A%5B%7B%22id%22%3A%22type%22%2C%22color%22%3A%7B%22colorPalette%22%3A%22HighContrast%22%7D%2C%22hidden%22%3Afalse%7D%2C%7B%22id%22%3A%22status%22%2C%22color%22%3A%7B%22colorPalette%22%3A%22HighContrast%22%7D%2C%22hidden%22%3Afalse%7D%2C%7B%22id%22%3A%22material%22%2C%22color%22%3A%7B%22colorPalette%22%3A%22HighContrast%22%7D%2C%22hidden%22%3Afalse%7D%2C%7B%22id%22%3A%22number_of_%22%2C%22color%22%3A%7B%22colorPalette%22%3A%22Reds%22%7D%2C%22hidden%22%3Afalse%7D%5D%2C%22activeStyle%22%3A%22number_of_%22%2C%22knownContainerUniqueIds%22%3A%5B%22%2F%22%5D%2C%22type%22%3A%22geojson%22%7D%2C%22%2F%2FCSV%22%3A%7B%22isOpen%22%3Atrue%2C%22knownContainerUniqueIds%22%3A%5B%22%2F%22%5D%2C%22type%22%3A%22group%22%7D%2C%22cJiWroyAzU%22%3A%7B%22currentTime%22%3A%222009-03-05T13%3A00%3A00.000000000Z%22%2C%22startTime%22%3A%222009-03-05T13%3A00%3A00.000000000Z%22%2C%22stopTime%22%3A%222014-12-29T13%3A00%3A00.000000000Z%22%2C%22multiplier%22%3A73147.41075697211%2C%22isPaused%22%3Atrue%2C%22columns%22%3A%5B%7B%22name%22%3A%22Longitude%22%2C%22filter%22%3A%7B%22values%22%3A%5B%5D%7D%7D%5D%2C%22defaultColumn%22%3A%7B%22filter%22%3A%7B%22enable%22%3Atrue%2C%22allowMultipleValues%22%3Atrue%7D%7D%2C%22defaultStyle%22%3A%7B%22time%22%3A%7B%22timeColumn%22%3Anull%7D%7D%2C%22showDisableTimeOption%22%3Atrue%2C%22knownContainerUniqueIds%22%3A%5B%22%2F%2FCSV%22%5D%2C%22type%22%3A%22csv%22%7D%2C%22vliQsF%22%3A%7B%22isOpen%22%3Afalse%2C%22knownContainerUniqueIds%22%3A%5B%22%2F%2FCSV%22%5D%2C%22type%22%3A%22group%22%7D%2C%22%2F%22%3A%7B%22type%22%3A%22group%22%7D%7D%2C%22workbench%22%3A%5B%22DL4Av6wY5h%22%5D%2C%22timeline%22%3A%5B%22DL4Av6wY5h%22%5D%2C%22initialCamera%22%3A%7B%22west%22%3A153.1549544534144%2C%22south%22%3A-28.27008560064393%2C%22east%22%3A153.9484199932711%2C%22north%22%3A-27.777624727914873%2C%22position%22%3A%7B%22x%22%3A-5097988.730679395%2C%22y%22%3A2536023.8155692085%2C%22z%22%3A-3010629.1440611333%7D%2C%22direction%22%3A%7B%22x%22%3A0.7899637459108421%2C%22y%22%3A-0.3929720089434525%2C%22z%22%3A0.4706700333922456%7D%2C%22up%22%3A%7B%22x%22%3A-0.42140806877687165%2C%22y%22%3A0.20963186757552396%2C%22z%22%3A0.8823093106538917%7D%7D%2C%22homeCamera%22%3A%7B%22west%22%3A109%2C%22south%22%3A-45%2C%22east%22%3A158%2C%22north%22%3A-8%7D%2C%22viewerMode%22%3A%223dSmooth%22%2C%22showSplitter%22%3Afalse%2C%22splitPosition%22%3A0.4999%2C%22settings%22%3A%7B%22baseMaximumScreenSpaceError%22%3A2%2C%22useNativeResolution%22%3Afalse%2C%22alwaysShowTimeline%22%3Afalse%2C%22baseMapId%22%3A%22basemap-positron%22%2C%22terrainSplitDirection%22%3A0%2C%22depthTestAgainstTerrainEnabled%22%3Afalse%7D%2C%22stories%22%3A%5B%5D%7D%5D%7D