new ServiceQueryParameter()
Properties:
| Name | Type | Description |
|---|---|---|
QueryOptionType.ATTRIBUTE |
number | 查询结果中只有属性。 |
QueryOptionType.ATTRIBUTEANDGEOMETRY |
number | 查询结果中包含属性和几何对象。 |
QueryOptionType.GEOMETR |
number | 查询结果中只有几何对象。 |
- Source:
Methods
(static) createObj() → {Promise.<ServiceQueryParameter>}
创建一个ServiceQueryParameter参数
- Source:
Returns:
- Type
- Promise.<ServiceQueryParameter>
(static) getExpectRecordCount() → {Promise}
获取期望返回的查询记录个数。
- Source:
Returns:
- Type
- Promise
(static) getQueryBounds() → {Promise.<Rectangle2D>}
获取查询范围。
- Source:
Returns:
- Type
- Promise.<Rectangle2D>
(static) getQueryDistance() → {Promise}
返回查询的距离。
- Source:
Returns:
- Type
- Promise
(static) getQueryGeometry() → {Promise.<Geometry>}
返回查询的几何对象。
- Source:
Returns:
- Type
- Promise.<Geometry>
(static) getQueryLayerName() → {Promise}
获取查询的图层名称。
- Source:
Returns:
- Type
- Promise
(static) getQueryMapName() → {Promise}
获取服务查询的地图的名称。
- Source:
Returns:
- Type
- Promise
(static) getQueryOption() → {Promise}
返回查询结果内容类型。
- Source:
Returns:
- Type
- Promise
(static) getQueryServiceName() → {Promise}
获取当前查询的服务的实例的服务名称。
- Source:
Returns:
- Type
- Promise
(static) setExpectRecordCount(count) → {Promise.<void>}
设置期望返回的查询记录个数。
Parameters:
| Name | Type | Description |
|---|---|---|
count |
number | 设置期望返回的查询记录个数。 |
- Source:
Returns:
- Type
- Promise.<void>
(static) setQueryBounds(rectangle2D) → {Promise.<void>}
设置查询范围。
Parameters:
| Name | Type | Description |
|---|---|---|
rectangle2D |
object | 查询范围。 |
- Source:
Returns:
- Type
- Promise.<void>
(static) setQueryDistance(distance) → {Promise.<void>}
设置查询的距离。
Parameters:
| Name | Type | Description |
|---|---|---|
distance |
number | 查询距离 |
- Source:
Returns:
- Type
- Promise.<void>
(static) setQueryGeometry(geometry) → {Promise.<void>}
设置查询的几何对象。
Parameters:
| Name | Type | Description |
|---|---|---|
geometry |
object | 要设置的几何对象。 |
- Source:
Returns:
- Type
- Promise.<void>
(static) setQueryLayerName(queryLayerName) → {Promise.<void>}
设置当前查询的图层的名称。
Parameters:
| Name | Type | Description |
|---|---|---|
queryLayerName |
string | 设置当前查询的图层的名称。 |
- Source:
Returns:
- Type
- Promise.<void>
(static) setQueryMapName(mapName) → {Promise.<void>}
设置查询地图的地图名称。
Parameters:
| Name | Type | Description |
|---|---|---|
mapName |
string | 设置查询地图的地图名称。 |
- Source:
Returns:
- Type
- Promise.<void>
(static) setQueryOption(queryOptionType) → {Promise.<void>}
设置查询结果内容类型。
Parameters:
| Name | Type | Description |
|---|---|---|
queryOptionType |
ServiceQueryParameter.QueryOptionType | 查询结果内容类型 |
- Source:
Returns:
- Type
- Promise.<void>
(static) setQueryServiceName(name) → {Promise.<void>}
获取当前查询的服务的实例的服务名称。
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | 当前查询的服务的实例的服务名称。 |
- Source:
Returns:
- Type
- Promise.<void>
(static) toJson() → {Promise.<void>}
转成Json格式对象
- Source:
Returns:
- Type
- Promise.<void>