MarkerVisibility

public struct MarkerVisibility

Describes marker visibility setup by zoom level and camera tilt.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Initializes marker visibility by zoom level and camera tilt. Zoom level and tilt are defined in closed ranges.

    Declaration

    Swift

    public init(
        zoom: ClosedRange<Double> = RouteTrafficIncidentStyle.Default.markerVisibilityAllZooms,
        tilt: ClosedRange<Double> = RouteTrafficIncidentStyle.Default.markerVisibilityAllTilts
    )

    Parameters

    zoom

    Zoom level at which markers are visible. Markers are only visible when the camera’s zoom level is in the stated range. Markers are hidden when the zoom level is out of range. The allowed zoom level range: [0, 22].

    tilt

    Tilt level, expressed in degrees, at which markers are visible. A value of 0 indicates the camera looking straight down, and 90 means it is looking straight ahead towards the horizon. Allowed tilt level range: [0, 90] Markers are only visible when the camera tilt is in the stated range. When the tilt is out of the range, markers are hidden.

  • Zoom level at which markers are visible. Markers are only visible when the zoom level is in the stated range. When the zoom level is out of the range, markers are hidden.

    Declaration

    Swift

    public let zoom: ClosedRange<Double>
  • Tilt level, expressed in degrees, at which markers are visible. A value of 0 indicates the camera looking straight down, and 90 means it is looking straight ahead towards the horizon. Markers are only visible when the camera tilt is in the stated range. When the tilt is out of the range, markers are hidden.

    Declaration

    Swift

    public let tilt: ClosedRange<Double>