MilitaryPlotting

MilitaryPlotting

态势标绘主类

Constructor

new MilitaryPlotting(viewer)

Description:
  • 构造函数

Source:
Parameters:
Name Type Description
viewer Object

地图场景对象

Members

(readonly) results :Entity

Description:
  • 标绘结果对象集,Entity类对象,参考Cesium,主要借助Parent管理

Source:

标绘结果对象集,Entity类对象,参考Cesium,主要借助Parent管理

Type:
  • Entity

Methods

DrawAssemble(options, callback)

Description:
  • 绘制集结地

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制集结地参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawAttackArrow(options, callback)

Description:
  • 绘制攻击箭头

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制攻击箭头参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawBillboard(options, callback)

Description:
  • 绘制广告版

Source:
Parameters:
Name Type Description
options PlotBillboard

绘制广告版参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawBow(options, callback)

Description:
  • 绘制弓形

Source:
Parameters:
Name Type Description
options PlotPolyline

绘制弓形参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawCircle(options, callback)

Description:
  • 绘制圆

Source:
Parameters:
Name Type Description
options PlotColor

绘制圆参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawCurve(options, callback)

Description:
  • 绘制圆滑曲线

Source:
Parameters:
Name Type Description
options PlotPolyline

绘制曲线参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawElliptic(options, callback)

Description:
  • 绘制椭圆

Source:
Parameters:
Name Type Description
options PlotColor

绘制椭圆参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawFlag(options, callback)

Description:
  • 绘制旗标

Source:
Parameters:
Name Type Description
options PlotFlag

绘制旗标参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawFormation(options, callback)

Description:
  • 绘制阵型

Source:
Parameters:
Name Type Description
options PlotFormation

绘制阵型参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawFreeLine(options, callback)

Description:
  • 绘制自由线

Source:
Parameters:
Name Type Description
options PlotPolyline

绘制自由线参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawFreePolygon(options, callback)

Description:
  • 绘制自由多边形

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制自由多边形参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawLabel(options, callback)

Description:
  • 绘制文本

Source:
Parameters:
Name Type Description
options PlotLabel

绘制文本参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawLineArrow(options, callback)

Description:
  • 绘制简单箭头-包括直线和曲线

Source:
Parameters:
Name Type Description
options PlotPolyline

绘制简单箭头参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawPincerArrow(options, callback)

Description:
  • 绘制钳击箭头

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制钳击箭头参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawPoint(options, callback)

Description:
  • 绘制点

Source:
Parameters:
Name Type Description
options PlotPoint

绘制点参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawPolygon(options, callback)

Description:
  • 绘制多边形

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制多边形参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawPolyline(options, callback)

Description:
  • 绘制折线

Source:
Parameters:
Name Type Description
options PlotPolyline

绘制折线参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawRectangle(options, callback)

Description:
  • 绘制矩形

Source:
Parameters:
Name Type Description
options PlotColor

绘制矩形参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawRegularPolygon(options, callback)

Description:
  • 绘制正多边形

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制正多边形参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawRightAngleArrow(options, callback)

Description:
  • 绘制直角箭头

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制直角箭头参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawRoundRectangle(options, callback)

Description:
  • 绘制圆角矩形

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制圆角矩形参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawSector(options, callback)

Description:
  • 绘制扇形

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制扇形参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawStraightArrow(options, callback)

Description:
  • 绘制直线箭头

Source:
Parameters:
Name Type Description
options PlotPolygon

绘制直线箭头参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

DrawSwallowtailArrow(options, callback)

Description:
  • 绘制燕尾箭头

Source:
Parameters:
Name Type Description
options PlotArrow

绘制燕尾箭头参数,不传参为{}

callback entityCallback

回调函数,Entity对象,参照Cesium

remove(item) → {Entity}

Description:
  • 移除指定标绘对象

Source:
Parameters:
Name Type Description
item Entity

待移除对象

Returns:

移除后的Entity父元素

Type
Entity

removeAll()

Description:
  • 清除所有标绘对象

Source:

removeById(id) → {Entity}

Description:
  • 移除指定id的标绘对象

Source:
Parameters:
Name Type Description
id string

待移除对象id

Returns:

移除后的Entity父元素

Type
Entity