-
Notifications
You must be signed in to change notification settings - Fork 34
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
Show basic wind points on the map #1373
Conversation
…m:WFP-VAM/prism-app into feat/handle-multiple-AA-layers-and-panels
4a73e77
to
c3f8ce2
Compare
c3f8ce2
to
4732586
Compare
4732586
to
5700119
Compare
frontend/public/images/anticipatory-action-storm/very-intensive-tropical-cycloone.png
Outdated
Show resolved
Hide resolved
frontend/src/components/MapView/Layers/AnticipatoryActionStormLayer/AAStormDatePopup/index.tsx
Outdated
Show resolved
Hide resolved
Great start. I would recommend adding a few more comments throughout the code to explicit some of the business logic |
Build succeeded and deployed at https://prism-1373.surge.sh |
…AM/prism-app into feat/show-wind-points-on-map-2
- fix date formating - relocalize feature types to a dedicated file - use useMapCallback instead of the mapRef
…-VAM/prism-app into feat/show-wind-points-on-map
add lines between wind points --------- Co-authored-by: Maxime Chaillet <[email protected]>
…AM/prism-app into feat/show-wind-points-on-map-2
@@ -0,0 +1,40 @@ | |||
import { isSameDay, parseJSON, format, addHours } from 'date-fns'; |
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.
Let's wait a bit but I don't think we need all these functions
All times will eventually be in UTC as Amine mentioned so we can simply use the existing getTimeInMilliseconds
and then update the getFormattedDate
in date-utils
component: ComponentType<{ layer: DiscriminateUnion<U, 'type', T> }>; | ||
component: ComponentType<{ | ||
layer: DiscriminateUnion<U, 'type', T>; | ||
mapRef: MapRef; |
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.
👣
Merged via #1401 |
Description
Show wind points on the map
How to test the feature:
Checklist - did you ...
Test your changes with
REACT_APP_COUNTRY=rbd yarn start
REACT_APP_COUNTRY=cambodia yarn start
REACT_APP_COUNTRY=mozambique yarn start
Screenshot/video of feature: