You would 'geocode' the city/state, which returns a lat/lon to you,
which you use for the map.setCenter().  There's a client side geocoder
in the Google API (see the API reference) and there are server-side
geocoders as well.  All are discussed at length in this group - just
search and you'll find lots to choose from.

On Nov 26, 9:00 pm, koenigmedia <[EMAIL PROTECTED]> wrote:
> I want to know the commands for Drawing Map of City, State without Lat
> and Lon.
>
> I want to draw a map from city and state, but only see latitude and
> longitude.
>
> What do i use instead of
>
> function load() {
>       if (GBrowserIsCompatible()) {
>         var map = new GMap2(document.getElementById("map"));
>         map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>       }
>     }
>
> Thanks
> Mike
--~--~---------~--~----~------------~-------~--~----~
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