Hi,

I am trying to make the zoom level in our google map dynamic on the basis 
of the below parameters:

1. The no of markers that come on the map.
2. The relative placements/positions of the markers on the map.


For example:

a)  If there are only 2 markers but the markers are places far away from 
each other then the zoom level must be small enough to encapsulate both the 
markers.

b) If there are many markers but placed very close to each other then the 
zoom level must be high and also take care the encapsulation of all the 
markers on the map.


I browsed through the net for some solutions and partially succeeded too. 
But the zoom level is still hard-coded and our requirement is to make it 
dynamic on the above criteria.


I have seen lot of custom JS code as a solution for the above. But since 
this requirement is quite common, so I guess there is some kind of out of 
the box solution is already there provided in the google maps API, for 
achieving my above goal . I would like to leverage that.

Request any one to help me out here if they any such solution from the API.

Thanks and Regards,
Gaurav.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.

Reply via email to