首页 / 浏览问题 / 三维GIS / 问题详情
网页使用clampToHeightMostDetailed获取高度报错
4EXP 2023年04月11日
11i使用clampToHeightMostDetailed报错, console.log(cartesian3s.slice(1,100),'cartesian3s'); console.log(viewer.scene,'viewer.scene') console.log(viewer.scene.clampToHeightMostDetailed(cartesian3s.slice(1,100)),'viewer.scene.clampToHeightMostDetailed(cartesian3s.slice(1,100))') viewer.scene.clampToHeightMostDetailed(cartesian3s.slice(1,100)).then(function (clampedCartesians) { console.log('clampedCartesians',clampedCartesians) }) 另起了一个vue项目,换了一个地方就没问题

1个回答

没太明白您的问题,方便描述的详细一些吗?

猜测您可能是需要这个博客https://blog.csdn.net/qq_40043761/article/details/119997317

或者是https://blog.csdn.net/supermapsupport/article/details/102806879

4,151EXP 2023年04月11日

        console.log(cartesian3s.slice(1,100),'cartesian3s');


        console.log(viewer.scene,'viewer.scene')
        console.log(viewer.scene.clampToHeightMostDetailed(cartesian3s.slice(1,100)),'viewer.scene.clampToHeightMostDetailed(cartesian3s.slice(1,100))')


        viewer.scene.clampToHeightMostDetailed(cartesian3s.slice(1,100)).then(function (clampedCartesians) {

          console.log('clampedCartesians',clampedCartesians)
        })


z这是代码和报错信息,

报错An error occurred while rendering.Rendering has stopped

详情可查看问题http://ask.supermap.com/108973

...