setCompassEnabled

open fun setCompassEnabled(compassEnabled: Boolean)

Enables or disables the compass. The compass is an icon on the map that indicates the direction of north on the map. When a user clicks the compass, the camera orients itself to its default orientation and fades away shortly after. If disabled, the compass will never be displayed.

By default, the compass is enabled.

Parameters

compassEnabled

True to enable the compass; false to disable the compass.