java.lang.Object | |
↳ | com.amazon.geo.mapsv2.UiSettings |
Contains the user interface settings for the map. Use
getUiSettings()
to access this object and change the user
interface options.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves a boolean value indicating whether the compass user interface
is enabled.
| |||||||||||
Retrieves a boolean value indicating whether the indoor level picker UI
for indoor maps is enabled.
Note that indoor buildings are not currently supported in the Amazon Maps API. | |||||||||||
Retrieves a boolean value indicating whether the Map Toolbar is enabled.
| |||||||||||
Retrieves a boolean value indicating whether the "Locate Me" UI is
enabled.
| |||||||||||
Retrieves a boolean value indicating whether rotate gestures are enabled.
| |||||||||||
Retrieves a boolean value indicating whether scroll gestures are enabled.
| |||||||||||
Retrieves a boolean value indicating whether tilt gestures are enabled.
| |||||||||||
Retrieves a boolean value indicating whether the zoom control user
interface is enabled.
| |||||||||||
Retrieves a boolean value indicating whether zoom gestures are enabled.
| |||||||||||
Enables or disables all gestures (rotate, scroll, tilt, and zoom
gestures).
| |||||||||||
Enables or disables the compass user interface.
| |||||||||||
Enables or disables the level picker user interface for indoor maps.
Note that indoor buildings are not currently supported in the Amazon Maps API. | |||||||||||
Enables or disables the Map Toolbar.
| |||||||||||
Enables or disables the "Locate Me" user interface.
| |||||||||||
Enables or disables user rotate gestures.
| |||||||||||
Enables or disables user scroll gestures.
| |||||||||||
Enables or disables user tilt gestures.
| |||||||||||
Enables or disables zoom user interface controls.
| |||||||||||
Enables or disables user zoom gestures.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Retrieves a boolean value indicating whether the compass user interface is enabled.
When the compass is enabled, the map displays a compass icon whenever the map camera is rotated away from normal (tilt = 0 and bearing = 0). Clicking the compass icon re-orients the map to normal and causes the icon to disappear.
true
if the compass UI is enabled, false
if it is
disabled.
Retrieves a boolean value indicating whether the indoor level picker UI for indoor maps is enabled.
Note that indoor buildings are not currently supported in the Amazon Maps API.
true
if the indoor level picker UI is enabled, false if
it is disabled.
Retrieves a boolean value indicating whether the Map Toolbar is enabled.
true
if the Map Toolbar is enabled, false if it is
disabled.
Retrieves a boolean value indicating whether the "Locate Me" UI is enabled.
true
if the "Locate Me" UI button UI is enabled, false if
it is disabled.
Retrieves a boolean value indicating whether rotate gestures are enabled.
true
if rotate gestures are enabled, false if they are
disabled.
Retrieves a boolean value indicating whether scroll gestures are enabled.
true
if scroll gestures are enabled, false they are
disabled.
Retrieves a boolean value indicating whether tilt gestures are enabled.
true
if tilt gestures are enabled, false they are
disabled.
Retrieves a boolean value indicating whether the zoom control user interface is enabled.
true
if zoom controls are enabled, false they are
disabled.
Retrieves a boolean value indicating whether zoom gestures are enabled.
true
if zoom gestures are enabled, false they are
disabled.
Enables or disables all gestures (rotate, scroll, tilt, and zoom
gestures). Default is true
.
enabled | true to enable all gestures, or false to
disable them.
|
---|
Enables or disables the compass user interface. Default is true
.
When the compass is enabled, the map displays a compass icon whenever the map camera is rotated away from normal (tilt = 0 and bearing = 0). Clicking the compass icon re-orients the map to normal and causes the icon to disappear.
If disabled, the compass does not display, regardless of the map camera's orientation.
enabled | true to enable the compass UI, or false to
disable it.
|
---|
Enables or disables the level picker user interface for indoor maps. The
default behavior is true
.
Note that indoor buildings are not currently supported in the Amazon Maps API.
enabled | true to enable the level picker, or false
to disable it.
|
---|
Enables or disables the Map Toolbar. When enabled, additional
buttons are displayed at the bottom of the map when the user clicks a
Marker
. These buttons let users launch the Amazon Maps app at the
location of the selected Marker
or get directions to
Marker
's location. Note that the buttons are hidden if the
Marker
is moved off the screen.
The default is true
.
enabled | true to enable the Map Toolbar, or false
to disable it.
|
---|
Enables or disables the "Locate Me" user interface. The "Locate Me"
button animates the camera to center on the user's location. The default
is true
.
Note that the "Locate Me" button is only shown when the My Location layer
is enabled. Use setMyLocationEnabled(boolean)
to enable
or disable the My Location layer.
You can change the behavior of the "Locate Me" button by implementing the
AmazonMap.OnMyLocationButtonClickListener
interface and assigning
it with
setOnMyLocationButtonClickListener(AmazonMap.OnMyLocationButtonClickListener)
enabled | true to enable the "Locate Me" button, or
false to disable it.
|
---|
Enables or disables user rotate gestures. Default is true
.
enabled | true to enable rotate gestures, or false
to disable them.
|
---|
Enables or disables user scroll gestures. Default is true
.
enabled | true to enable scroll gestures, or false
to disable them.
|
---|
Enables or disables user tilt gestures. Default is true
.
enabled | true to enable tilt gestures, or false to
disable them.
|
---|
Enables or disables zoom user interface controls. Default is false
.
enabled | true to enable the zoom UI controls, or
false to disable them.
|
---|
Enables or disables user zoom gestures. Default is true
.
enabled | true to enable zoom gestures, or false to
disable them.
|
---|