Appearance
KBE3D / KBCore / Cesium / IonGeocoderService
类: IonGeocoderService
Provides geocoding through Cesium ion.
参数
Object with the following properties:
参数
The scene
参数
The access token to use.
参数
The resource to the Cesium ion API server.
参数
The geocoder the Cesium ion API server should use to fulfill this request.
属性
credit
readonlycredit:Credit|undefined
Gets the credit to display after a geocode is performed. Typically this is used to credit the geocoder service.
geocodeProviderType
geocodeProviderType:
IonGeocodeProviderType
The geocoding service that Cesium ion API server should use to fulfill geocding requests.
方法
geocode()
geocode(
query:string,type?:GeocodeType):Promise<Result[]>
参数
query
string
The query to be sent to the geocoder service
type?
The type of geocode to perform.
返回
Promise<Result[]>
构造函数
构造函数
new IonGeocoderService(
options: {scene:Scene;accessToken?:string;server?:string|Resource;geocodeProviderType?:IonGeocodeProviderType; }):IonGeocoderService
参数
options
scene
accessToken?
string
server?
string | Resource
geocodeProviderType?
返回
IonGeocoderService
