Introducing Places UI Kit: A ready-to-use, low-cost component library that lets you bring the familiar Google Maps UI for Places to any map of your choice. Try it out, andshare your input to help shape the future of GMP!

Controls

CameraControlOptionsinterface

google.maps.CameraControlOptionsinterface

The display options for the Camera control.

Properties

positionoptional
Type: ControlPositionoptional
Position id. Used to specify the position of the control on the map.

FullscreenControlOptionsinterface

google.maps.FullscreenControlOptionsinterface

Options for the rendering of the fullscreen control.

Properties

positionoptional
Type: ControlPositionoptional
Position id. Used to specify the position of the control on the map.

MapTypeControlOptionsinterface

google.maps.MapTypeControlOptionsinterface

Options for the rendering of the map type control.

Properties

mapTypeIdsoptional
Type: Array<MapTypeId|string>optional
IDs of map types to show in the control.
positionoptional
Type: ControlPositionoptional
Position id. Used to specify the position of the control on the map.
styleoptional
Type: MapTypeControlStyleoptional
Style id. Used to select what style of map type control to display.

MapTypeControlStyleconstants

google.maps.MapTypeControlStyleconstants

Identifiers for common MapTypesControls.

Access by callingconst {MapTypeControlStyle} = await google.maps.importLibrary("maps").
SeeLibraries in the Maps JavaScript API.

Constants

DEFAULTUses the default map type control. When theDEFAULT control is shown, it will vary according to window size and other factors. TheDEFAULT control may change in future versions of the API.
DROPDOWN_MENUA dropdown menu for the screen realestate conscious.
HORIZONTAL_BARThe standard horizontal radio buttons bar.

MotionTrackingControlOptionsinterface

google.maps.MotionTrackingControlOptionsinterface

Options for the rendering of the motion tracking control.

Properties

positionoptional
Type: ControlPositionoptional
Position id. This is used to specify the position of this control on the panorama.

PanControlOptionsinterface

google.maps.PanControlOptionsinterface

Options for the rendering of the pan control.

Properties

positionoptional
Type: ControlPositionoptional
Position id. Used to specify the position of the control on the map.

RotateControlOptionsinterface

google.maps.RotateControlOptionsinterface

Options for the rendering of the rotate control.

Properties

positionoptional
Type: ControlPositionoptional
Position id. Used to specify the position of the control on the map.

ScaleControlOptionsinterface

google.maps.ScaleControlOptionsinterface

Options for the rendering of the scale control.

Properties

styleoptional
Type: ScaleControlStyleoptional
Style id. Used to select what style of scale control to display.

ScaleControlStyleconstants

google.maps.ScaleControlStyleconstants

Identifiers for scale control ids.

Constants

DEFAULTThe standard scale control.

StreetViewControlOptionsinterface

google.maps.StreetViewControlOptionsinterface

Options for the rendering of the Street View pegman control on the map.

Properties

positionoptional
Type: ControlPositionoptional
Position id. Used to specify the position of the control on the map. The default position is embedded within the navigation (zoom and pan) controls. If this position is empty or the same as that specified in thezoomControlOptions orpanControlOptions, the Street View control will be displayed as part of the navigation controls. Otherwise, it will be displayed separately.
sourcesoptional
Type: Iterable<StreetViewSource>optional
Specifies the sources of panoramas to search. This allows a restriction to search for just official Google panoramas for example. Setting multiple sources will be evaluated as the intersection of those sources. Note: theStreetViewSource.OUTDOOR source is not supported at this time.

ZoomControlOptionsinterface

google.maps.ZoomControlOptionsinterface

Options for the rendering of the zoom control.

Properties

positionoptional
Type: ControlPositionoptional
Position id. Used to specify the position of the control on the map.

ControlPositionconstants

google.maps.ControlPositionconstants

