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

unsubscribing fitBoundsSubscription when necessary #1810

Merged
2 commits merged into from
Jul 16, 2020

Conversation

teotoplak
Copy link
Contributor

If the fitBounds are not automatically computed, unsubscription from existing fitBoundsSubscription should follow.

Fixing an edge case problem where if user was using automatic fitBounds calculation suddenly switches to fitBounds object (e.g. LngLatBoundsLiteral) and then provided fitBounds by user would be overwritten by the active subscription.

This is quick fix.

@teotoplak teotoplak changed the title fixing fitBoundsSubscription unsubscribtion fixing fitBoundsSubscription unsubscription Mar 25, 2020
@teotoplak teotoplak changed the title fixing fitBoundsSubscription unsubscription unsubscribing fitBoundsSubscription when necessary Mar 25, 2020
@codecov
Copy link

codecov bot commented Mar 25, 2020

Codecov Report

Merging #1810 into master will increase coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1810   +/-   ##
=======================================
  Coverage   47.97%   47.97%           
=======================================
  Files          47       47           
  Lines        1999     2001    +2     
  Branches      177      178    +1     
=======================================
+ Hits          959      960    +1     
- Misses       1036     1037    +1     
  Partials        4        4           
Impacted Files Coverage Δ
packages/core/directives/map.ts 71.95% <50.00%> (-0.24%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e38075...bca5fae. Read the comment docs.

@stale
Copy link

stale bot commented Jun 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 23, 2020
@stale stale bot closed this Jul 1, 2020
@ghost ghost reopened this Jul 3, 2020
@stale stale bot removed the stale label Jul 3, 2020
@ghost ghost merged commit ea471aa into sebholstein:master Jul 16, 2020
This pull request was closed.
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