Make the no-labels base map the default base map

This commit is contained in:
Vim USDS 2022-10-24 19:27:31 -07:00
parent 9ddf7c3ec8
commit 99761e46d0
2 changed files with 71 additions and 13 deletions

View file

@ -306,6 +306,7 @@ const J40Map = ({location}: IJ40Interface) => {
const mapBoxBaseLayer = {
customColorsWithUpdatedTribal: `mapbox://styles/justice40/cl9g30qh7000p15l9cp1ftw16`,
streetsWithUpdatedTribal: `mapbox://styles/justice40/cl98rlidr002c14obpsvz6zzs`,
j40Streets: `mapbox://styles/justice40/cl5mp95tu000k14lpl21spgny`,
};
@ -348,7 +349,7 @@ const J40Map = ({location}: IJ40Interface) => {
// http://visgl.github.io/react-map-gl/docs/api-reference/interactive-map#map-state
{...viewport}
mapStyle={process.env.MAPBOX_STYLES_READ_TOKEN ?
mapBoxBaseLayer.customColorsWithUpdatedTribal : getOSBaseMap()}
mapBoxBaseLayer.j40Streets : getOSBaseMap()}
width="100%"
// Ajusting this height with a conditional statement will not render the map on staging.
// The reason for this issue is unknown. Consider styling the parent container via SASS.
@ -367,6 +368,7 @@ const J40Map = ({location}: IJ40Interface) => {
[
constants.HIGH_ZOOM_LAYER_ID,
constants.PRIORITIZED_HIGH_ZOOM_LAYER_ID,
constants.LOW_ZOOM_LAYER_ID,
]
}

View file

@ -307,22 +307,78 @@
"defaultMessage": "Version {version} file formats",
"description": "Navigate to the download page. This is first download file link"
},
"download.page.release.update.SECTION1": {
"defaultMessage": "New & improved",
"description": "Navigate to the download page. This is first section of the release update SECTION1"
},
"download.page.release.update.SECTION1_B1": {
"defaultMessage": "Added Federally Recognized Tribal Lands and Alaska Native Villages data from the Bureau of Indian Affairs at the Department of the Interior to the tool and map",
"description": "Navigate to the download page. This is SECTION1_B1"
},
"download.page.release.update.SECTION1_B2": {
"defaultMessage": "Added new data for indicators of burden",
"description": "Navigate to the download page. This is SECTION1_B2"
},
"download.page.release.update.SECTION1_B2_1": {
"defaultMessage": "Climate change",
"description": "Navigate to the download page. This is SECTION1_B2_1"
},
"download.page.release.update.SECTION1_B2_1_1": {
"defaultMessage": "Projected flood risk",
"description": "Navigate to the download page. This is SECTION1_B2_1_1"
},
"download.page.release.update.SECTION1_B2_1_2": {
"defaultMessage": "Projected wildfire risk",
"description": "Navigate to the download page. This is SECTION1_B2_1_2"
},
"download.page.release.update.SECTION1_B2_2": {
"defaultMessage": "Housing",
"description": "Navigate to the download page. This is SECTION1_B2_2"
},
"download.page.release.update.SECTION1_B2_2_1": {
"defaultMessage": "Lack of plumbing",
"description": "Navigate to the download page. This is SECTION1_B2_2_1"
},
"download.page.release.update.SECTION1_B2_2_2": {
"defaultMessage": "Lack of green space",
"description": "Navigate to the download page. This is SECTION1_B2_2_2"
},
"download.page.release.update.SECTION1_B2_2_3": {
"defaultMessage": "Historic underinvestment (due to redlining)",
"description": "Navigate to the download page. This is SECTION1_B2_2_3"
},
"download.page.release.update.SECTION1_B2_3": {
"defaultMessage": "Legacy pollution",
"description": "Navigate to the download page. This is SECTION1_B2_3"
},
"download.page.release.update.SECTION1_B2_3_1": {
"defaultMessage": "Abandoned mine lands",
"description": "Navigate to the download page. This is SECTION1_B2_3_1"
},
"download.page.release.update.SECTION1_B2_3_2": {
"defaultMessage": "Formerly used defense sites",
"description": "Navigate to the download page. This is SECTION1_B2_3_2"
},
"download.page.release.update.SECTION1_B2_4": {
"defaultMessage": "Transportation",
"description": "Navigate to the download page. This is SECTION1_B2_4"
},
"download.page.release.update.SECTION1_B2_4_1": {
"defaultMessage": "Transportation barriers",
"description": "Navigate to the download page. This is SECTION1_B2_4_1"
},
"download.page.release.update.SECTION1_B2_5": {
"defaultMessage": "Water",
"description": "Navigate to the download page. This is SECTION1_B2_5"
},
"download.page.release.update.SECTION1_B2_5_1": {
"defaultMessage": "Leaking underground storage tanks",
"description": "Navigate to the download page. This is SECTION1_B2_5_1"
},
"download.page.release.update.footer": {
"defaultMessage": "release version {version}",
"description": "Navigate to the download page. This is second section of the release update section"
},
"download.page.release.update.section.1": {
"defaultMessage": "New & improved",
"description": "Navigate to the download page. This is first section of the release update section"
},
"download.page.release.update.section.1.p.1": {
"defaultMessage": "Updates to the methodology based on feedback recieved during the beta period.",
"description": "Navigate to the download page. This is first section of the release update section"
},
"download.page.release.update.section.1.p.1.1": {
"defaultMessage": "Additional data sources now available for Puerto Rico. Linguistic isolation as removed from the methodology for Puerto Rico.",
"description": "Navigate to the download page. This is first section of the release update section"
},
"download.page.release.update.section.2": {
"defaultMessage": "Fixes",
"description": "Navigate to the download page. This is second section of the release update section"