To Show A Country Map Using Google Maps API -
Can I show a country map in the form of a parameter in the Google Maps API? The display field area is the same for all countries so that zoom levels are automatically adjusted to fit in the respective country.
I tried to use GLatLongBounds but it is not good in 800x800, but Japan is a good dot.
If you already have the country's GLatLongBounds
Can: GMap2.getBoundsZoomLevel (GLatLongBounds)
to get the right zoom level to show those boundaries.
From the Google Maps API:
GetBoundsZoomLevel (range: GLatLngBounds)
Returns the zoom level on which the rectangular area given is fitted in the map view. Sits. Zoom level is calculated for the currently selected map type. If no map type has been selected yet, map is first used in the list of types.
Comments
Post a Comment