Angular-google-maps: Fit to Bounds

Created on 13 Apr 2016  路  8Comments  路  Source: SebastianM/angular-google-maps

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

AgmMap feature-request

Most helpful comment

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.

All 8 comments

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

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

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

@SebastianM any thoughts on the PR?

@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.

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

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.

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? 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChrisDevinePimss picture ChrisDevinePimss  路  3Comments

matishw picture matishw  路  3Comments

Halynsky picture Halynsky  路  3Comments

maneesht picture maneesht  路  3Comments

dineshkumar20 picture dineshkumar20  路  3Comments