StyleDefinition

public struct StyleDefinition
extension StyleDefinition: Equatable

Defines the location of the map style.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Creates a new instance with a style URL and a layerMapping URL.

    Declaration

    Swift

    public init(style: URL, layerMapping: URL)

    Parameters

    style

    Style file or the remote URL of the style file.

    layerMapping

    Layer mapping file or the remote URL of the layer mapping file.

  • Creates a new instance with a style URL. Default layerMapping will be used.

    Declaration

    Swift

    public init(style: URL)

    Parameters

    style

    Style file or remote URL of the style file.

Public

  • URL that points to the map style file, either locally or on the network.

    Declaration

    Swift

    public let style: URL
  • Defines URL for the layer mapping file. The layer mapping file defines the order of renderer-specific layers and mapbox layers. For example, the file can be used to set where in the order of the mapbox-style layers to put the renderer layer used to render shapes: [ { “secondary-layer” : “polyline-shape”, “after-primary-layer” : “Ocean label” }, { “secondary-layer” : “polygon-shape”, “after-primary-layer” : “Ocean label” }] Available michi layer names: [   “skybox-schematic”,   “skybox”,   “route”,   “circle-shape”,   “polygon-shape”,   “polyline-shape”,   “route-marker”,   “marker”,   “position-marker” ]

    Declaration

    Swift

    public let layerMapping: URL

Equatable

  • Declaration

    Swift

    public static func == (lhs: StyleDefinition, rhs: StyleDefinition) -> Bool