-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add mock data for layers and soft stories #95
base: master
Are you sure you want to change the base?
Conversation
002714b
to
b994553
Compare
7c9fd84
to
999193d
Compare
999193d
to
9b0234c
Compare
import tsunamiData from "../../tsunami-11212024.json"; | ||
import softStoriesData from "../../soft-stories-11232024.json"; | ||
|
||
const typedSeismicData: FeatureCollection<Geometry> = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pulling in mock data
.addTo(map); | ||
|
||
softStories.forEach(({ lng, lat }) => { | ||
const el = document.createElement("div"); | ||
// Add sources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add data
data: typedSoftStoriesData, | ||
}); | ||
|
||
// Add layers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
render data
@@ -1,3 +1,4 @@ | |||
/* TODO: line up property values with ./theme.ts OR add automation that outputs design tokens for both CSS (SCSS?) and TS */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is just comment changes and autoformatting; can ignore
Looks good to me! However, I'm wondering if we should display the pin (Mapbox marker) before the user searches for an address. What do you think? |
You're right, the marker is just a mock one to match the original task. Once search is in, it'll def not show up until a search is done. |
Co-authored by: AdamFinkle <[email protected]>
Co-authored by: AdamFinkle <[email protected]>
… address marker dragging
2f910d1
to
b221269
Compare
WARNING: This PR depends on #88 being merged in first. Blocked by #88.Description
This PR introduces Mapbox layers for seismic and tsunami data. It also replaces Mapbox markers with a Mapbox layer for soft stories. This data should be considered unvetted mock data regardless of resemblance to final data. Its usage is intended as a tech demo until it is reviewed at a later date.
The method of integration is through direct imports for ease of use while using the "mock" or placeholder data. It will likely be grabbed from the back end and passed in through props in a future PR.
Type of changes
Testing
How to test
Run app locally.
Compare styling of layers and soft stories dots to Figma.
Here are some screenshots:
Here is the Figma for comparison:
https://www.figma.com/design/AGadwQcQH5kNn2D93TVOAC/Design?node-id=503-1542&t=GEGeRaMT0ZpP8Mk8-4
Please also refer to requirements in #92, also linked in the right panel under "Development".