Skip to main content

Type Alias: TrafficMapOptions

TrafficMapOptions = object

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:45

Options for creating a Garmin traffic map.

Properties

adsbModeText?

optional adsbModeText: Partial<Record<AdsbOperatingMode, string>>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:184

The text to display in the ADS-B operating mode indicator for each operating mode. Ignored if ADS-B is not supported.


airplaneIconAnchor

airplaneIconAnchor: ReadonlyFloat64Array | Subscribable<ReadonlyFloat64Array>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:122

The point on the player airplane icon that is anchored to the airplane's position, or a subscribable which provides it. The point is expressed as a 2-tuple relative to the icon's width and height, with [0, 0] at the top left and [1, 1] at the bottom right.


airplaneIconSize

airplaneIconSize: number

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:115

The size of the player airplane icon, in pixels.


airplaneIconSrc

airplaneIconSrc: string | Subscribable<string>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:112

The URI of the player airplane icon's image asset


altitudeModeText?

optional altitudeModeText: Partial<Record<MapTrafficAltitudeRestrictionMode, string>>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:193

The text to display in the altitude restriction mode indicator for each operating mode. Ignored if includeAltitudeModeIndicator is false.


configureFlightPlan()?

optional configureFlightPlan: (builder) => void

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:151

A function which configures the display of flight plan waypoints. Required to display the active flight plan.

Parameters

ParameterType
builderMapWaypointDisplayBuilder

Returns

void


dataUpdateFreq

dataUpdateFreq: number | null | Subscribable<number | null>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:58

The default frequency, in hertz, at which to update player airplane and autopilot properties from their bound data sources. If the frequency is null, then updates will not be throttled by frequency - each property will be updated as soon as the value of its data source changes. If the frequency is not null, then each property will only be updated when the map is updated, and the frequency of updates will not exceed updateFreq.


facilityLoader?

optional facilityLoader: FacilityLoader

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:47

The facility loader to use. If not defined, then a default instance will be created.


flightPathRendererFactory()?

optional flightPathRendererFactory: (context) => MapFlightPathPlanRenderer

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:148

A function that creates a flight path renderer to use to draw the flight plan. Required to display the active flight plan.

Parameters

ParameterTypeDescription
contextMapSystemContext<any, any, any, any>The map system context.

Returns

MapFlightPathPlanRenderer

A flight path renderer to use to draw the flight plan.


flightPlanner?

optional flightPlanner: FlightPlanner | Subscribable<FlightPlanner>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:125

The flight planner containing the active flight plan. Required to display the active flight plan.


flightPlanWaypointRecordManagerFactory()?

optional flightPlanWaypointRecordManagerFactory: (context, waypointRenderer) => MapFlightPlanWaypointRecordManager

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:140

A function that creates a flight plan waypoint record manager to use to manage the waypoints to draw for the flight plan. Required to display the active flight plan.

Parameters

ParameterTypeDescription
contextMapSystemContext<any, any, any, any>The map system context.
waypointRendererMapWaypointRendererThe waypoint renderer used to draw the flight plan waypoints.

Returns

MapFlightPlanWaypointRecordManager

A flight plan waypoint record manager to use to manage the waypoints to draw for the flight plan.


iconFactory?

optional iconFactory: MapTrafficIntruderIconFactory

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:97

A function which creates intruder icons for the traffic display. If not defined, a default icon of type MapTrafficIntruderIcon is created for each intruder.


includeAdsbModeIndicator?

optional includeAdsbModeIndicator: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:178

Whether to include an ADS-B operating mode indicator. Defaults to true. Ignored if ADS-B is not supported.


includeAdsbOffBanner?

optional includeAdsbOffBanner: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:199

Whether to include an ADS-B standby mode warning banner. Defaults to true. Ignored if ADS-B is not supported.


includeAltitudeModeIndicator?

optional includeAltitudeModeIndicator: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:187

Whether to include an altitude restriction mode indicator. Defaults to true.


includeFailedBanner?

optional includeFailedBanner: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:202

Whether to include a traffic system failed mode warning banner. Defaults to true.


includeOperatingModeIndicator?

optional includeOperatingModeIndicator: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:169

