Skip to content
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

Upgrade to react-map-gl@7 #366

Merged
merged 1 commit into from
Feb 25, 2024
Merged

Conversation

gkovats
Copy link
Collaborator

@gkovats gkovats commented Feb 25, 2024

For issue #306 : Upgrade react-map-gl

Some component props changed. Updated according to docs:
https://visgl.github.io/react-map-gl/docs/api-reference/map

  • Updated the webpack.mix.js file to force 1 output js / no code splitting
  • Markers are pixels close to original, used Google maps for comparison and they look good zoomed far out and at they approach. Still, worth validation.
  • Popup positioning is odd, won't flip around an offset. Example:
    image

top, it's close to original, but when flipped to below, it drops offset distance from marker point.
image

They only have so many props, tried them all, this was as far as I got. Seems usable, but irksome.

Some component props changed
Popup positioning is odd, won't flip around an offset.
Copy link

netlify bot commented Feb 25, 2024

Deploy Preview for tsml-ui ready!

Name Link
🔨 Latest commit 30ce0d2
🔍 Latest deploy log https://app.netlify.com/sites/tsml-ui/deploys/65da95fb90bcf400081bf59c
😎 Deploy Preview https://deploy-preview-366--tsml-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

maxChunks: 1,
}),
],
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE

Copy link
Contributor

@joshreisner joshreisner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work, thank you @gkovats ! looks like the bundle size dropped a little too. looks like it's down to 1.36 MiB (from 1.45 MiB)

@joshreisner
Copy link
Contributor

good observation about the popup positions, but nbd. i'm confident we'll fix it in time

@joshreisner joshreisner merged commit 3765bf5 into main Feb 25, 2024
5 of 6 checks passed
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.

2 participants