MGLCompassButton
@interface MGLCompassButton : UIImageView
A specialized view that displays the current compass heading for its associated map.
-
The visibility of the compass button.
You can configure a compass button to be visible all the time or only when the compass heading changes.
Declaration
Objective-C
@property (nonatomic) MGLOrnamentVisibility compassVisibility;
Swift
var compassVisibility: MGLOrnamentVisibility { get set }