Center

public struct Center : Encodable

Undocumented

  • Sets the longitude of the map’s center.

    By default, the map’s longitude center lies at the middle of the longitude range for scoped projection and above projection.rotation.lon otherwise.

    Declaration

    Swift

    public var longitude: Double?
  • Sets the latitude of the map’s center.

    For all projection types, the map’s latitude center lies at the middle of the latitude range by default.

    Declaration

    Swift

    public var latitude: Double?
  • Creates Center object with specified properties.

    Declaration

    Swift

    public init(longitude: Double? = nil, latitude: Double? = nil)

    Parameters

    longitude

    Sets the longitude of the map’s center.

    latitude

    Sets the latitude of the map’s center.