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

feat(FitBounds): add fitBounds to agm-polyline-point #1720

Merged
3 commits merged into from
Sep 16, 2019
Merged

feat(FitBounds): add fitBounds to agm-polyline-point #1720

3 commits merged into from
Sep 16, 2019

Conversation

loremaps
Copy link
Contributor

@loremaps loremaps commented Sep 8, 2019

Closes #1693

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

please add unit tests to polyline-point.spec.ts

getFitBoundsDetails$(): Observable<FitBoundsDetails> {
return this.positionChanged.pipe(
startWith({lat: this.latitude, lng: this.longitude}),
map(x => ({latLng: x}))
Copy link

Choose a reason for hiding this comment

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

rename x to position or some other meaningful name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, used position

@codecov
Copy link

codecov bot commented Sep 9, 2019

Codecov Report

Merging #1720 into master will increase coverage by 0.11%.
The diff coverage is 87.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1720      +/-   ##
==========================================
+ Coverage    47.9%   48.01%   +0.11%     
==========================================
  Files          41       41              
  Lines        1812     1818       +6     
  Branches      167      167              
==========================================
+ Hits          868      873       +5     
- Misses        940      941       +1     
  Partials        4        4
Impacted Files Coverage Δ
packages/core/directives/polyline-point.ts 94.44% <87.5%> (-5.56%) ⬇️

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 2bf73de...3d73df4. Read the comment docs.

@loremaps
Copy link
Contributor Author

loremaps commented Sep 9, 2019

@doom777 Thanks for the review. I hope I have address all requested changes.

@ghost ghost merged commit 74ceb2f into sebholstein:master Sep 16, 2019
@loremaps loremaps deleted the fit-bounds-polyline-point branch August 13, 2021 14:06
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.

Add agmFitBounds to AgmPolylinePoint
1 participant