Class: FireAndExplode

FireAndExplode

FireAndExplode类,用于爆炸模型结果渲染

new FireAndExplode(this.$map)
  .add([122.140996, 29.952271], {
    data: [
      {
        radius: 100,
        name: "轻伤",
        gdStroke:{
          color: 'yellow',
          width: 4,
          lineDash: [10, 10]
        },
        textStyle: {
          fill: { color: 'yellow' },
          font: '20px 黑体',
          stroke: {
            color: 'blue',
            width: 2
          }
        }
      },
      {
        radius: 50,
        name: "死亡",
        style: {
          fill: {
            color: "red",
            opacity: 0.5
          },
          stroke: {
            color: "yellow"
          }
        },
        gdStroke:{
          color: 'yellow',
          width: 4,
          lineDash: [10, 10]
        },
        textStyle: {
          fill: { color: 'yellow' },
          font: '20px 黑体',
          stroke: {
            color: 'blue',
            width: 2
          }
        }
      },
      {
        radius: 80,
        name: "重伤",
        gdStroke:{
          color: 'red',
          width: 4,
          lineDash: [10, 10]
        },
        textStyle: {
          fill: { color: 'red' },
          font: '20px 黑体',
          stroke: {
            color: 'blue',
            width: 2
          }
        }
      }
    ],
    isGuide:true
  });

new FireAndExplode(map)

app/business/FireAndExplode.js, line 91

构造FireAndExplode对象

Name Type Description
map *

事故模拟渲染指定的map对象

Extends

Classes

FireAndExplode

Methods

add(position, options)

app/business/FireAndExplode.js, line 116

添加模拟模型数据,完成在地图渲染

Name Type Description
position Array

事发点坐标

options Object

模拟模型数据以及渲染样式和其他属性

Name Type Default Description
data Array

模拟数据

Name Type Description
radius Number

半径

name String

模拟圆名称,比如:重伤...

style Object

渲染样式,有默认值

Name Type Description
fill FillOptions

是否填充颜色

stroke StrokeOptions

填充颜色

isShowPopup Boolean false optional

是否弹窗显示模拟信息

animation Animation

事发点动画,有默认值

isShowGuide Boolean false optional

是否显示辅助线

data.gdStroke Object

辅助线渲染样式,有默认值

inherited clear()

app/business/Simulate.js, line 44

清空模拟渲染的结果