Those lat/lng coordinates are fine for the continental US, but if you
also need to include Alaska and Hawaii, the center would be closer to
52,-127 (rough approximation, not sure of the exact coordinates, but
at that scale it probably doesn't matter much). Also, the zoom level
will depend on the size of the map.

A better approach for the continental US would be (rounding the lat/
lng coords, since 6+ digits of precision seem like overkill for such a
large area, from the shapefiles available from http://www.gadm.org/world)

var bounds = GLatLngBounds(new GLatLng(24.52,-124.77), new GLatLng
(49.01,-66.94));
map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));

To include Hawaii, the bounds would need to be extended to include a
south west point of (18.90,-164.71). To include Alaska you'd need to
determine how much of the state to include, i.e., you might not need
to include all of the Aleutian Islands. A north west point of about
(71.4,-170) would probably do.

On Sep 16, 8:35 am, Iv <[email protected]> wrote:
> Zoom Level = 4
> lat="39.30029918615029"
> lng="-95.888671875"
>
> This should center the map to United States Country View
>
> http://www.travelmapia.com/unitedstates/index.html
>
> On Sep 16, 9:25 am, Sandy <[email protected]> wrote:
>
> > I need to show only USA map on page. What latitude and longitude
> > should i put for initial page load?
--~--~---------~--~----~------------~-------~--~----~
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