Page 1 of 1

How to auto zoom google map component ?

Posted: Sun Sep 22, 2013 2:28 am
by bahar.wadia

I want to "auto zoom" the Google map component to include all my markers that I load through the RESt service.

For example, if my marker are located through out the city then I want the map to be zoomed to the extent of the city. However, if my markers are located through out the world, then I want the zoom to extend to include the world.

How do I do this, since I can't just use a fix value for zoom ?

Thanks


How to auto zoom google map component ?

Posted: Sun Sep 22, 2013 6:10 am
by Alena Prykhodko

Hi!

You can do it with JavaScript. Something like this http://stackoverflow.com/questions/12...