Skip to main content

Class: MapAliasedUserSettingManager

An aliased map user setting manager which can switch the true settings from which its aliased settings are sourced. The supported sources are:

  • Each set of display pane map settings.
  • Each set of PFD map settings.

Implements

Constructors

constructor

new MapAliasedUserSettingManager(bus): MapAliasedUserSettingManager

Constructor.

Parameters

NameTypeDescription
busEventBusThe event bus.

Returns

MapAliasedUserSettingManager

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:25

Methods

getAllSettings

getAllSettings(): UserSetting<UserSettingValue>[]

Returns

UserSetting<UserSettingValue>[]

Inherit Doc

Implementation of

UserSettingManager.getAllSettings

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:73


getSetting

getSetting<K>(name): UserSetting<NonNullable<G3000MapUserSettingTypes[K]>>

Type parameters

NameType
Kextends "mapRangeIndex" | "mapOrientation" | "mapAutoNorthUpActive" | "mapAutoNorthUpRangeIndex" | "mapGroundNorthUpActive" | "mapDeclutter" | "mapTerrainMode" | "mapTerrainRangeIndex" | "mapTerrainScaleShow" | "mapAirportLargeRangeIndex" | "mapAirportMediumRangeIndex" | "mapAirportSmallRangeIndex" | "mapVorShow" | "mapVorRangeIndex" | "mapNdbShow" | "mapNdbRangeIndex" | "mapIntersectionShow" | "mapIntersectionRangeIndex" | "mapUserWaypointShow" | "mapUserWaypointRangeIndex" | "mapAirspaceClassBRangeIndex" | "mapAirspaceClassCRangeIndex" | "mapAirspaceClassDRangeIndex" | "mapAirspaceRestrictedRangeIndex" | "mapAirspaceMoaRangeIndex" | "mapAirspaceOtherRangeIndex" | "mapTrafficShow" | "mapTrafficRangeIndex" | "mapTrafficLabelShow" | "mapTrafficLabelRangeIndex" | "mapTrafficAlertLevelMode" | "mapNexradShow" | "mapNexradRangeIndex" | "mapTrackVectorShow" | "mapTrackVectorLookahead" | "mapAltitudeArcShow" | "mapWindVectorShow" | "mapAirspaceShow" | "mapAirportShow" | "mapInsetMode" | "mapInsetTextCumulative"

Parameters

NameType
nameK

Returns

UserSetting<NonNullable<G3000MapUserSettingTypes[K]>>

Inherit Doc

Implementation of

UserSettingManager.getSetting

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:63


mapTo

mapTo<M>(map): UserSettingManager<M & Omit<MapUserSettingTypes, G3000MapDelegatedUserSettingNames> & G3000SpecificMapUserSettingTypes>

Type parameters

NameType
Mextends UserSettingRecord

Parameters

NameType
mapUserSettingMap<M, G3000MapUserSettingTypes>

Returns

UserSettingManager<M & Omit<MapUserSettingTypes, G3000MapDelegatedUserSettingNames> & G3000SpecificMapUserSettingTypes>

Inherit Doc

Implementation of

UserSettingManager.mapTo

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:78


tryGetSetting

tryGetSetting<K>(name): K extends "mapRangeIndex" | "mapOrientation" | "mapAutoNorthUpActive" | "mapAutoNorthUpRangeIndex" | "mapGroundNorthUpActive" | "mapDeclutter" | "mapTerrainMode" | "mapTerrainRangeIndex" | "mapTerrainScaleShow" | "mapAirportLargeRangeIndex" | "mapAirportMediumRangeIndex" | "mapAirportSmallRangeIndex" | "mapVorShow" | "mapVorRangeIndex" | "mapNdbShow" | "mapNdbRangeIndex" | "mapIntersectionShow" | "mapIntersectionRangeIndex" | "mapUserWaypointShow" | "mapUserWaypointRangeIndex" | "mapAirspaceClassBRangeIndex" | "mapAirspaceClassCRangeIndex" | "mapAirspaceClassDRangeIndex" | "mapAirspaceRestrictedRangeIndex" | "mapAirspaceMoaRangeIndex" | "mapAirspaceOtherRangeIndex" | "mapTrafficShow" | "mapTrafficRangeIndex" | "mapTrafficLabelShow" | "mapTrafficLabelRangeIndex" | "mapTrafficAlertLevelMode" | "mapNexradShow" | "mapNexradRangeIndex" | "mapTrackVectorShow" | "mapTrackVectorLookahead" | "mapAltitudeArcShow" | "mapWindVectorShow" | keyof G3000SpecificMapUserSettingTypes ? UserSetting<G3000MapUserSettingTypes[K]> : undefined

