Members
readonly credit : Credit|undefined
获取在执行地理编码后显示的版权信息。通常这用于标注
地理编码服务的来源。
Methods
static Cesium.GeocoderService.getCreditsFromResult(geocoderResult) → Array.<Credit>|undefined
从地理编码结果的归属信息中解析版权(credit),如果存在的话。
| Name | Type | Description |
|---|---|---|
geocoderResult |
GeocoderService.Result | 地理编码结果 |
Returns:
如果结果中存在,则为版权(credit)列表,否则为 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> |
