Skip to content

Commit

Permalink
updates deps, removes json styling
Browse files Browse the repository at this point in the history
  • Loading branch information
amuramoto committed Mar 15, 2022
1 parent 44fe56b commit efbc461
Show file tree
Hide file tree
Showing 12 changed files with 11,208 additions and 8,435 deletions.
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9,899 changes: 5,811 additions & 4,088 deletions solution/package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions solution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "0.1.0",
"license": "Apache-2.0",
"scripts": {
"start": "webpack-dev-server --progress --hot --open"
"start": "webpack serve --progress --hot --open"
},
"dependencies": {
"@deck.gl/core": "7.0.0",
"@deck.gl/google-maps": "^7.0.0",
"@deck.gl/layers": "^7.0.0",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.1"
"@deck.gl/core": "^8.7.0",
"@deck.gl/google-maps": "^8.7.0",
"@deck.gl/layers": "^8.7.0",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4"
}
}
3 changes: 1 addition & 2 deletions solution/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ function loadJSAPI() {
function initMap() {
const mapOptions = {
center: { lat: 40.75097, lng: -73.98765 },
zoom: 14,
styles: mapStyle
zoom: 14
};
const mapDiv = document.getElementById('map');
return new google.maps.Map(mapDiv, mapOptions);
Expand Down
226 changes: 0 additions & 226 deletions solution/src/styles/map-style.js

This file was deleted.

10 changes: 4 additions & 6 deletions solution/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ const CONFIG = {
app: './src/app.js'
},
devServer: {
contentBase: path.join(__dirname, 'src')
},
plugins: [
// Read google maps token from environment variable
new webpack.EnvironmentPlugin(['GoogleMapsAPIKey'])
]
static: {
directory: path.join(__dirname, 'src'),
}
}
};

module.exports = CONFIG;
Loading

0 comments on commit efbc461

Please sign in to comment.