视图模型为 The view model for the
Geocoder widget.
| 名称 Name | 类型 Type | 说明 Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
具有以下属性的对象: Object with the following properties:
|
成员 Members
static Cesium.GeocoderViewModel.flyToDestination : Geocoder.DestinationFoundFunction
飞往成功地理编码找到的目的地的功能。 A function to fly to the destination found by a successful geocode.
如果地理编码器应在用户键入自动完成时进行查询,则为 true True if the geocoder should query as the user types to autocomplete
-
默认值: Default Value:
true
获取飞行完成时触发的事件。 Gets the event triggered on flight completion.
destinationFound : Geocoder.DestinationFoundFunction
获取和设置找到地理编码目标时调用的命令 Gets and sets the command called when a geocode destination is found
获取或设置相机飞行的持续时间(以秒为单位)。值为零会导致相机立即切换到地理编码位置。未定义时,将根据距离计算持续时间。 Gets or sets the the duration of the camera flight in seconds. A value of zero causes the camera to instantly switch to the geocoding location. The duration will be computed based on the distance when undefined.
-
默认值: Default Value:
undefined
获取一个值,该值指示当前是否正在进行搜索。这个性质是可以观察到的。 Gets a value indicating whether a search is currently in progress. This property is observable.
获取或设置一个值,该值指示此实例是否应始终显示其文本输入字段。 Gets or sets a value indicating if this instance should always show its text input field.
-
默认值: Default Value:
false
控制场景。 Gets the scene to control.
获取单击按钮时执行的命令。 Gets the Command that is executed when the button is clicked.
获取或设置要搜索的文本。文本可以是地址,也可以是经度、纬度和可选高度,其中经度和纬度的单位是度,高度的单位是米。 Gets or sets the text to search for. The text can be an address, or longitude, latitude, and optional height, where longitude and latitude are in degrees and height is in meters.
获取当前选择的地理编码器搜索建议 Gets the currently selected geocoder search suggestion
获取地理编码器搜索建议列表 Gets the list of geocoder search suggestions
方法 Methods
销毁小部件。如果从布局中永久删除小部件,则应调用。 Destroys the widget. Should be called if permanently removing the widget from layout.
销毁小部件。如果从布局中永久删除小部件,则应调用。 Destroys the widget. Should be called if permanently removing the widget from layout.
返回: Returns:
如果对象已被销毁,则为 true,否则为 false。 true if the object has been destroyed, false otherwise.
