public class UISettings
extends java.lang.Object
MapView.OnMapReadyCallback
received.Modifier and Type | Method and Description |
---|---|
boolean |
isAllMapGesturesEnabled()
Get if All Gesture enabled on map
|
boolean |
isMyLocationButtonShown() |
void |
setAllMapGesturesEnabled(boolean enable)
Set all gestures on map to be enabled/disabled.
|
void |
setDoubleTapZoomInGestureEnabled(boolean enable)
Set Double Tap Map Zoom In gesture enable
|
void |
showCompass(boolean show)
Show/Hide compass on map to represent map's orientation,
only when
MapView.OnMapReadyCallback received. |
void |
showMyLocationButton(boolean show)
Show/Hide my location button on map to zoom on current location available,
only when
MapView.OnMapReadyCallback received.Use the below code snippet mentioned below for location configuration in MapView.OnMapReadyCallback : |
void |
showZoomControls(boolean show)
Show/Hide zoom controls on map,
only when
MapView.OnMapReadyCallback received. |
public void showZoomControls(boolean show)
MapView.OnMapReadyCallback
received.show
- boolean
value to show/hide zoom controlspublic void showCompass(boolean show)
MapView.OnMapReadyCallback
received.show
- boolean
value to show/hide compasspublic void showMyLocationButton(boolean show)
MapView.OnMapReadyCallback
received.MapView.OnMapReadyCallback
:
MapController.getLocationConfig()
.setLocationSettings(true) // AUTO LOCATION SETTINGS DIALOG
.setPermissionRequestIfDenied(true) // AUTO LOCATION PERMISSION
.setPermissionReasonDialog("TITLE", "MESSAGE"); // PERMISSION REASON DIALOG
show
- boolean
value to show/hide my location buttonpublic boolean isMyLocationButtonShown()
public void setDoubleTapZoomInGestureEnabled(boolean enable)
enable
- boolean
value to enable/disable gesturepublic void setAllMapGesturesEnabled(boolean enable)
enable
- true to enable gestures, false to disablepublic boolean isAllMapGesturesEnabled()