Skip to content

ui/map/shapes/shapeCommand

Interfaces

ShapePoint

Defined in: ui/map/shapes/shapeCommand.ts:9

A drawn point in {lat, lng} form (BaseDrawingManager's DrawingPoint).

Properties

lat
lat: number;

Defined in: ui/map/shapes/shapeCommand.ts:10

lng
lng: number;

Defined in: ui/map/shapes/shapeCommand.ts:11


ShapeCommandSpec

Defined in: ui/map/shapes/shapeCommand.ts:17

Properties

name
name: string;

Defined in: ui/map/shapes/shapeCommand.ts:18

type
type: ShapeType;

Defined in: ui/map/shapes/shapeCommand.ts:19

points
points: ShapePoint[];

Defined in: ui/map/shapes/shapeCommand.ts:24

The placed points. Areas/lines use all of them; a box is its two opposite corners; a circle is [centre, point-on-rim].

topAltitude
topAltitude: number | null;

Defined in: ui/map/shapes/shapeCommand.ts:26

Top/bottom altitude in feet; both null = no vertical extent.

bottomAltitude
bottomAltitude: number | null;

Defined in: ui/map/shapes/shapeCommand.ts:27

Type Aliases

ShapeType

type ShapeType = "area" | "line" | "circle" | "box";

Defined in: ui/map/shapes/shapeCommand.ts:15

The shape kinds offered by the draw modal.

Functions

buildShapeCommand()

function buildShapeCommand(spec): string;

Defined in: ui/map/shapes/shapeCommand.ts:38

Build the BlueSky command for a drawn shape: - line -> POLYLINE name,lat,lon,... - area with alts -> POLYALT name,top,bottom,lat,lon,... - area without alts -> POLY name,lat,lon,... - box -> BOX name,lat0,lon0,lat1,lon1[,top,bottom] - circle -> CIRCLE name,clat,clon,radius_nm[,top,bottom]

Parameters

spec

ShapeCommandSpec

Returns

string