Class: Geocoder

Glodon.CIMCube.Widgets. Geocoder

Geocoder

new Geocoder(options)

该控件用于进行地名搜索和定位.地名搜索服务使用POISearchService
Parameters:
Name Type Description
options Object Object with the following properties:
Properties
Name Type Argument Default Description
container Element | String 提供DOM 节点或 节点ID,该节点用于容纳本控件
scene Scene Viewer.scene对象
geocoderServices Array.<GeocoderService> <optional>
地名搜索服务,默认为POISearchService
autoComplete Boolean <optional>
true True if the geocoder should query as the user types to autocomplete
flightDuration Number <optional>
1.5 相机飞行至选定地址所用时间,以秒为单位
destinationFound function <optional>
当用户选择地名后,会对该函数进行回调,传入参数为实例

Methods


destroy()

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

isDestroyed()

Returns:
true if the object has been destroyed, false otherwise.
Type
Boolean