Map UI settings¶
Customize various map-related UI components to enhance user experience.
Compass Settings¶
Configure the behavior and visibility of the compass on the map.
Enable/ Disable compass¶
Toggle the compass display on or off to suit your app’s design and user needs :
Kotlin¶
mapplsMap.uiSettings?.isCompassEnabled = true
Java¶
mapplsMap.getUiSettings().setCompassEnabled(true);
Enable/Disable Fading compass when facing north¶
To enable or disable fading of the compass when facing north:
Kotlin¶
mapplsMap.uiSettings?.setCompassFadeFacingNorth(true)
Java¶
mapplsMap.getUiSettings().setCompassFadeFacingNorth(true);
Gravity of Compass¶
To set the gravity of compass view:
Kotlin¶
mapplsMap.uiSettings?.compassGravity = Gravity.TOP or Gravity.RIGHT
Java¶
mapplsMap.getUiSettings().setCompassGravity(Gravity.TOP | Gravity.RIGHT);
Margins of compass¶
To set the margin of compass view:
Kotlin¶
mapplsMap?.uiSettings?.setCompassMargins(left, top, right, bottom)
Java¶
mapplsMap.getUiSettings().setCompassMargins(left, top, right, bottom);
Logo Settings¶
To change the positions of logo:
Gravity of Logo¶
To set the gravity of Logo view:
Kotlin¶
mapplsMap.uiSettings?.logoGravity = Gravity.TOP
Java¶
mapplsMap.getUiSettings().setLogoGravity(Gravity.TOP);
Margin of Logo¶
To set the margins of Logo view
Kotlin¶
mapplsMap.uiSettings?.setLogoMargins(left, top, right, bottom)
Java¶
mapplsMap.getUiSettings().setLogoMargins(left, top, right, bottom);
Enable/Disable Double Tap Zoom¶
To enable or disable zoom on double tap:
Kotlin¶
mapplsMap.uiSettings?.isDoubleTapGesturesEnabled = false
Java¶
mapplsMap.getUiSettings().setDoubleTapGesturesEnabled(false);
Enable/ Disable Map Rotation Gesture¶
To enable or disable the map rotation:
Kotlin¶
mapplsMap.uiSettings?.isRotateGesturesEnabled = false
Java¶
mapplsMap.getUiSettings().setRotateGesturesEnabled(false);
Enable/Disable Map Scrolling Gesture¶
To enable or disable the map scrolling:
Kotlin¶
mapplsMap.uiSettings?.isScrollGesturesEnabled = false
Java¶
mapplsMap.getUiSettings().setScrollGesturesEnabled(false);
Enable/ Disable Map Tilt Gesture¶
To enable or disable map tilt:
Kotlin¶
mapplsMap.uiSettings?.isTiltGesturesEnabled = false
Java¶
mapplsMap.getUiSettings().setTiltGesturesEnabled(false);
Enable/Disable Zoom Gesture¶
To enable or disable zoom gesture
Kotlin¶
mapplsMap.uiSettings?.isZoomGesturesEnabled = false
Java¶
mapplsMap.getUiSettings().setZoomGesturesEnabled(false);
For any queries and support, please contact:
Email us at apisupport@mappls.com
Support
Need support? contact us!
@ Copyright 2025 CE Info Systems Ltd. All Rights Reserved.
Terms & Conditions | Privacy Policy | Supplier Sustainability Policy | Health & Safety Policy | Environmental Policy & CSR Report
Customer Care: +91-9999333223