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
| Parameter | Type | Description |
|---|---|---|
waypoint | MapRunwayOutlineWaypoint | The waypoint associated with this icon. |
priority | number | 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? | MapRunwayDesignationImageCache | The cache from which this icon retrieves runway designation images. If not defined, this icon will not render runway designations. |
Returns
MapRunwayOutlineIcon
Properties
priority
readonlypriority: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
waypoint
readonlywaypoint:MapRunwayOutlineWaypoint
Defined in: src/garminsdk/components/map/MapRunwayOutlineIcon.ts:139
The waypoint associated with this icon.
Implementation of
Methods
draw()
draw(
context,mapProjection):void
Defined in: src/garminsdk/components/map/MapRunwayOutlineIcon.ts:166
Renders this icon to a canvas.
Parameters
| Parameter | Type | Description |
|---|---|---|
context | CanvasRenderingContext2D | The canvas 2D rendering context to which to render. |
mapProjection | MapProjection | The projection to use for rendering. |
Returns
void