Identifiers used to specify the placement of controls on the map. Controls are positioned relative to other controls in the same layout position. Controls that are added first are positioned closer to the edge of the map. Usage of "logical values" (seehttps://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values) is recommended in order to be able to automatically support both left-to-right (LTR) and right-to-left (RTL) layout contexts.

Logical values in LTR:

+----------------+
| BSIS BSIC BSIE |
| ISBS      IEBS |
|                |
| ISBC      IEBC |
|                |
| ISBE      IEBE |
| BEIS BEIC BEIE |
+----------------+

Logical values in RTL:
+----------------+
| BSIE BSIC BSIS |
| IEBS      ISBS |
|                |
| IEBC      ISBC |
|                |
| IEBE      ISBE |
| BEIE BEIC BEIS |
+----------------+

Legacy values:
+----------------+
| TL    TC    TR |
| LT          RT |
|                |
| LC          RC |
|                |
| LB          RB |
| BL    BC    BR |
+----------------+

Elements in the top or bottom row flow towards the middle of the row. Elements in the left or right column flow towards the middle of the column.

Access by callingconst {ControlPosition} = await google.maps.importLibrary("core").
SeeLibraries in the Maps JavaScript API.

Constants

BLOCK_END_INLINE_CENTEREquivalent to BOTTOM_CENTER in both LTR and RTL.
BLOCK_END_INLINE_ENDEquivalent to BOTTOM_RIGHT in LTR, or BOTTOM_LEFT in RTL.
BLOCK_END_INLINE_STARTEquivalent to BOTTOM_LEFT in LTR, or BOTTOM_RIGHT in RTL.
BLOCK_START_INLINE_CENTEREquivalent to TOP_CENTER in both LTR and RTL.
BLOCK_START_INLINE_ENDEquivalent to TOP_RIGHT in LTR, or TOP_LEFT in RTL.
BLOCK_START_INLINE_STARTEquivalent to TOP_LEFT in LTR, or TOP_RIGHT in RTL.
BOTTOM_CENTERElements are positioned in the center of the bottom row. Consider using BLOCK_END_INLINE_CENTER instead.
BOTTOM_LEFTElements are positioned in the bottom left and flow towards the middle. Elements are positioned to the right of the Google logo. Consider using BLOCK_END_INLINE_START instead.
BOTTOM_RIGHTElements are positioned in the bottom right and flow towards the middle. Elements are positioned to the left of the copyrights. Consider using BLOCK_END_INLINE_END instead.
INLINE_END_BLOCK_CENTEREquivalent to RIGHT_CENTER in LTR, or LEFT_CENTER in RTL.
INLINE_END_BLOCK_ENDEquivalent to RIGHT_BOTTOM in LTR, or LEFT_BOTTOM in RTL.
INLINE_END_BLOCK_STARTEquivalent to RIGHT_TOP in LTR, or LEFT_TOP in RTL.
INLINE_START_BLOCK_CENTEREquivalent to LEFT_CENTER in LTR, or RIGHT_CENTER in RTL.
INLINE_START_BLOCK_ENDEquivalent to LEFT_BOTTOM in LTR, or RIGHT_BOTTOM in RTL.
INLINE_START_BLOCK_STARTEquivalent to LEFT_TOP in LTR, or RIGHT_TOP in RTL.
LEFT_BOTTOMElements are positioned on the left, above bottom-left elements, and flow upwards. Consider using INLINE_START_BLOCK_END instead.
LEFT_CENTERElements are positioned in the center of the left side. Consider using INLINE_START_BLOCK_CENTER instead.
LEFT_TOPElements are positioned on the left, below top-left elements, and flow downwards. Consider using INLINE_START_BLOCK_START instead.
RIGHT_BOTTOMElements are positioned on the right, above bottom-right elements, and flow upwards. Consider using INLINE_END_BLOCK_END instead.
RIGHT_CENTERElements are positioned in the center of the right side. Consider using INLINE_END_BLOCK_CENTER instead.
RIGHT_TOPElements are positioned on the right, below top-right elements, and flow downwards. Consider using INLINE_END_BLOCK_START instead.
TOP_CENTERElements are positioned in the center of the top row. Consider using BLOCK_START_INLINE_CENTER instead.
TOP_LEFTElements are positioned in the top left and flow towards the middle. Consider using BLOCK_START_INLINE_START instead.
TOP_RIGHTElements are positioned in the top right and flow towards the middle. Consider using BLOCK_START_INLINE_END instead.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-18 UTC.