Skip to main content

Class: MapRunwayOutlineIcon

Defined in: src/garminsdk/components/map/MapRunwayOutlineIcon.ts:37

An icon which depicts a schematic outline of a runway.

Implements​

Constructors​

Constructor​

new MapRunwayOutlineIcon(waypoint, priority, options?, designationImgCache?): MapRunwayOutlineIcon

Defined in: src/garminsdk/components/map/MapRunwayOutlineIcon.ts:138

Constructor.

Parameters​

ParameterTypeDescription
waypointMapRunwayOutlineWaypointThe waypoint associated with this icon.
prioritynumber | Subscribable<number>The render priority of this icon, or a subscribable which provides it. Icons with higher priorities should be rendered above those with lower priorities.
options?Readonly<MapRunwayOutlineIconOptions>Styling options.
designationImgCache?MapRunwayDesignationImageCacheThe cache from which this icon retrieves runway designation images. If not defined, this icon will not render runway designations.

Returns​

MapRunwayOutlineIcon

Properties​

priority​

readonly priority: Subscribable<number>

Defined in: src/garminsdk/components/map/MapRunwayOutlineIcon.ts:69

The render priority of this icon. Icons with higher priorities will be rendered on top of icons with lower priorities.

Implementation of​

MapWaypointIcon.priority


waypoint​

readonly waypoint: MapRunwayOutlineWaypoint

Defined in: src/garminsdk/components/map/MapRunwayOutlineIcon.ts:139

The waypoint associated with this icon.

Implementation of​

MapWaypointIcon.waypoint

Methods​

draw()​

draw(context, mapProjection): void

Defined in: src/garminsdk/components/map/MapRunwayOutlineIcon.ts:166

Renders this icon to a canvas.

Parameters​

ParameterTypeDescription
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
mapProjectionMapProjectionThe projection to use for rendering.

Returns​

void

Implementation of​

MapWaypointIcon.draw