Skip to content

Commit

Permalink
Merge pull request #765 from cfpb/map-style-updates
Browse files Browse the repository at this point in the history
Update popup styling to be more clear
  • Loading branch information
meissadia authored Dec 3, 2020
2 parents 0c8a437 + 64abe32 commit b0bae3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/data-browser/maps/MapsGraphs.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
margin: 0;
}

.mapboxgl-ctrl-logo {
display: none !important;
}

.legend {
position: absolute;
bottom: 20px;
Expand Down
2 changes: 1 addition & 1 deletion src/data-browser/maps/popupUtils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const popup = new mapbox.Popup({
})

function buildPopupHTML(geography, feature, origPer1000){
return '<h4>' + feature + ' - ' + getFeatureName(geography, feature) + (origPer1000 !== undefined ? ` - ${origPer1000}` : '') + '</h4>'
return '<h4>' + getFeatureName(geography, feature) + (origPer1000 !== undefined ? ` - ${origPer1000} per 1000 people` : '') + '</h4>'
}

function getFeatureName(geography, feature){
Expand Down

0 comments on commit b0bae3f

Please sign in to comment.