Skip to content

KBE3D / KBCore / Cesium / Geocoder

类: Geocoder

A widget for finding addresses and landmarks, and flying the camera to them. Geocoding is performed using Cesium ion

.

参数

Object with the following properties:

参数

The DOM element or ID that will contain the widget.

参数

The Scene instance to use.

参数

The geocoder services to be used

参数

True if the geocoder should query as the user types to autocomplete

参数

The duration of the camera flight to an entered location, in seconds.

参数

A callback function that is called after a successful geocode. If not supplied, the default behavior is to fly the camera to the result destination.

属性

container

container: Element

Gets the parent container.


searchSuggestionsContainer

searchSuggestionsContainer: Element

Gets the parent container.


viewModel

viewModel: GeocoderViewModel

Gets the view model.

方法

isDestroyed()

isDestroyed(): boolean

返回

boolean

true if the object has been destroyed, false otherwise.


destroy()

destroy(): void

Destroys the widget. Should be called if permanently removing the widget from layout.

返回

void

构造函数

构造函数

new Geocoder(options: { container: string | Element; scene: Scene; geocoderServices?: GeocoderService[]; autoComplete?: boolean; flightDuration?: number; destinationFound?: DestinationFoundFunction; }): Geocoder

参数

options
container

string | Element

scene

Scene

geocoderServices?

GeocoderService[]

autoComplete?

boolean

flightDuration?

number

destinationFound?

DestinationFoundFunction

返回

Geocoder

KBE3D @3.0.0 Copyright © 2024-present KBE3D