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

Fit to Bounds #283

Closed
zackarychapple opened this issue Apr 13, 2016 · 8 comments
Closed

Fit to Bounds #283

zackarychapple opened this issue Apr 13, 2016 · 8 comments

Comments

@zackarychapple
Copy link

I am trying to use fit to bounds and would love if this was just a flag on the sebm-google-map component.

@sebholstein
Copy link
Owner

@zackarychapple yeah a useful feature for sure. I plan to implement this.

@alexweber
Copy link
Contributor

I've started an implementation in the linked PR, please advise! Thanks

@imichelakos
Copy link

This feature would be great...i will follow the
But i would like also great if we can restrict map movement around the center of a map and have minimun and maximum level of zoom

@zackarychapple
Copy link
Author

@SebastianM any thoughts on the PR?

@sebholstein
Copy link
Owner

@zackarychapple do you have the bounds already available or do you want to generate the bounds out of the existing markers in the maps? Im asking because I think that are two separate features.

@sebholstein sebholstein added this to the 0.13.0 milestone Jul 7, 2016
sebholstein added a commit that referenced this issue Jul 7, 2016
<sebm-google-map [fitBounds]="myBounds"></sebm-google-map>

Closes #283
sebholstein added a commit that referenced this issue Jul 9, 2016
<sebm-google-map [fitBounds]="myBounds"></sebm-google-map>

Closes #283
sebholstein added a commit that referenced this issue Jul 9, 2016
<sebm-google-map [fitBounds]="myBounds"></sebm-google-map>

Closes #283
@zackarychapple
Copy link
Author

@SebastianM sorry for the late reply, missed the notification. I do not have the bounds already, need to figure them out from the pins.

@TaiPhamD
Copy link

I can't find an example on how to generate bounds so that it could be a LatLngBounds type to be able bind it to the angular 2 google maps. Can anyone give me an example? Thank you.

@trungvose
Copy link

trungvose commented Nov 22, 2016

I have ended up with a small workaround as discuss at #719
Please see If it is helpful for you.

Same with @rushstrike, could someone updates the doc with more example? 👍

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

No branches or pull requests

6 participants