new Cesium.IonGeocoderService(options)

通过 NT 0 离子提供地理编码.
Name Type Description
options object 下列属性的对象 :
Name Type Default Description
scene Scene The scene
accessToken string Ion.defaultAccessToken optional The access token to use.
server string | Resource Ion.defaultServer optional The resource to the Cesium ion API server.
geocodeProviderType IonGeocodeProviderType IonGeocodeProviderType.DEFAULT optional The geocoder the Cesium ion API server should use to fulfill this request.
See:

Members

readonly credit : Credit|undefined

在完成地理代码后获得显示的信用值 。 通常,这是用来信用的 地理编码器服务.

geocodeProviderType : IonGeocodeProviderType

用于满足地理编码请求的 Cesium 离子 API 服务器的地理编码服务.
Default Value: IonGeocodeProviderType.DEFAULT

Methods

geocode(query, type)Promise.<Array.<GeocoderService.Result>>

Name Type Default Description
query string 要发送到地理编码器服务的查询
type GeocodeType GeocodeType.SEARCH optional The type of geocode to perform.
Returns:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.