Skip to content

Map

地图组件

Legend1

图例
线路类型
500kV
220kV
110kV
vue
<Legend1>
  <template #title>
    图例
  </template>
  <!-- 图例额外内容 -->
</Legend1>
参数类型默认值说明
legendGroupArraynull图例分组
layerListArray[]图层列表
defineExpose说明
showLegend图例是否显示
getSceneLegend获取图例
js
// 图层分组示例
const layerGroupExample = [

  {
    groupTitle: '线路类型',
    legendList: [
      { group: '线路', type: 'icon', code: 'xiexian', title: '500kV', color: '#B94842' },
      { type: 'icon', code: 'xiexian', color: '#2384DD', title: '220kV', group: '线路' },
      { group: '线路', title: '110kV', type: 'icon', code: 'xiexian', color: '#3EC65B' }
    ]
  }
]

Timeline1

vue
<Timeline1 />
参数类型默认值说明
dataArray[]时间轴数据
labelString'time'时间轴标签字段
intervalNumber500时间轴间隔,单位:毫秒

MapTitle

标题 · 副标题
第三标题
vue
<MapTitle mainTitle="标题" secondTitle="副标题" thirdTitle="第三标题" />
参数类型默认值说明
mainTitleString标题标题
secondTitleString副标题副标题
thirdTitleString第三标题第三标题