Skip to content

Commit efbc461

Browse files
committed
updates deps, removes json styling
1 parent 44fe56b commit efbc461

File tree

12 files changed

+11208
-8435
lines changed

12 files changed

+11208
-8435
lines changed

screenshot.png

8.29 MB
Loading

solution/package-lock.json

Lines changed: 5811 additions & 4088 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

solution/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"version": "0.1.0",
44
"license": "Apache-2.0",
55
"scripts": {
6-
"start": "webpack-dev-server --progress --hot --open"
6+
"start": "webpack serve --progress --hot --open"
77
},
88
"dependencies": {
9-
"@deck.gl/core": "7.0.0",
10-
"@deck.gl/google-maps": "^7.0.0",
11-
"@deck.gl/layers": "^7.0.0",
12-
"webpack": "^4.20.2",
13-
"webpack-cli": "^3.1.2",
14-
"webpack-dev-server": "^3.1.1"
9+
"@deck.gl/core": "^8.7.0",
10+
"@deck.gl/google-maps": "^8.7.0",
11+
"@deck.gl/layers": "^8.7.0",
12+
"webpack": "^5.70.0",
13+
"webpack-cli": "^4.9.2",
14+
"webpack-dev-server": "^4.7.4"
1515
}
1616
}

solution/src/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ function loadJSAPI() {
5656
function initMap() {
5757
const mapOptions = {
5858
center: { lat: 40.75097, lng: -73.98765 },
59-
zoom: 14,
60-
styles: mapStyle
59+
zoom: 14
6160
};
6261
const mapDiv = document.getElementById('map');
6362
return new google.maps.Map(mapDiv, mapOptions);

solution/src/styles/map-style.js

Lines changed: 0 additions & 226 deletions
This file was deleted.

solution/webpack.config.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ const CONFIG = {
2424
app: './src/app.js'
2525
},
2626
devServer: {
27-
contentBase: path.join(__dirname, 'src')
28-
},
29-
plugins: [
30-
// Read google maps token from environment variable
31-
new webpack.EnvironmentPlugin(['GoogleMapsAPIKey'])
32-
]
27+
static: {
28+
directory: path.join(__dirname, 'src'),
29+
}
30+
}
3331
};
3432

3533
module.exports = CONFIG;

0 commit comments

Comments
 (0)