Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

unsubscribing fitBoundsSubscription when necessary#1810

Merged
2 commits merged into
sebholstein:masterfrom
teotoplak:patch-1
Jul 16, 2020
Merged

unsubscribing fitBoundsSubscription when necessary#1810
2 commits merged into
sebholstein:masterfrom
teotoplak:patch-1

Conversation

@teotoplak

Copy link
Copy Markdown
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

codecov Bot commented Mar 25, 2020

Copy link
Copy Markdown

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

stale Bot commented Jun 23, 2020

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants