Style

final public class Style

The Style protocol that represents the map style.

Public

  • Map source specifications.

    Declaration

    Swift

    public let sources: SourceCollection
  • Returns an array of the Layer‘s included in a given style.

    Declaration

    Swift

    public var layers: [Layer]
  • Fetches an array of Layer‘s based on a given regex pattern. The regex is applied to the Layer.id property.

    Declaration

    Swift

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

    Parameters

    pattern

    The regex pattern.