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(SebmGoogleMap): support fitBounds #492

Closed
wants to merge 1 commit into from
Closed

Conversation

sebholstein
Copy link
Owner

@sebholstein sebholstein commented Jul 7, 2016

<sebm-google-map [fitBounds]="myBounds"></sebm-google-map>

Closes #283

@sebholstein sebholstein changed the title feat(SebmGoogleMap): support fitBounds ´´´html <sebm-google-map [fitBounds]="myBounds"></sebm-google-map> ´´´ Closes #283 feat(SebmGoogleMap): support fitBounds Jul 7, 2016
@sebholstein
Copy link
Owner Author

@alexweber can you review this?

@@ -268,6 +285,17 @@ export class SebmGoogleMap implements OnChanges, OnInit {
}
}

private _fitBounds() {
if (this.fitBounds != null && !this.usePanning) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@SebastianM You're already ensuring that this.fitBounds != null in _updatePosition(), no need to check again here...

Copy link
Owner Author

Choose a reason for hiding this comment

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

good catch.

@alexweber
Copy link
Contributor

@SebastianM Couple very minor issues above, looks great! 👍

@sebholstein
Copy link
Owner Author

@alexweber thank you! addressed the comments. will merge when travis is happy.

<sebm-google-map [fitBounds]="myBounds"></sebm-google-map>

Closes #283
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants