Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New map #42

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
42a7c6f
Logo changes on the about page and footer
ryan-talus May 10, 2024
e0a116c
Simplify and hardcode footer message
ryan-talus May 10, 2024
d9f24cd
Try older node version
ryan-talus May 10, 2024
122c18c
16 should work
ryan-talus May 10, 2024
04cd3dd
Ah, I missed that the node version was set on a branch-by-branch basis
ryan-talus May 10, 2024
3deaf6f
Set full node version
ryan-talus May 10, 2024
e320f73
I should be able to set just the minor?
ryan-talus May 10, 2024
45230ae
Merge branch 'master' into dev
ryan-talus May 14, 2024
7deff5a
Adding blank policycoverage page with wide nav bar and no footer
ryan-talus May 16, 2024
2e2c80b
Add style changes in app.tsx to make it possible to display map fulls…
ryan-talus May 16, 2024
302e303
Removing old map, adding new map using the same nicoletalus style
ryan-talus May 16, 2024
42b45be
Adding world and US map, with switching between them
ryan-talus May 20, 2024
37d0267
Adding bounds from old map (adjusted for lack of a side bar); making …
ryan-talus May 21, 2024
2522bc4
State fill color and highlighting
ryan-talus May 21, 2024
794c340
Trailing comma
ryan-talus May 21, 2024
bb90644
refactor out the UsaMapLayer into a separate component
ryan-talus May 21, 2024
a609240
Rewriting filter simpler
ryan-talus May 21, 2024
5a26d51
This is throwing an error because it's rendering before the style whi…
ryan-talus May 21, 2024
0ac5f7e
Making world map component; all countries just one color for now
ryan-talus May 21, 2024
1bb74aa
How did a null sneak in here?
ryan-talus May 21, 2024
f44f6cc
Commenting out US States and territories which all have iso3 "USA" be…
ryan-talus May 21, 2024
8fc2f56
Real data on the map, fixing switching between maps
ryan-talus May 21, 2024
1e0ab77
Commenting out unused styles
ryan-talus May 21, 2024
932f53b
Cleaning up, fixing imports, fixing order
ryan-talus May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
working_directory: ~/repo

docker:
- image: cimg/node:lts
- image: cimg/node:16.20

steps:
- checkout
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
working_directory: ~/repo

docker:
- image: cimg/node:lts
- image: cimg/node:16.20

steps:
- checkout
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
working_directory: ~/repo

docker:
- image: cimg/node:lts
- image: cimg/node:16.20

steps:
- checkout
Expand Down
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"arrowParens": "avoid",
"tabWidth": 2,
"trailingComma": "es5",
}
"trailingComma": "es5"
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"d3": "^6.6.2",
"date-fns": "^2.12.0",
"env-cmd": "^10.1.0",
"mapbox-gl": "^3.3.0",
"moment": "^2.24.0",
"query-string": "^7.0.1",
"rc-align": "2.3.5",
Expand All @@ -34,7 +35,7 @@
"react-date-range": "^1.0.3",
"react-dom": "^16.8.6",
"react-helmet": "^6.1.0",
"react-map-gl": "^5.3.15",
"react-map-gl": "7",
"react-perfect-scrollbar": "^1.5.8",
"react-popper": "^1.3.4",
"react-router-dom": "^5.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/App.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@media not #{$phone} {
&.policymaps,
&.model,
&.policycoverage,
&.landing {
max-width: unset;
padding: unset;
Expand Down
36 changes: 28 additions & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Footer } from "./components/layout";
// views
import Data from "./components/views/data/Data";
import { DataPageType } from "components/views/data/types";
import Map from "./components/views/map/Map";
// import Map from "./components/views/map/Map";
import About from "./components/views/about/About.js";
import Contact from "./components/views/contact/Contact.js";
import PolicyModel from "./components/views/PolicyModel/PolicyModel/PolicyModel";
Expand All @@ -40,6 +40,7 @@ import { AmpPage } from "types";
import { Filters } from "components/common/MapboxMap/plugins/mapTypes";
import { BrowserProvider } from "components/misc/Util";
import MobileDisclaimer from "components/common/MobileDisclaimer/MobileDisclaimer";
import PolicyCoverage from "components/views/PolicyCoverage/PolicyCoverage";

//: React.FC
const App = () => {
Expand Down Expand Up @@ -208,19 +209,36 @@ const App = () => {
/>
}
{
// Map page
// // Map page
// <Route
// exact
// path="/policymaps"
// render={() => {
// return (
// <Map
// {...{
// versions,
// setPage,
// loading,
// setLoading,
// setInfoTooltipContent,
// }}
// />
// );
// }}
// />
}
{
// policy coverage page
<Route
exact
path="/policymaps"
path="/policycoverage"
render={() => {
return (
<Map
<PolicyCoverage
{...{
versions,
setPage,
loading,
setLoading,
setInfoTooltipContent,
}}
/>
);
Expand Down Expand Up @@ -311,7 +329,9 @@ const App = () => {
</Switch>
{!pageIsResponsive && <MobileDisclaimer />}
{(!pageIsResponsive ||
(page !== "policymaps" && page !== "landing")) && (
(page !== "policymaps" &&
page !== "landing" &&
page !== "policycoverage")) && (
<Footer {...{ page, versions }} />
)}
{
Expand Down
2 changes: 1 addition & 1 deletion src/api/queryTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export type VersionRecord = {
/**
* Last of map types for which the data are applicable.
*/
map_types: (MapId | "all")[];
// map_types: (MapId | "all")[];
};

export type OptionSetRecord = {
Expand Down
Binary file added src/assets/images/logo-georgetown-long.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/logo-georgetown-tall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/images/logo-georgetown.png
Binary file not shown.
Loading