ImageSource

public struct ImageSource : Source

An image data source.

  • Declaration

    Swift

    public let type: SourceType
  • url

    URL that points to an image.

    Declaration

    Swift

    public var url: String?
  • Corners of image specified in longitude, latitude pairs.

    Declaration

    Swift

    public var coordinates: [[Double]]?
  • When loading a map, if PrefetchZoomDelta is set to any number greater than 0, the map will first request a tile at zoom level lower than zoom - delta, but so that the zoom level is multiple of delta, in an attempt to display a full map at lower resolution as quick as possible. It will get clamped at the tile source minimum zoom. The default delta is 4.

    Declaration

    Swift

    public var prefetchZoomDelta: Double?
  • Undocumented

    Declaration

    Swift

    public init()
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws