new DataFlowLayer(url, options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.DataFlowLayer(url, options);
  
  // 弃用的写法
  L.supermap.dataFlowLayer(url, options);
  
</script>
// ES6 Import
import { DataFlowLayer } from '@supermapgis/iclient-leaflet';
new DataFlowLayer(url, options);
        
        
        | 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 几何要素对象。