Whether to include a traffic system operating mode indicator. Defaults to true.


includeOrientationIndicator?

optional includeOrientationIndicator: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:160

Whether to include an orientation indicator. Defaults to true.


includeRangeRings

includeRangeRings: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:103

Whether to include range rings.


includeStandbyBanner?

optional includeStandbyBanner: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:196

Whether to include a traffic system standby mode warning banner. Defaults to true.


initCanvasStyles()?

optional initCanvasStyles: (context) => void

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:100

A function which initializes global canvas styles for the traffic display.

Parameters

ParameterType
contextCanvasRenderingContext2D

Returns

void


optional lnavIndex: number | Subscribable<number>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:128

The index of the LNAV from which to source data. Defaults to 0.


mapRangeSettingManager?

optional mapRangeSettingManager: UserSettingManager<TrafficMapRangeControllerSettings>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:213

A user setting manager containing the map range setting. If not defined, map range will not be controlled by user setting.


metricRangeArray?

optional metricRangeArray: readonly NumberUnitInterface<Distance>[]

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:82

The map range array to use for metric units mode. If not defined, a range array will not automatically be set when entering metric units mode.


miniCompassImgSrc?

optional miniCompassImgSrc: string

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:154

The URI of the mini-compass's image asset. Required to display the mini-compass.


nauticalRangeArray?

optional nauticalRangeArray: readonly NumberUnitInterface<Distance>[]

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:76

The map range array to use for nautical units mode. If not defined, a range array will not automatically be set when entering nautical units mode.


offScaleStatus?

optional offScaleStatus: MutableSubscribable<MapTrafficOffScaleStatus>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:91

A mutable subscribable to update with the traffic layer's off-scale intruder status.


operatingModeText?

optional operatingModeText: Partial<Record<TcasOperatingMode, string>>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:175

The text to display in the traffic system operating mode indicator for each operating mode. Ignored if includeOperatingModeIndicator is false.


orientation

orientation: MapOrientation | Subscribable<MapOrientation>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:157

The orientation of the map.


orientationText?

optional orientationText: Partial<Record<MapOrientation, string>>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:166

The text to display in the orientation indicator for each orientation mode. Ignored if includeOrientationIndicator is false.


rangeEndpoints?

optional rangeEndpoints: ReadonlyFloat64Array | Subscribable<ReadonlyFloat64Array>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:70

The nominal range endpoints of the map, as [x1, y1, x2, y2], where each component is expressed relative to the width or height of the map's projected window, excluding the dead zone. Defaults to [0.5, 0.5, 0.5, 0].


rangeRingOptions?

optional rangeRingOptions: TrafficRangeRingOptions

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:109

Styling options for the range rings. If not defined, both the outer and inner label radial values are set to 135 degrees. Ignored if includeRangeRings is false.


supportDataIntegrity?

optional supportDataIntegrity: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:85

Whether to support data integrity state. Defaults to true.


targetOffset?

optional targetOffset: ReadonlyFloat64Array | Subscribable<ReadonlyFloat64Array>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:64

The nominal projected target offset of the map, as [x, y], where each component is expressed relative to the width or height of the map's projected window, excluding the dead zone. Defaults to [0, 0].


trafficIconOptions

trafficIconOptions: TrafficIconOptions

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:88

Configuration options for traffic icons.


trafficSettingManager?

optional trafficSettingManager: UserSettingManager<Partial<TrafficUserSettingTypes>>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:207

A user setting manager containing settings controlling the operation of the traffic system.


trafficSystem

trafficSystem: TrafficSystem

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:50

The traffic system from which to retrieve intruder data.


unitsSettingManager?

optional unitsSettingManager: UnitsUserSettingManager

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:216

A display units user setting manager. If not defined, map display units will not be controlled by user settings.


useRangeSettingByDefault?

optional useRangeSettingByDefault: boolean

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:222

Whether to use the map range user setting to control map range by default. Defaults to true. Ignored if mapRangeSettingManager is not defined.


vnavIndex?

optional vnavIndex: number | Subscribable<number>

Defined in: src/garminsdk/components/map/assembled/TrafficMapBuilder.tsx:131

The index of the VNAV from which to source data. Defaults to 0.