interface CompassView : MapComponentView, ClickableMapComponent
Compass component.
static val COMPASS_NORTH_YAW_DEGREES: Float
The starting compass rotation when the image points on the north. |
abstract fun rotate(yawDegrees: Float): Unit
Rotates the compass in clockwise and reverse direction. |
abstract fun getView(): View!
The Android's View which is used by the Map Component. |
|
abstract fun hide(): Unit
Hides the ui component. |
|
abstract fun setMargins(left: Int, top: Int, right: Int, bottom: Int): Unit
Sets the margins of the ui component in PX. |
|
abstract fun setOnMapComponentClickCallback(callback: ClickableMapComponent.MapComponentClickCallback!): Unit
The callback fired when center on map component view is clicked. |
|
abstract fun show(): Unit
Shows the ui component. |
open class BasicCompassView : AppCompatImageView, CompassView, OnClickListener
Button that represents 2D compass. When clicked, the map is set to north up. The button is visible only when map is not set to north up. Fade in / out animation is used to change button visibility. |