Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mbforr committed Sep 10, 2018
1 parent 06c543f commit ade2ec5
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 44 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@carto/airship": "^1.0.0-alpha.14",
"@carto/airship-icons": "^1.0.0-alpha-27.0",
"@carto/airship-style": "1.0.0-alpha.37",
"@carto/carto.js": "^4.0.8",
"@carto/carto.js": "^4.1.6",
"axios": "^0.18.0",
"babel-cli": "6.24.1",
"babel-core": "6.25.0",
Expand Down
24 changes: 12 additions & 12 deletions public/dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/bundle.js.map

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions src/actions/mapsettings.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/RightBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RightBar extends Component {
operation={carto.operation.SUM}
operationColumn='total_damage'
/>

<Histogram />
</div>
)
Expand Down
8 changes: 6 additions & 2 deletions src/components/widgets/Histogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ class Histogram extends Component {
const filter = new carto.filter.Range('rr_employees_injured', { between: { min, max } });
this.props.layers.railaccidents.source.addFilter(filter);
this.setState({ filter: filter });
console.log('CREATE!!!!', filter._filters.between)
console.log('CREATE!!!!', filter._filters.between) //CHECK HERE CHECK HERE CHECK HERE

}

updateFilter() {
//console.log(this.state.layers.railaccidents.source._appliedFilters._filters)
const { range, filter } = this.state
const min = range[0]
const max = range[1]
console.log('UPDATE!!!!', filter._filters.between, this.state.filter._filters.between, this.state.range)
console.log('UPDATE!!!!', filter._filters.between, this.state.filter._filters.between, this.state.range) //CHECK HERE CHECK HERE CHECK HERE
filter.setFilters({ between: { min, max } });
}

Expand Down Expand Up @@ -105,9 +106,12 @@ class Histogram extends Component {
}




render() {
const { data } = this.state;


return (
<as-histogram-widget
ref={node => { this.widget = node; }}
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
react-day-picker "^7.1.4"
react-emotion "^9.0.1"

"@carto/carto.js@^4.0.8":
version "4.1.3"
resolved "https://registry.yarnpkg.com/@carto/carto.js/-/carto.js-4.1.3.tgz#26aecb1dac88e27987d1a81c2f6d48c34cd920a9"
"@carto/carto.js@^4.1.6":
version "4.1.6"
resolved "https://registry.yarnpkg.com/@carto/carto.js/-/carto.js-4.1.6.tgz#b1b5c5b8fd42b6f1b1a1a874c31b5455fb082c93"
dependencies:
"@carto/zera" "1.0.7"
backbone "1.2.3"
Expand Down

0 comments on commit ade2ec5

Please sign in to comment.