new Geocoder()
A small tool used to search for addresses and landmarks, and to fly the camera to a specified location. Use Service Key
| Name | Type | Default | Description |
|---|---|---|---|
options.container |
Element | String |
The DOM element or ID that contains the widget. |
|
options.scene |
Scene |
The scenario instance to be used. |
|
options.flightDuration |
Number | 1.5 |
optional
The duration of the camera's flight to the input position, measured in seconds. |
Members
-
containerElement
-
Retrieve the parent container.
-
viewModelGeocoderViewModel
-
Obtain the view model.
Methods
-
destroy()
-
Destruction of components. If you want to permanently delete a widget from the layout, you should call this command.
-
isDestroyed(){Boolean}
-
Returns:
Type Description Boolean If the object has been destroyed, it is true; otherwise, it is false.