Skip to content

Commit

Permalink
clean up examples (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Jan 2, 2020
1 parent 439e7ec commit 1e391ce
Show file tree
Hide file tree
Showing 31 changed files with 100 additions and 1,918 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
274 changes: 0 additions & 274 deletions examples/data/routes-example.json

This file was deleted.

4 changes: 0 additions & 4 deletions examples/draw-polygon/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ const config = {
app: resolve('./src/app.js')
},

devServer: {
contentBase: [resolve(__dirname), resolve(__dirname, './static')]
},

output: {
library: 'App'
},
Expand Down
11 changes: 7 additions & 4 deletions examples/geojson/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ export default class App extends Component {
};

componentDidMount() {
requestJson('data/us-income.geojson', (error, response) => {
if (!error) {
this._loadData(response);
requestJson(
'https://raw.githubusercontent.com/uber/react-map-gl/master/examples/.data/us-income.geojson',
(error, response) => {
if (!error) {
this._loadData(response);
}
}
});
);
}

_loadData = data => {
Expand Down
4 changes: 0 additions & 4 deletions examples/geojson/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ const config = {
library: 'App'
},

devServer: {
contentBase: [__dirname, resolve(__dirname, '../')]
},

module: {
rules: [
{
Expand Down
4 changes: 0 additions & 4 deletions examples/heatmap/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ const config = {
library: 'App'
},

devServer: {
contentBase: [__dirname, resolve(__dirname, '../')]
},

module: {
rules: [
{
Expand Down
2 changes: 0 additions & 2 deletions examples/main/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions examples/main/alphaify.js

This file was deleted.

Loading

0 comments on commit 1e391ce

Please sign in to comment.