Dear Andrew, When I use
map.setCenter(bounds.getCenter(),map.getBoundsZoomLevel(bounds)) above line it reduces the zoom level. I need zoom level should be maximum and all markeres within boundaries otherwise it should adjust zoom level so that all markers should be in boundaries and maximum zoom level. Help needed. Thanks & Regards, Adiyya On Mon, May 11, 2009 at 6:55 PM, Andrew Leach <andrew.leac...@googlemail.com > wrote: > > On May 11, 2:07 pm, Adiyya Tadikamalla <adiy...@gmail.com> wrote: > > Here is my linkhttp://apps.sapplica.com/Rmarkets/viewData.html > > It's doing exactly what you tell it to. > > bounds.extend(point); > map.setCenter(bounds.getCenter()); > > centres the map at the centre of the markers you've added. What it > doesn't do is zoom the map to show all the markers. The API can > calculate the zoom level you need to fit the bounds into the visible > map: > > map.setCenter(bounds.getCenter(),map.getBoundsZoomLevel(bounds)) > > Andrew > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---