Skip to content

Commit

Permalink
remove data files from examples (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress authored Jul 18, 2017
1 parent 9c87090 commit e12f025
Show file tree
Hide file tree
Showing 39 changed files with 91 additions and 240,822 deletions.
2 changes: 1 addition & 1 deletion examples/3d-heatmap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ npm start
```

### Data format
Sample data is stored in the `data` folder. To use your own data, checkout
Sample data is stored in [deck.gl Example Data](https://github.com/uber-common/deck.gl-data/tree/master/examples/3d-heatmap). To use your own data, checkout
the [documentation of HexagonLayer](../../docs/layers/hexagon-layer.md)
5 changes: 4 additions & 1 deletion examples/3d-heatmap/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import {csv as requestCsv} from 'd3-request';
// Set your mapbox token here
const MAPBOX_TOKEN = process.env.MapboxAccessToken; // eslint-disable-line

// Source data CSV
const DATA_URL = 'https://raw.githubusercontent.com/uber-common/deck.gl-data/master/examples/3d-heatmap/heatmap-data.csv'; // eslint-disable-line

class Root extends Component {

constructor(props) {
Expand All @@ -22,7 +25,7 @@ class Root extends Component {
data: null
};

requestCsv('./data/heatmap-data.csv', (error, response) => {
requestCsv(DATA_URL, (error, response) => {
if (!error) {
const data = response.map(d => ([Number(d.lng), Number(d.lat)]));
this.setState({data});
Expand Down
Loading

0 comments on commit e12f025

Please sign in to comment.