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

Finish maplibre upgrade #5119

Merged
merged 3 commits into from
Nov 8, 2024
Merged

Finish maplibre upgrade #5119

merged 3 commits into from
Nov 8, 2024

Conversation

nabramow
Copy link
Member

@nabramow nabramow commented Nov 7, 2024

Closes #5106

Upgrading maplibre to the most recent stable version 4.7.1.

v3 had no breaking changes for us.

v4 had these breaking changes that were addressed:
Guide: https://github.com/maplibre/maplibre-gl-js/blob/main/CHANGELOG.md#400

Besides that, I:

  • Changed MapMouseEvent & { features: etc } to MapLayerMouseEvent as it's the same thing and shorter
  • Removed MaplibreEvent as it no longer exists in the package and I removed it from related types. It didn't seem to have any effect so assuming this got deprecated and they forgot to document it.

Web frontend checklist

  • [ x ] Formatted my code with yarn format
  • [ x ] There are no warnings from yarn lint --fix
  • [ x ] There are no console warnings when running the app
  • [ x ] All tests pass
  • [ x ] Clicked around my changes running locally and it works
  • [ x ] Checked Desktop, Mobile and Tablet screen sizes

Copy link

vercel bot commented Nov 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
couchers ✅ Ready (Inspect) Visit Preview Nov 7, 2024 5:57am

(
ev: MapMouseEvent & {
features?: Feature<Geometry, GeoJsonProperties>[] | undefined;
} & MaplibreEvent
) => {
(ev: MapLayerMouseEvent) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@aapeliv aapeliv left a comment

Choose a reason for hiding this comment

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

LGTM!

@nabramow nabramow merged commit 1843cb2 into develop Nov 8, 2024
3 checks passed
@nabramow nabramow deleted the web/upgrate-maplibre-more branch November 8, 2024 16:15
Copy link

sentry-io bot commented Nov 10, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: undefined is not an object (evaluating 'this.style.getImage') call(features/search/users) View Issue

Did you find this useful? React with a 👍 or 👎

@nabramow nabramow mentioned this pull request Nov 10, 2024
@bakeiro
Copy link
Contributor

bakeiro commented Nov 10, 2024

@nabramow error here after this PR
also, seems that doesn't move after search a location?

if (map.hasImage("user-pin")) return;

@nabramow
Copy link
Member Author

@nabramow error here after this PR also, seems that doesn't move after search a location?

if (map.hasImage("user-pin")) return;

Made a ticket to deal with it here #5152

@aapeliv aapeliv added the release notes: pending Add to stuff that should be included in release notes label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: pending Add to stuff that should be included in release notes
Development

Successfully merging this pull request may close these issues.

Update maplibre-gl to current version
3 participants