Class: FireAndExplode

FireAndExplode

火灾爆炸模拟 在地图上渲染一定半径内火灾或爆炸的受影响范围

  const fireAndExplode = new FireAndExplode(this.viewer);
  fireAndExplode.add(new Position(117.94990376, 38.0211159, 10), {
    data: [
      {
        radius: 100,
        name: "重伤"
      },
      {
        radius: 50,
        name: "死亡",
        style: {
          fill: true,
          material: Cesium.Color.ORANGE.withAlpha(0.5)
        },
        lineStyle: {
          material: Color.fromCssColor('rgba(241,12,12,0.5)'),
          clampToGround: true,
          width: 10
        },
        labelStyle: {
          text: "XX米",
          direction: 'right',
          fillColor: Color.WHITE
        }
      }
    ],
    isGuide:true,//是否添加辅助线
    isFlyTo:true,//是否飞到图形
  });

new FireAndExplode(Viewer)

app/business/FireAndExplode.js, line 60
Name Type Description
Viewer Viewer

视图

Classes

FireAndExplode
FireAndExplode

Methods

add(position, options)

app/business/FireAndExplode.js, line 96

添加模拟模型

Name Type Description
position module:base~Position

泄露位置

options *
Name Type Description
data Array

模拟数据

Name Type Description
radius Number

半径

name String

名字

style Object

总样式,包括模拟图形样式和部分辅助线样式

Name Type Description
fill Boolean

是否填充颜色

material Object

填充颜色

lineStyle Object

辅助线样式 参考Polyline的样式

labelStyle Object

文字属性 参考Label的样式及参数

isGuide Object

辅助线

isFlyTo Object

绘制结束是否定位至模拟结果

add(position, options)

app/business/FireAndExplode.js, line 96

添加模拟模型

Name Type Description
position module:base~Position

泄露位置

options *
Name Type Description
data Array

模拟数据

Name Type Description
radius Number

半径

name String

名字

style Object

总样式,包括模拟图形样式和部分辅助线样式

Name Type Description
fill Boolean

是否填充颜色

material Object

填充颜色

lineStyle Object

辅助线样式 参考Polyline的样式

labelStyle Object

文字属性 参考Label的样式及参数

isGuide Object

辅助线

isFlyTo Object

绘制结束是否定位至模拟结果

remove()

app/business/FireAndExplode.js, line 115

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

remove()

app/business/FireAndExplode.js, line 115

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

FireAndExplode FireAndExplode

火灾爆炸模拟 在地图上渲染一定半径内火灾或爆炸的受影响范围

  const fireAndExplode = new FireAndExplode(this.viewer);
  fireAndExplode.add(new Position(117.94990376, 38.0211159, 10), {
    data: [
      {
        radius: 100,
        name: "重伤"
      },
      {
        radius: 50,
        name: "死亡",
        style: {
          fill: true,
          material: Cesium.Color.ORANGE.withAlpha(0.5)
        },
        lineStyle: {
          material: Color.fromCssColor('rgba(241,12,12,0.5)'),
          clampToGround: true,
          width: 10
        },
        labelStyle: {
          text: "XX米",
          direction: 'right',
          fillColor: Color.WHITE
        }
      }
    ],
    isGuide:true,//是否添加辅助线
    isFlyTo:true,//是否飞到图形
  });

new FireAndExplode(Viewer)

app/business/FireAndExplode.js, line 60
Name Type Description
Viewer Viewer

视图

Classes

FireAndExplode
FireAndExplode

Methods

add(position, options)

app/business/FireAndExplode.js, line 96

添加模拟模型

Name Type Description
position module:base~Position

泄露位置

options *
Name Type Description
data Array

模拟数据

Name Type Description
radius Number

半径

name String

名字

style Object

总样式,包括模拟图形样式和部分辅助线样式

Name Type Description
fill Boolean

是否填充颜色

material Object

填充颜色

lineStyle Object

辅助线样式 参考Polyline的样式

labelStyle Object

文字属性 参考Label的样式及参数

isGuide Object

辅助线

isFlyTo Object

绘制结束是否定位至模拟结果

add(position, options)

app/business/FireAndExplode.js, line 96

添加模拟模型

Name Type Description
position module:base~Position

泄露位置

options *
Name Type Description
data Array

模拟数据

Name Type Description
radius Number

半径

name String

名字

style Object

总样式,包括模拟图形样式和部分辅助线样式

Name Type Description
fill Boolean

是否填充颜色

material Object

填充颜色

lineStyle Object

辅助线样式 参考Polyline的样式

labelStyle Object

文字属性 参考Label的样式及参数

isGuide Object

辅助线

isFlyTo Object

绘制结束是否定位至模拟结果

remove()

app/business/FireAndExplode.js, line 115

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

remove()

app/business/FireAndExplode.js, line 115

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