new DataFlowLayer(url, options)
Usage
import { DataFlowLayer } from '@supermapgis/iclient-leaflet';
new DataFlowLayer(url, options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.DataFlowLayer({paramsNames});
// 弃用的写法
L.supermap.dataFlowLayer(url, options);
</script>| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
服务地址。 |
||||||||||||||||||||||||||||||||||||
options |
Object |
参数。
|
Fires
Extends
Events
-
dataupdated
leaflet/overlay/DataFlowLayer.js, line 147 -
图层数据更新成功后触发。
Properties:
Name Type Description layerObject 更新数据成功的图层。
dataObject 更新的要素。
-
setfilterparamsucceeded
leaflet/overlay/DataFlowLayer.js, line 99 -
过滤参数设置成功后触发。
Properties:
Name Type Description eObject 事件对象。
-
subscribefailed
leaflet/overlay/DataFlowLayer.js, line 91 -
初始化失败后触发。
Properties:
Name Type Description eObject 事件对象。
-
subscribesucceeded
leaflet/overlay/DataFlowLayer.js, line 84 -
初始化成功后触发。
Properties:
Name Type Description eObject 事件对象。
Methods
-
setExcludeField(excludeField)
leaflet/overlay/DataFlowLayer.js, line 122 -
设置过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。
Name Type Description excludeFieldstring 过滤字段。
-
setGeometry(geometry)
leaflet/overlay/DataFlowLayer.js, line 133 -
设置空间范围,只有在该范围内的要素才能被接收。
Name Type Description geometryGeoJSONObject 待设置的 GeoJSON 几何要素对象。