public class UiSettings
extends java.lang.Object
Map ui-settings.
Example zoom controls enable:
MapController map = ...;
map.getUiSettings().setZoomControlsEnabled(true);
Copyright (c) 2017 Nexusgeographics All rights reserved.
MapController
Modifier and Type | Method and Description |
---|---|
boolean |
isCompassEnabled()
Checks if is compass is enabled.
|
boolean |
isMyLocationButtonEnabled()
Checks if is my-location button is enabled.
|
boolean |
isZoomControlsEnabled()
Checks if is zoom controls is enabled
|
UiSettings |
setCompassEnabled(boolean enable)
Sets compass enabled.
|
UiSettings |
setMyLocationButtonEnabled(boolean enable)
Sets my-location button enabled.
|
UiSettings |
setZoomControlsEnabled(boolean enable)
Sets zoom controls enabled.
|
public boolean isMyLocationButtonEnabled()
public UiSettings setMyLocationButtonEnabled(boolean enable)
enable
- true to enable the my-location button, false to disable the my-location button.public boolean isZoomControlsEnabled()
public UiSettings setZoomControlsEnabled(boolean enable)
enable
- true to enable the zoom control, false to disable the zoom control.public boolean isCompassEnabled()
public UiSettings setCompassEnabled(boolean enable)
enable
- true to enable the compass button, false to disable the compass button.