Name |
Type |
Description |
options |
Object
|
optional
参数选项:
Name |
Type |
Description |
viewer |
Viewer
|
optional
关联视图对象 |
actionType |
String
|
optional
控件动作类型:"draw"为绘制模型,"edit"为编辑模型 |
symbolOptions |
Cesium.Color
|
optional
绘制模型对象构造参数,具体参数设置可以参考symbolType所对应的模型符号类文档 |
|
- Author:
-
Example:
let funcModel = function (model) {
console.log(model);
};
var drawModeWidget = new Cesium.DrawModelWidget({
viewer: viewer,
url: '/geomap-api/JsCesuimDemo/resource/models/CesiumMilkTruck/CesiumMilkTruck.gltf',
maximumScale : 20,
scale: 1,
editEnabled: false,
libData: libData,
layer: elementLayer
}, funcModel);