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 maplibre 4 #481

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Upgrade to maplibre 4 #481

merged 1 commit into from
Feb 28, 2024

Conversation

dabreegster
Copy link
Contributor

Was waiting on a geocoder dependency to get support, but now we can do this. https://github.com/maplibre/maplibre-gl-js/blob/main/CHANGELOG.md lots of changes, most invisibly handled in svelte-maplibre already

}
},
);
async function clickCluster(e: CustomEvent<LayerClickInfo>) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

maplibre went through a major internal refactor to use promises instead of callbacks. Nicer APIs as a result :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the only place where it changes stuff for us? Wild that this refactor is happening now but looks good!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TS doesn't lie (much) :) I don't think the API changes were that bad anyway: dimfeld/svelte-maplibre#128

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean I guess it must be but it's surprising

@dabreegster dabreegster merged commit 47bb945 into main Feb 28, 2024
2 checks passed
@dabreegster dabreegster deleted the upgrade_maplibre branch February 28, 2024 10:22
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.

None yet

2 participants