On May 8, 6:29 am, Guilherme Barati <[email protected]> wrote: > Hi, > > When you instance a Local Search, the zoom is automatic for whatever > you type. > > If you type a country name, the zoom goes for all the country. > If you type a city name the zoom goes for inside de country to the > city. > if you type a street name the zoom goes still more in. > > So how can I do that for an address put in an HTML box? > > I know I can pass the address in the html box as parameter for > geocoding, then setting the center of the map for the geocoded LatLng, > but how to get the right zoom?
The geocoder return now includes "ExtendedData": http://groups.google.com/group/Google-Maps-API/browse_frm/thread/53c4525e8d01e75d/58c1b09987b39e26?hl=en&lnk=gst&q=ExtendedData#58c1b09987b39e26 I don't see it in the documentation, but I didn't look real hard. "ExtendedData": { "LatLonBox": { "north": 45.628309, "south": 45.614739, "east": -71.585883, "west": -71.605152 } }, -- Larry > > I only found tips about (auto zooming for all markers). But in my case > I have no marker. > > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