Type parameters

NameType
Kextends string

Parameters

NameType
nameK

Returns

K extends "mapRangeIndex" | "mapOrientation" | "mapAutoNorthUpActive" | "mapAutoNorthUpRangeIndex" | "mapGroundNorthUpActive" | "mapDeclutter" | "mapTerrainMode" | "mapTerrainRangeIndex" | "mapTerrainScaleShow" | "mapAirportLargeRangeIndex" | "mapAirportMediumRangeIndex" | "mapAirportSmallRangeIndex" | "mapVorShow" | "mapVorRangeIndex" | "mapNdbShow" | "mapNdbRangeIndex" | "mapIntersectionShow" | "mapIntersectionRangeIndex" | "mapUserWaypointShow" | "mapUserWaypointRangeIndex" | "mapAirspaceClassBRangeIndex" | "mapAirspaceClassCRangeIndex" | "mapAirspaceClassDRangeIndex" | "mapAirspaceRestrictedRangeIndex" | "mapAirspaceMoaRangeIndex" | "mapAirspaceOtherRangeIndex" | "mapTrafficShow" | "mapTrafficRangeIndex" | "mapTrafficLabelShow" | "mapTrafficLabelRangeIndex" | "mapTrafficAlertLevelMode" | "mapNexradShow" | "mapNexradRangeIndex" | "mapTrackVectorShow" | "mapTrackVectorLookahead" | "mapAltitudeArcShow" | "mapWindVectorShow" | keyof G3000SpecificMapUserSettingTypes ? UserSetting<G3000MapUserSettingTypes[K]> : undefined

Inherit Doc

Implementation of

UserSettingManager.tryGetSetting

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:58


useDisplayPaneSettings

useDisplayPaneSettings(index): void

Switches the source of this manager's settings to a set of display pane map settings.

Parameters

NameTypeDescription
indexControllableDisplayPaneIndexThe index of the display pane.

Returns

void

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:45


usePfdSettings

usePfdSettings(index): void

Switches the source of this manager's settings to a set of PFD map settings.

Parameters

NameTypeDescription
indexPfdIndexThe index of the PFD.

Returns

void

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:53


whenSettingChanged

whenSettingChanged<K>(name): Consumer<NonNullable<G3000MapUserSettingTypes[K]>>

Type parameters

NameType
Kextends "mapRangeIndex" | "mapOrientation" | "mapAutoNorthUpActive" | "mapAutoNorthUpRangeIndex" | "mapGroundNorthUpActive" | "mapDeclutter" | "mapTerrainMode" | "mapTerrainRangeIndex" | "mapTerrainScaleShow" | "mapAirportLargeRangeIndex" | "mapAirportMediumRangeIndex" | "mapAirportSmallRangeIndex" | "mapVorShow" | "mapVorRangeIndex" | "mapNdbShow" | "mapNdbRangeIndex" | "mapIntersectionShow" | "mapIntersectionRangeIndex" | "mapUserWaypointShow" | "mapUserWaypointRangeIndex" | "mapAirspaceClassBRangeIndex" | "mapAirspaceClassCRangeIndex" | "mapAirspaceClassDRangeIndex" | "mapAirspaceRestrictedRangeIndex" | "mapAirspaceMoaRangeIndex" | "mapAirspaceOtherRangeIndex" | "mapTrafficShow" | "mapTrafficRangeIndex" | "mapTrafficLabelShow" | "mapTrafficLabelRangeIndex" | "mapTrafficAlertLevelMode" | "mapNexradShow" | "mapNexradRangeIndex" | "mapTrackVectorShow" | "mapTrackVectorLookahead" | "mapAltitudeArcShow" | "mapWindVectorShow" | "mapAirspaceShow" | "mapAirportShow" | "mapInsetMode" | "mapInsetTextCumulative"

Parameters

NameType
nameK

Returns

Consumer<NonNullable<G3000MapUserSettingTypes[K]>>

Inherit Doc

Implementation of

UserSettingManager.whenSettingChanged

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/MapAliasedUserSettingManager.ts:68