Style

public protocol Style : AnyObject

The Style protocol that represents the map style.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Returns an array of the Layer‘s included in a given style.

    Declaration

    Swift

    var layers: [Layer] { get }
  • Map source specifications.

    Declaration

    Swift

    var sources: SourceCollection { get }
  • Fetches an array of Layer‘s based on a given regex pattern. The regex is applied to the Layer.id property.

    Declaration

    Swift

    func layersForRegex(pattern: NSRegularExpression) -> [Layer]

    Parameters

    pattern

    The regex pattern.