Class: MetricsAggParameter

MetricsAggParameter

指标聚合查询参数类,该参数仅支持数据来源 Elasticsearch 服务的Supermap iServer的rest数据服务。

new MetricsAggParameter(options)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.supermap.MetricsAggParameter(options);
  
  // 弃用的写法
  new SuperMap.MetricsAggParameter(options);

</script>

// ES6 Import
import { MetricsAggParameter } from '@supermap/iclient-ol';

new MetricsAggParameter(options);

common/iServer/MetricsAggParameter.js, line 9
Name Type Description
options Object

可选参数。

Name Type Default Description
aggType MetricsAggType 'avg' 可选

聚合类型。

Extends

Members

aggFieldNamestring

聚合字段。

aggNamestring

聚合名称。

指标聚合类型。

Default Value:
MetricsAggType.AVG