| Function | Description |
|---|---|
fitBounds |
Sets the viewport to contain the given bounds |
panBy |
Changes the center of the map by the given distance in pixels |
panTo |
Changes the center of the map to the given LatLng |
panToBounds |
Pans the map by the minimum amount necessary to contain the given LatLngBounds |
getBounds |
Returns the lat/lng bounds of the current viewport |
getCenter |
Returns the position displayed at the center of the map |
getClickableIcons |
Returns the clickability of the map icons |
getHeading |
Returns the compass heading of aerial imagery |
getMapTypeId |
Returns the map type id |
getProjection |
Returns the current Projection |
getStreetView |
Returns the default StreetViewPanorama bound to the map, which may be a default panorama embedded within the map |
getTilt |
Returns the current angle of incidence of the map, in degrees from the viewport plane to the map plane |
getZoom |
Returns the current zoom |
controls |
Additional controls to attach to the map |
data |
An instance of Data, bound to the map |
mapTypes |
A registry of MapType instances by string ID |
overlayMapTypes |
Additional map types to overlay |
Created
November 3, 2019 16:27
-
-
Save timdeschryver/beaa6fb7b56eeebcb08570237fdccd32 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment