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

Return subscription for on method #5080

Merged
merged 4 commits into from
Nov 20, 2024
Merged

Return subscription for on method #5080

merged 4 commits into from
Nov 20, 2024

Conversation

HarelM
Copy link
Collaborator

@HarelM HarelM commented Nov 20, 2024

This changes the return value of on method from being chainable to something that returns a subscription that allows to unsubscribe easily.

  • Confirm your changes do not include backports from Mapbox projects (unless with compliant license) - if you are not sure about this, please ask!
  • Briefly describe the changes in this PR.
  • Write tests for all new functionality.
  • Document any changes to public APIs.
  • Add an entry to CHANGELOG.md under the ## main section.

@HarelM HarelM mentioned this pull request Nov 20, 2024
15 tasks
Copy link
Member

@birkskyum birkskyum left a comment

Choose a reason for hiding this comment

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

Great idea

@HarelM
Copy link
Collaborator Author

HarelM commented Nov 20, 2024

I also replaced a lot of the "done" in the tests, still like 150 to go, but I'm slowly removing them...

@HarelM HarelM enabled auto-merge (squash) November 20, 2024 15:39
@HarelM HarelM merged commit c46a804 into main Nov 20, 2024
16 of 17 checks passed
@HarelM HarelM deleted the return-subscription branch November 20, 2024 15:43
themustafaomar added a commit to themustafaomar/libregl that referenced this pull request Jan 3, 2025
themustafaomar added a commit to themustafaomar/libregl that referenced this pull request Jan 4, 2025
## Update MapLibre to v5, for more information please visist https://github.com/maplibre/maplibre-gl-js/releases/tag/v5.0.0

* refactor: move WebGL context options to canvasContextAttributes

* refactor: leverage unsubscribe method to unsubscribe events

Leverage the new method unsubscribe method by maplibre/maplibre-gl-js#5080

* feat(controls): add globe control

Add the GlobeControl control by maplibre/maplibre-gl-js#4960

* fix: remove the hard coded position at globe control

* feat: add elevation and centerClampedToGround props

* chore: update maplibre-gl to v5

* chore(playground): add controls example

* build: update pnpm lock
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