Subject: Google Maps API Tutorial -- Map's Basic State/Attributes
Author: WebSpider
Posted on: 06/22/2009 04:14:06 PM
Basic State
Each map contains a number of basic attributes that may be inspected:
Initialized?: isLoaded():Boolean -- Returns true if the map was initialized by setCenter() since it was created.View point: getCenter():GLatLng -- Returns the geographical center point of the map view.Dimensions: getBounds():GLatLngBounds -- Returns the visible rectangular region of the map view in geographical coordinates.-------------: getSize():GSize -- Returns the size of the map view in pixels.Zoom Level: getZoom():Number -- Returns the current zoom level (0~19).
References: