• Style provides access to the APIs used to dynamically modify the map’s style. Use it to read and write layers, sources, and images. Obtain the Style instance for a MapView via MapView.mapboxMap.style.

    Important

    Style should only be used from the main thread.
    See more

    Declaration

    Swift

    public final class Style : StyleProtocol
  • Enum representing the latest version of the Mapbox styles (as of publication). In addition, you can provide a custom URL or earlier version of a Mapbox style by using the .custom case.

    See more

    Declaration

    Swift

    public struct StyleURI : Hashable, RawRepresentable
  • Specifies the position at which a layer will be added when using Style.addLayer.

    See more

    Declaration

    Swift

    public enum LayerPosition : Equatable
  • Declaration

    Swift

    extension TransitionOptions
  • The global light source.

    See more

    Declaration

    Swift

    public struct Light : Codable
  • The global terrain source.

    See more

    Declaration

    Swift

    public struct Terrain : Codable
  • A protocol describing a style-related entity that can be decoded.

    See more

    Declaration

    Swift

    public protocol StyleDecodable
  • A protocol describing a style-related entity that can be encoded.

    See more

    Declaration

    Swift

    public protocol StyleEncodable