Class: Picking

Picking

用于三维坐标拾取,支持单点/多点坐标拾取。

const picking_ = new Picking({
  viewer: viewer
});
picking_.turnOn(false, evt => {
  console.log(evt);
});

new Picking(options)

tools/Picking.js, line 30

构造一个对象

Name Type Description
options Object

Picking对象的初始化参数

Name Type Description
viewer Viewer

当前三维的Viewer

Classes

Picking

Methods

turnOff()

tools/Picking.js, line 102

关闭坐标拾取

turnOn(isSingle, callback){Object}

tools/Picking.js, line 49

开启坐标拾取

Name Type Description
isSingle Boolean

是否为单次坐标拾取

callback function

回调函数

Returns:
Type Description
Object 提取的地理坐标对象