Skip to content

Commit c5bd5a6

Browse files
authored
Update map styles to covid-nasa Mapbox account (#728)
* Update map styles to covid-nasa Mapbox account * Lint code * Fix test
1 parent 2614568 commit c5bd5a6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/components/__tests__/map.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe("Map", () => {
3838
expect(mapbox.Map).toHaveBeenCalledWith({
3939
container,
4040
cooperativeGestures: false,
41-
style: `mapbox://styles/mapbox/satellite-streets-v11/`,
41+
style: `mapbox://styles/covid-nasa/cm7etyf7t003s01qpfq8kec7y`,
4242
zoom: 1,
4343
center: [0, 0],
4444
})

src/components/explore/explore-map.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ const ExploreMap = ({ allData, filteredData, setGeoFilter, aoi, setAoi }) => {
7575

7676
// Render the Map component along with its children
7777
return (
78-
<Map height={500} basemap="mapbox://styles/mapbox/light-v10">
78+
<Map
79+
height={500}
80+
basemap="mapbox://styles/covid-nasa/cm7eu3e5e002601qmc8i46na8"
81+
>
7982
<AoiControl
8083
isDrawing={isDrawing}
8184
setIsDrawing={setIsDrawing}

src/components/map/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function Map({ height, basemap, children, showControls }) {
1212
mapbox.accessToken = process.env.GATSBY_MAPBOX_TOKEN
1313
const m = new mapbox.Map({
1414
container: containerRef.current,
15-
style: basemap || "mapbox://styles/mapbox/satellite-streets-v11/",
15+
style: basemap || "mapbox://styles/covid-nasa/cm7etyf7t003s01qpfq8kec7y",
1616
zoom: 1,
1717
center: [0, 0],
1818
cooperativeGestures: showControls ? true : false,

0 commit comments

Comments
 (0)