Class: DataFlowView

DataFlowView

数据流组件类。

new DataFlowView(options)

Usage
import { DataFlowView } from '@supermapgis/iclient-leaflet';

new DataFlowView(options);
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.Components.DataFlowView({paramsNames});
  // 弃用的写法

  L.supermap.components.dataFlow(options);
</script>
leaflet/components/dataflow/DataFlowView.js, line 10
Name Type Description
options Object

参数。

Name Type Default Description
position string 'topright' 可选

组件在地图中显示的位置( 'topleft'|'topright'|'bottomleft'|'bottomright' )。

style function 可选

默认图层样式。返回类型:点样式( maker|circleMaker);线和面样式( L.path )。
function (feature) { return { fillColor: "red", fillOpacity: 1, radius: 6, weight: 0 }; }

onEachFeature function 可选

给该元素绑定事件和弹窗。

Version:
  • 9.1.1
Fires

Extends

DataFlowView -> ComponentsViewBase -> L.Control

Events

dataupdated

leaflet/components/dataflow/DataFlowView.js, line 168

数据流服务成功返回数据后触发。

Properties:
Name Type Description
result Object

事件返回的数据对象。

Methods

inherited off(eventType, callback)

leaflet/components/ComponentsViewBase.js, line 78

事件关闭。

Name Type Description
eventType string

监听的事件名。

callback function

监听事件的回调函数。

inherited on(eventType, callback)

leaflet/components/ComponentsViewBase.js, line 68

事件绑定。

Name Type Description
eventType string

监听的事件类型。

callback function

监听事件的回调函数。