Compass Widget
class CompassWidget(context: Context, position: WidgetPosition = WidgetPosition(
horizontal = WidgetPosition.Horizontal.RIGHT,
vertical = WidgetPosition.Vertical.TOP,
), marginX: Float = 20.0f, marginY: Float = 20.0f) : BitmapWidget
Widget shows compass. Positioned in the top right corner by default.
Note: This feature is only available for Android Maps SDK v10.4.0 and above
Since
Maps SDK v10.4.0
Parameters
position
position of compass
margin X
horizontal margin in pixels
margin Y
vertical margin in pixels
Constructors
Link copied to clipboard
fun CompassWidget(context: Context, position: WidgetPosition = WidgetPosition(
horizontal = WidgetPosition.Horizontal.RIGHT,
vertical = WidgetPosition.Vertical.TOP,
), marginX: Float = 20.0f, marginY: Float = 20.0f)