首页 / 浏览问题 / 三维GIS / 问题详情
在调用PlotEditControl接口是提示scene 未定义
67EXP 2020年05月26日

我参考那个三维标绘的demo,但在我调用new Cesium.PlotEditControl(scene, plottingLayer)这个接口时,提示scene未定义,但我前面明明定义好的,调试的时候也是有值的,但就是接口调用时就提示未定义了

1个回答

您好,我这边用范例代码试了一下并没有出现您的问题。(http://support.supermap.com.cn:8090/webgl/examples/editor.html#plot_modifySymbolStyle

您可以根据范例再更改一下您的代码。

2,560EXP 2020年05月26日

这个HTML是在服务器上吗?

不是的您可以参考一下这篇文章(https://blog.csdn.net/qq_36368339/article/details/105081448

你好,我是基于require写的,我在 调用new Cesium.PlotEditControl(scene, plottingLayer)这个接口时,还是提示scene未定义 ,我前面的plottingLayer是可以拿到的,这是什么原因呢?应该也不是包的问题,我用现在的包跑官网的demo是没有问题的
你好,你这个问题解决了没,我的也是
...