On May 11, 2:07 pm, Adiyya Tadikamalla <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to