Class: GeoHashGridAggParameter

SuperMap.GeoHashGridAggParameter

Grid aggregation query parameter class, which only supports data services from the Elasticsearch service.

new SuperMap.GeoHashGridAggParameter(option)

GeoHashGridAggParameter.js, line 6
Name Type Description
option Object

Initializes the argument.

Name Type Default Description
precision number 5 optional

The precision of the numbers in the grid.

aggType SuperMap.AggregationType SuperMap.AggregationType.GEOHASH_GRID optional

Grid aggregation type.

Members

Grid aggregation type.

Default Value:
SuperMap.AggregationType.GEOHASH_GRID

precisionnumber

The precision of the numbers in the grid.

Default Value:
5

Methods

SuperMap.GeoHashGridAggParameter.toJsonParameters(param){string|object}

GeoHashGridAggParameter.js, line 38

Convert the object to JSON format.

Name Type Description
param

The object that needs to be converted.

Returns:
Type Description
string | object