On Mar 20, 8:52 am, fa <[email protected]> wrote: > My bad I've post in the bad group... > > In fact I do use Gmap Api V3. > > But i didnt found the getBoundsZoomLevel in gmap v3 api
That function has a different name in that version of the API (fitBounds) If you had read the posting guidelines and provided a link you would have gotten the correct answer the first time. -- Larry > > Any way > my map must be centered on the user's adress but also must display the > closest nearest poi to user's address with appropriate zoom level. > > Any ideas whow to this on gmap api v3 without getBoundsZoomLevel ? > > On 20 mar, 16:09, "[email protected]" <[email protected]> wrote: > > > > > > > > > On Mar 20, 7:34 am, fa <[email protected]> wrote: > > > > HI everyone, > > > > It's a classical use case but I did'nt find any article on that. > > > > My user type his address. > > > So the Google map dispalyed is centered on the postal address he has > > > typed. > > > > Nothing hard upt to here... > > > > But I also have to dsplay nearest POI to his address. > > > > I'm still ok up to here. > > > > But my problem is the zoom level must be updated in function of the > > > distance of the different poi to display.... > > > > Cause if my app find 10 poi near his address in a 100m radius circle > > > the zoom level > > > would be very different if my app found also 10 POi in 10km radius... > > > > I supposed that iohave to take the furthest POI to this address to > > > calculte the correct zoom levl to apply. > > > > But I don't know how to caluclate that. > > > > On the api i found the different zooom level that we can > > > use:https://developers.google.com/maps/documentation/javascript/v2/refere... > > > > but there is no precise metrical information about these different > > > scal. > > > > Exemple: > > > For Zoom level 5 (Address level accuracy. ) 1 inch on the map is > > > 100, 200 or 500 meters? > > > > For Zoom level 1 (country level accuracy. ) 1 inch on the map is > > > 100, 500 or 1000 km? > > > > Is there any gmap api function to detrmine best zoom level > > > if I give him a center point and a set of nearest marker POI ? > > > > Any help would be very appreciated !! > > > > thx > > > 1. Why are you developing a new application in v2? It is deprecated. > > 2. Try > > getBoundsZoomLevelhttps://developers.google.com/maps/documentation/javascript/v2/refere... > > >http://groups.google.com/group/google-maps-api/search?group=google-ma... > > > -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
