j40-cejst-2/client/src
Vim USDS 38ab640f4e Attempt to add map bounds
- Basic animation (standard ball bounce) was placed on the parent of the map
- A state MapBoundReached tracks which bound (N, S, W or E) was reached
- This state variable was then used to conditionally apply the CSS animation

- How could we detect the end of the animation to remove it from the DOM after the animation played once?
- try and add an eventListener on the parent of the map using ref and useEffect 
- try and use the onAnimationEnd prop
the territory shortcuts seem to trigger this animationEnd event 
- try and differentiate between territory shortcut animation and map bound animation using
use isPanning 
- use isDragging 

- Now that the animation end event is being detected properly and its not interfering with the territory shortcuts, moving back to
- Getting the bounds to work for all directions (N, S, W, E)
- clunky feel and can’t get it to trigger accurately
- Making the animation feel real (right not it’s just a random bounce)

- Decided to attempt to use the transition built-into the ReactMapGL API, this was also not leading to reliable results.
2022-09-19 18:27:36 -07:00
..
components Attempt to add map bounds 2022-09-19 18:27:36 -07:00
contexts Adds dataset cards to Methodology page (#442) 2021-08-02 08:49:49 -07:00
data Attempt to add map bounds 2022-09-19 18:27:36 -07:00
images 1.0 side panel indicator designs (#1896) 2022-09-15 11:28:50 -07:00
intl Fix wrapping on logo title 2022-09-16 13:37:23 -07:00
pages Fix wrapping on logo title 2022-09-16 13:37:23 -07:00
styles 1.0 side panel indicator designs (#1896) 2022-09-15 11:28:50 -07:00
test fix #249 header 2 (#425) 2021-08-02 07:48:19 -07:00