Methods
static Cesium.GeocoderService.getCreditsFromResult(geocoderResult) → Array.<Credit>|undefined
从地理编码结果的归属中解析出信用,如果存在的话。
| Name | Type | Description |
|---|---|---|
geocoderResult |
GeocoderService.Result | 地理编码结果 |
Returns:
如果结果中存在,则返回信用列表,否则返回 undefined
geocode(query, type) → Promise.<Array.<GeocoderService.Result>>
| Name | Type | Default | Description |
|---|---|---|---|
query |
string | 要发送到地理编码服务的查询 | |
type |
GeocodeType |
GeocodeType.SEARCH
|
optional 要执行的地理编码类型。 |
Returns:
Type Definitions
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
displayName |
string | 位置的显示名称 | |
destination |
Rectangle | Cartesian3 | 位置的边界框 | |
attributions |
Array.<object> |
<optional> |
