new GeoHashGridAggParameter(options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.supermap.GeoHashGridAggParameter(options);
  
  // 弃用的写法
  new SuperMap.GeoHashGridAggParameter(options);
</script>
// ES6 Import
import { GeoHashGridAggParameter } from '@supermapgis/iclient-ol';
new GeoHashGridAggParameter(options);
        
        
        
            common/iServer/GeoHashGridAggParameter.js, line 8
        
        
    | Name | Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            
            Object | 
                
                 可选参数。 
  | 
        
Extends
Members
- 
    
aggFieldNamestring
 - 
    
    
聚合字段。
 - 
    
aggNamestring
 - 
    
    
聚合名称。
 - 
    
aggTypeBucketAggType
 - 
    
    
格网聚合类型。
- Default Value: BucketAggType.GEOHASH_GRID
 
 
precisionnumber
网格中数字的精度。
- Default Value: 5
 
subAggsArray.<MetricsAggParameter>
子聚合类集合。
Methods
- 
    
static toJsonParameters(param){Object}
common/iServer/GeoHashGridAggParameter.js, line 43 - 
    
    
将对象转为 JSON 格式。
Name Type Description param转换对象。
Returns:
Type Description Object