To change compass related settings:
To enable or disable the compass:
mapmyIndiaMap.getUiSettings().setCompassEnabled(true);
mapmyIndiaMap?.uiSettings?.isCompassEnabled = true
To enable or disable fading of the compass when facing north:
mapmyIndiaMap.getUiSettings().setCompassFadeFacingNorth(true);
mapmyIndiaMap?.uiSettings?.setCompassFadeFacingNorth(true)
To set the gravity of compass view:
mapmyIndiaMap.getUiSettings().setCompassGravity(Gravity.TOP);
mapmyIndiaMap?.uiSettings?.compassGravity = Gravity.TOP
To set the margin of compass view:
mapmyIndiaMap.getUiSettings().setCompassMargins(left, top, right, bottom);
mapmyIndiaMap?.uiSettings?.setCompassMargins(left, top, right, bottom)
To enable or disable zoom on double tap:
mapmyIndiaMap.getUiSettings().setDoubleTapGesturesEnabled(false);
mapmyIndiaMap?.uiSettings?.isDoubleTapGesturesEnabled = false
To change the positions of logo:
To set the gravity of Logo view:
mapmyIndiaMap.getUiSettings().setLogoGravity(Gravity.TOP);
mapmyIndiaMap?.uiSettings?.logoGravity = Gravity.TOP
To set the margins of Logo view
mapmyIndiaMap.getUiSettings().setLogoMargins(left, top, right, bottom);
mapmyIndiaMap?.uiSettings?.setLogoMargins(left, top, right, bottom)
To enable or disable the map rotation:
mapmyIndiaMap.getUiSettings().setRotateGesturesEnabled(false);
mapmyIndiaMap?.uiSettings?.isRotateGesturesEnabled = false
To enable or disable the map scrolling:
mapmyIndiaMap.getUiSettings().setScrollGesturesEnabled(false);
mapmyIndiaMap?.uiSettings?.isScrollGesturesEnabled = false
To enable or disable map tilt:
mapmyIndiaMap.getUiSettings().setTiltGesturesEnabled(false);
mapmyIndiaMap?.uiSettings?.isTiltGesturesEnabled = false
To enable or disable zoom gesture
mapmyIndiaMap.getUiSettings().setZoomGesturesEnabled(false);
mapmyIndiaMap?.uiSettings?.isZoomGesturesEnabled = false
For any queries and support, please contact:
Email us at apisupport@mapmyindia.com
Stack Overflow Ask a question under the mapmyindia-api
Support Need support? contact us!
Blog Read about the latest updates & customer stories
© Copyright 2022. CE Info Systems Ltd. All Rights Reserved. | Terms & Conditions.