Skip to content

Documentation / @geoverse/core-ol / DrawResult

Interface: DrawResult

Defined in: packages/core-ol/src/interactions/drawTool.ts:49

绘制完成回调载荷

Properties

interaction

ts
interaction: DrawTool;

Defined in: packages/core-ol/src/interactions/drawTool.ts:60


msg

ts
msg: "geoverse:draw";

Defined in: packages/core-ol/src/interactions/drawTool.ts:61


target

ts
target: {
  center: Coordinate | null;
  coordinates: Coordinate | Coordinate[];
  feature: Feature;
  radius: number | null;
  type: string;
};

Defined in: packages/core-ol/src/interactions/drawTool.ts:50

center

ts
center: Coordinate | null;

圆心(仅圆),其余为 null

coordinates

ts
coordinates: Coordinate | Coordinate[];

WGS-84 经纬度坐标(圆为圆心)

feature

ts
feature: Feature;

radius

ts
radius: number | null;

半径(仅圆,视图投影单位),其余为 null

type

ts
type: string;