new Cesium.Geocoder(options)

找到地址和地标的部件 然后把摄像机飞到它们身上 地理编码为 performed using Cesium ion.
Name Type Description
options object 下列属性的对象 :
Name Type Default Description
container Element | string The DOM element or ID that will contain the widget.
scene Scene The Scene instance to use.
geocoderServices Array.<GeocoderService> optional 将使用的地理编码器服务
autoComplete boolean 事实 optional 如果地理编码器作为自动完成的用户类型查询, 则为真
flightDuration number 1.5 optional 相机飞往输入位置的飞行时间,以秒计.
destinationFound Geocoder.DestinationFoundFunction GeocoderViewModel.flyToDestination optional 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.

Members

container : Element

得到母容器.

searchSuggestionsContainer : Element

得到母容器.

viewModel : GeocoderViewModel

获得观音模型.

Methods

destroy()

摧毁部件。 如果永久调用, 应该调用 从布局中删除部件 .

isDestroyed()boolean

Returns:
如果物体已被销毁, 则真实无误 .

Type Definitions

Cesium.Geocoder.DestinationFoundFunction(viewModel, destination)

一个处理成功地理编码结果的函数.
Name Type Description
viewModel GeocoderViewModel 观音模型.
destination Cartesian3 | Rectangle 地理代码的目的地结果.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.