Map UI settings
Compass Settings
To change compass related settings:
Enable/ Disable compass
To enable or disable the compass:
Java
mapplsMap.getUiSettings().setCompassEnabled(true);
Kotlin
mapplsMap?.uiSettings?.isCompassEnabled = true
Enable/Disable Fading of the compass when facing north
To enable or disable fading of the compass when facing north:
Java
mapplsMap.getUiSettings().setCompassFadeFacingNorth(true);
Kotlin
mapplsMap?.uiSettings?.setCompassFadeFacingNorth(true)
Gravity of Compass
To set the gravity of compass view:
Java
mapplsMap.getUiSettings().setCompassGravity(Gravity.TOP);
Kotlin
mapplsMap?.uiSettings?.compassGravity = Gravity.TOP
Margins of compass
To set the margin of compass view:
Java
mapplsMap.getUiSettings().setCompassMargins(left, top, right, bottom);
Kotlin
mapplsMap?.uiSettings?.setCompassMargins(left, top, right, bottom)
Enable/Disable zoom of map on double tap
To enable or disable zoom on double tap:
Java
mapplsMap.getUiSettings().setDoubleTapGesturesEnabled(false);
Kotlin
mapplsMap?.uiSettings?.isDoubleTapGesturesEnabled = false
Logo Settings
To change the positions of logo:
Gravity of Logo
To set the gravity of Logo view:
Java
mapplsMap.getUiSettings().setLogoGravity(Gravity.TOP);
Kotlin
mapplsMap?.uiSettings?.logoGravity = Gravity.TOP
Margin of Logo
To set the margins of Logo view
Java
mapplsMap.getUiSettings().setLogoMargins(left, top, right, bottom);
Kotlin
mapplsMap?.uiSettings?.setLogoMargins(left, top, right, bottom)
Enable/ Disable Map Rotation Gesture
To enable or disable the map rotation:
Java
mapplsMap.getUiSettings().setRotateGesturesEnabled(false);
Kotlin
mapplsMap?.uiSettings?.isRotateGesturesEnabled = false
Enable/Disable Map Scrolling Gesture
To enable or disable the map scrolling:
Java
mapplsMap.getUiSettings().setScrollGesturesEnabled(false);
Kotlin
mapplsMap?.uiSettings?.isScrollGesturesEnabled = false
Enable/ Disable Map Tilt Gesture
To enable or disable map tilt:
Java
mapplsMap.getUiSettings().setTiltGesturesEnabled(false);
Kotlin
mapplsMap?.uiSettings?.isTiltGesturesEnabled = false
Enable/Disable Zoom Gesture
To enable or disable zoom gesture
Java
mapplsMap.getUiSettings().setZoomGesturesEnabled(false);
Kotlin
mapplsMap?.uiSettings?.isZoomGesturesEnabled = false