Skip to content

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

Open
wants to merge 27 commits into
base: dev
Choose a base branch
from
Open

Upgrade maplibre and react-map-gl #1452

wants to merge 27 commits into from

Conversation

binh-dam-ibigroup
Copy link
Collaborator

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

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

binh-dam-ibigroup and others added 27 commits July 8, 2025 09:43
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup left a 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?
Copy link
Contributor

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(
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants