Customize various map-related UI components to enhance user experience.
Configure the behavior and visibility of the compass on the map.
Toggle the compass display on or off to suit your app’s design and user needs :
mapplsMap.uiSettings?.isCompassEnabled = true mapplsMap.getUiSettings().setCompassEnabled(true); To enable or disable fading of the compass when facing north:
mapplsMap.uiSettings?.setCompassFadeFacingNorth(true) mapplsMap.getUiSettings().setCompassFadeFacingNorth(true); To set the gravity of compass view:
mapplsMap.uiSettings?.compassGravity = Gravity.TOP or Gravity.RIGHT mapplsMap.getUiSettings().setCompassGravity(Gravity.TOP | Gravity.RIGHT); To set the margin of compass view:
mapplsMap?.uiSettings?.setCompassMargins(left, top, right, bottom) mapplsMap.getUiSettings().setCompassMargins(left, top, right, bottom); To change the positions of logo:
To set the gravity of Logo view:
mapplsMap.uiSettings?.logoGravity = Gravity.TOP mapplsMap.getUiSettings().setLogoGravity(Gravity.TOP); To set the margins of Logo view
mapplsMap.uiSettings?.setLogoMargins(left, top, right, bottom) mapplsMap.getUiSettings().setLogoMargins(left, top, right, bottom); To enable or disable zoom on double tap:
mapplsMap.uiSettings?.isDoubleTapGesturesEnabled = false mapplsMap.getUiSettings().setDoubleTapGesturesEnabled(false); To enable or disable the map rotation:
mapplsMap.uiSettings?.isRotateGesturesEnabled = false mapplsMap.getUiSettings().setRotateGesturesEnabled(false); To enable or disable the map scrolling:
mapplsMap.uiSettings?.isScrollGesturesEnabled = false mapplsMap.getUiSettings().setScrollGesturesEnabled(false); To enable or disable map tilt:
mapplsMap.uiSettings?.isTiltGesturesEnabled = false mapplsMap.getUiSettings().setTiltGesturesEnabled(false); To enable or disable zoom gesture
mapplsMap.uiSettings?.isZoomGesturesEnabled = false 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
