MGLStylable

@protocol MGLStylable <NSObject>

An object whose contents are represented by an MGLStyle object that you configure.

  • The style currently displayed in the receiver.

    Note

    The default styles provided by Mapbox contain sources and layers with identifiers that will change over time. Applications that use APIs that manipulate a style’s sources and layers must first set the style URL to an explicitly versioned style using a convenience method like +[MGLStyle outdoorsStyleURLWithVersion:] or a manually constructed NSURL.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MGLStyle *style;

    Swift

    var style: MGLStyle? { get }