Sets the preference for whether all gestures should be enabled (default) or disabled. This
doesn’t restrict users from tapping any on screen buttons to move the camera (e.g., compass or
zoom controls), nor does it restrict programmatic movements and animation.
Controls whether scroll gestures are enabled (default) or disabled. If enabled, users may drag to
pan the camera. This does not limit programmatic movement of the camera.
Controls whether zoom gestures are enabled (default) or disabled. If enabled, users may double
tap/two-finger tap or pinch to zoom the camera. This does not limit programmatic movement of the
camera.
Controls whether tilt gestures are enabled (default) or disabled. If enabled, users may use a
two-finger vertical down or up swipe to tilt the camera. This does not limit programmatic control
of the camera’s viewingAngle.
Controls whether rotate gestures are enabled (default) or disabled. If enabled, users may use a
two-finger rotate gesture to rotate the camera. This does not limit programmatic control of the
camera’s bearing.
Controls whether gestures by users are completely consumed by the GMSMapView when gestures are
enabled (default YES). This prevents these gestures from being received by parent views.
When the GMSMapView is contained by a UIScrollView (or other scrollable area), this means
that gestures on the map will not be additional consumed as scroll gestures. However, disabling
this (set to NO) may be useful to support complex view hierarchies or requirements.
Enables or disables the compass. The compass is an icon on the map that indicates the direction
of north on the map.
If enabled, it is only shown when the camera is rotated away from its default orientation
(bearing of 0). When a user taps the compass, the camera orients itself to its default
orientation and fades away shortly after. If disabled, the compass will never be displayed.
Enables or disables the My Location button. This is a button visible on the map that, when tapped
by users, will center the map on the current user location.
Enables (default) or disables the indoor floor picker.
If enabled, it is only visible when the view is focused on a building with indoor floor data. If
disabled, the selected floor can still be controlled programmatically via the indoorDisplay
mapView property.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-15 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSUISettings\u003c/code\u003e is an object that allows you to control the user interface elements and gestures of a \u003ccode\u003eGMSMapView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable or disable individual gestures like scroll, zoom, tilt, and rotate, or disable all gestures at once using \u003ccode\u003esetAllGesturesEnabled\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUI elements such as the compass, My Location button, and indoor floor picker can be toggled on or off.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003econsumesGesturesInView\u003c/code\u003e determines if the map view exclusively handles user gestures or allows parent views to also receive them.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eallowScrollGesturesDuringRotateOrZoom\u003c/code\u003e dictates whether scrolling is permitted while performing rotate or zoom gestures.\u003c/p\u003e\n"]]],[],null,["GMSUISettings \n\n @interface GMSUISettings : NSObject\n\nSettings for the user interface of a GMSMapView.\n- `\n ``\n ``\n `\n\n [-setAllGesturesEnabled:](#/c:objc(cs)GMSUISettings(im)setAllGesturesEnabled:)`\n ` \n Sets the preference for whether all gestures should be enabled (default) or disabled. This\n doesn't restrict users from tapping any on screen buttons to move the camera (e.g., compass or\n zoom controls), nor does it restrict programmatic movements and animation. \n\n Declaration \n Swift \n\n func setAllGesturesEnabled(_ enabled: Bool)\n\n Objective-C \n\n - (void)setAllGesturesEnabled:(BOOL)enabled;\n\n- `\n ``\n ``\n `\n\n [scrollGestures](#/c:objc(cs)GMSUISettings(py)scrollGestures)`\n ` \n Controls whether scroll gestures are enabled (default) or disabled. If enabled, users may drag to\n pan the camera. This does not limit programmatic movement of the camera. \n\n Declaration \n Swift \n\n var scrollGestures: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL scrollGestures;\n\n- `\n ``\n ``\n `\n\n [zoomGestures](#/c:objc(cs)GMSUISettings(py)zoomGestures)`\n ` \n Controls whether zoom gestures are enabled (default) or disabled. If enabled, users may double\n tap/two-finger tap or pinch to zoom the camera. This does not limit programmatic movement of the\n camera. \n\n Declaration \n Swift \n\n var zoomGestures: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL zoomGestures;\n\n- `\n ``\n ``\n `\n\n [tiltGestures](#/c:objc(cs)GMSUISettings(py)tiltGestures)`\n ` \n Controls whether tilt gestures are enabled (default) or disabled. If enabled, users may use a\n two-finger vertical down or up swipe to tilt the camera. This does not limit programmatic control\n of the camera's viewingAngle. \n\n Declaration \n Swift \n\n var tiltGestures: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL tiltGestures;\n\n- `\n ``\n ``\n `\n\n [rotateGestures](#/c:objc(cs)GMSUISettings(py)rotateGestures)`\n ` \n Controls whether rotate gestures are enabled (default) or disabled. If enabled, users may use a\n two-finger rotate gesture to rotate the camera. This does not limit programmatic control of the\n camera's bearing. \n\n Declaration \n Swift \n\n var rotateGestures: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL rotateGestures;\n\n- `\n ``\n ``\n `\n\n [consumesGesturesInView](#/c:objc(cs)GMSUISettings(py)consumesGesturesInView)`\n ` \n Controls whether gestures by users are completely consumed by the [GMSMapView](../Classes/GMSMapView.html) when gestures are\n enabled (default YES). This prevents these gestures from being received by parent views.\n\n When the [GMSMapView](../Classes/GMSMapView.html) is contained by a `UIScrollView` (or other scrollable area), this means\n that gestures on the map will not be additional consumed as scroll gestures. However, disabling\n this (set to NO) may be useful to support complex view hierarchies or requirements. \n\n Declaration \n Swift \n\n var consumesGesturesInView: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL consumesGesturesInView;\n\n- `\n ``\n ``\n `\n\n [compassButton](#/c:objc(cs)GMSUISettings(py)compassButton)`\n ` \n Enables or disables the compass. The compass is an icon on the map that indicates the direction\n of north on the map.\n\n If enabled, it is only shown when the camera is rotated away from its default orientation\n (bearing of 0). When a user taps the compass, the camera orients itself to its default\n orientation and fades away shortly after. If disabled, the compass will never be displayed. \n\n Declaration \n Swift \n\n var compassButton: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL compassButton;\n\n- `\n ``\n ``\n `\n\n [myLocationButton](#/c:objc(cs)GMSUISettings(py)myLocationButton)`\n ` \n Enables or disables the My Location button. This is a button visible on the map that, when tapped\n by users, will center the map on the current user location. \n\n Declaration \n Swift \n\n var myLocationButton: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL myLocationButton;\n\n- `\n ``\n ``\n `\n\n [indoorPicker](#/c:objc(cs)GMSUISettings(py)indoorPicker)`\n ` \n Enables (default) or disables the indoor floor picker.\n\n If enabled, it is only visible when the view is focused on a building with indoor floor data. If\n disabled, the selected floor can still be controlled programmatically via the indoorDisplay\n mapView property. \n\n Declaration \n Swift \n\n var indoorPicker: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL indoorPicker;\n\n- `\n ``\n ``\n `\n\n [allowScrollGesturesDuringRotateOrZoom](#/c:objc(cs)GMSUISettings(py)allowScrollGesturesDuringRotateOrZoom)`\n ` \n Controls whether rotate and zoom gestures can be performed off-center and scrolled around\n (default YES). \n\n Declaration \n Swift \n\n var allowScrollGesturesDuringRotateOrZoom: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL allowScrollGesturesDuringRotateOrZoom;"]]