dylanfprice / angular-gm

AngularJS Google Maps Directives
MIT License
197 stars 47 forks source link

bounds #36

Closed rahulchavan30 closed 10 years ago

rahulchavan30 commented 10 years ago

i have a list of latitude longitude now i need to set bounds how do i exactly do it i tried gm-bounds, it does not get set and i need to set the center of this bounds any help will be appreciated

dylanfprice commented 10 years ago

set gm-bounds to the name of a scope variable you want to store the bounds in take a look at the first example in the plunkers: http://embed.plnkr.co/PYDYjVuRHaJpdntoJtqL/preview you can set bounds in the same way that center and zoom are being used in the example