Class: InstantLeak

InstantLeak

瞬时爆炸模拟 在地图上渲染有毒有害物质在某方向上瞬时泄露影响的范围,每个小泄露区域可点击查看基本信息

  const instantLink = new InstantLeak(viewer);
  instantLink.add(new Position(117.94990376, 38.0211159, 10), {
    radiusArr: [
      3.05,
      5.5,
      9.32,
      14.8,
      21.9,
      30.116,
      38.15,
      44.53,
      47.55,
      45.85,
      38.77,
      26.69,
      10.87
    ],
    distanceArr: [
      8.9,
      17.5,
      32.5,
      56.8,
      93.7,
      146.0,
      214.49,
      297.39,
      389.69,
      483.2,
      568.0,
      633.5,
      671.4
    ],
    angle: 90,
    isGuide:false,
    isFlyTo:true
  });

new InstantLeak(viewer)

app/business/InstantLeak.js, line 76
Name Type Description
viewer Viewer

视图

Classes

InstantLeak

Methods

add(position, options)

app/business/InstantLeak.js, line 118

添加模型

Name Type Description
position module:base~Position

泄露位置

options *
Name Type Description
radiusArr Array

半径数组

distanceArr Array

距离数组

angle Number

方向

isGuide Boolean

辅助线

style Object

模拟style

Name Type Description
material Color

填充颜色

outline Boolean

是否有轮廓

outlineColor Color

轮廓颜色

outlineWidth Number

轮廓宽度

lineStyle Object

辅助线style

Name Type Description
material Color

辅助线颜色

width Color

辅助线宽

labelStyle Object

注记style

Name Type Description
outlineColor Color

注记轮廓颜色

fillColor Color

注记填充颜色

font String

注记字体

clear()

app/business/InstantLeak.js, line 148

清空模拟图形,清空后可添加

remove()

app/business/InstantLeak.js, line 137

移除模拟图形,移除后不可添加