Class: Geocoder

Geocoder

new Geocoder()

用于查找地址和地标,并让相机飞到指定地点的小工具。使用Service Key

Name Type Default Description
options.container Element | String

包含 widget 的 DOM 元素或 ID。

options.scene Scene

要使用的场景实例。

options.flightDuration Number 1.5 可选

相机飞行到输入位置的持续时间,以秒为单位。

Members

containerElement

获取父容器。

获取视图模型。

Methods

destroy()

销毁部件。如果要从布局中永久删除 widget,应调用该命令。

isDestroyed(){Boolean}

Returns:
Type Description
Boolean 如果对象已被销毁,则为 true,否则为 false。