什么叫cesium直接调用react页面,你是想把cesium嵌入react的页面吗
我的理解是这样的:react和vue是一种mvvm的框架 但其实cesium也只是纯前端的东西,只要react和cesium不冲突 完全是可以的,官网也说了:不冲突,而且是支持 react框架 和 threed.js框架的。threed.js应该叫库
这个看你用球是正球,还是椭球。
正球好算,椭球就麻烦了。在大地测量学里的白塞尔算法是比较好的计算椭球上两点距离的算法。
正球计算大圆弧长就行了。椭球的话,大地测量学里有高斯算法(这算法近距离精度可以,300公里以内吧),白塞尔的方法远近都还好,算着麻烦!
跨域是服务器端问题
Geoserver用的是tomcat,你设置tomcat
配置页面代理,这个你从网上找一下
但是相机不是光源
new Cesium.ShadowMap(options) Use Viewer#shadowMap to get the scene's shadow map originating from the sun. Do not construct this directly.
The normalOffset bias pushes the shadows forward slightly, and may be disabled for applications that require ultra precise shadows.
写得很清楚啊 from the sun