首页 / 浏览问题 / 三维GIS / 问题详情
修改s3m模型的bottomAltitude
67EXP 2021年07月20日

当一个s3m服务加载完成后,我想通过滑动条修改它的距底部的高度,但是没有效果

const stlayer = this.viewer.scene.layers.layerQueue.find(item=>item.name= name)
if(stlayer){
    stlayer.style3D.bottomAltitude=height
}

1个回答

您好,修改底部高层之后需要刷新图层才能生效。您那边是精模还是倾斜,如果是精模的话可以使用

setObjsTranslate(ids, translate)接口,动态设置模型的偏移量,只用修改高度即可
6,077EXP 2021年07月20日
...