-
Notifications
You must be signed in to change notification settings - Fork 57
Upgrade maplibre and react-map-gl #1452
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
base: dev
Are you sure you want to change the base?
Conversation
This reverts commit 341a7ff.
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.
Looks really good! Just a couple questions probably more for my sake. I know this was tricky work, thank you so much for taking the time to upgrade!
@@ -210,7 +211,8 @@ function NearbyView({ | |||
}, [location, setHighlightedLocation]) | |||
|
|||
useEffect(() => { | |||
const moveListener = (e: mapboxgl.EventData) => { | |||
const moveListener = (e: ViewStateChangeEvent) => { | |||
// @ts-expect-error TODO: What is this condition supposed to capture? |
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.
Can you explain how the ts error could be solved by answering this question?
// onMouseLeave is throttled because of a bug on Firefox where | ||
// two mouseleave events are triggered when moving cursor quickly from one card to the next. | ||
const onMouseLeave = useCallback( | ||
throttle( |
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.
Any concerns with increasing bundle size for this? It looks like a very small package, just curious if you looked at any other solutions
Description
This PR upgrades maplibre and react-map-gl by way of new OTP-UI packages that use those updated libraries.
There shouldn't be any visual changes on non-map content.
PR Checklist