Class: ContinuousLeaks

ContinuousLeaks

连续泄露模拟 用于在地图上渲染有毒有害物质在某方向上连续泄露影响的范围

const contLeaks = new ContinuousLeaks(this.viewer);
contLeaks.add(new Position(117.94990376, 38.0211159, 10), {
  xfxrbjl: 289,
  hfxrbzyjldyx: 175,
  hfxrbjl: 42,
  xfxzdjl: 331,
  hfxzdzyjldyx: 200,
  hfxzdjl: 48,
  angle: 90,
  type: "psAndCb",
  style:{
    psStyle:{},
    cbStyle:{},
    psLineStyle:{},
    psLabelStyle:{},
    cbLineStyle:{},
    cbLabelStyle:{},
  }
});

new ContinuousLeaks(viewer)

app/business/ContinuousLeaks.js, line 72
Name Type Description
viewer Viewer

视图

Classes

ContinuousLeaks

Methods

add(position, options)

app/business/ContinuousLeaks.js, line 110
Name Type Description
position module:base~Position

泄漏位置

options *

渲染参数

Name Type Description
xfxrbjl Number

下风向燃爆局李

hfxrbzyjldyx Number

下风向燃爆最远距离

hfxrbjl Number

下风向燃爆距离

xfxzdjl Number

下风向中毒距离

hfxzdzyjldyx Number

横风向中毒最远距离

hfxzdjl Number

横风向中毒距离

angle Number

角度

type String

泄露类型 可选"psAndCb"|"ps"|"cb" 燃爆与中毒、中毒、燃爆

style *

参考Polygon的样式

Name Type Description
psStyle *

中毒样式

cbStyle *

燃爆样式

psLineStyle *

中毒辅助线样式

psLabelStyle *

中毒辅助线文字样式

cbLineStyle *

燃爆辅助线样式

cbLabelStyle *

燃爆辅助线文字样式

clear()

app/business/ContinuousLeaks.js, line 167

清除,清除后可继续添加

remove()

app/business/ContinuousLeaks.js, line 157

清除,清除后不可继续添加