XbsjEarthUI icon indicating copy to clipboard operation
XbsjEarthUI copied to clipboard

earthsdk使用后好像不能进行地图的二维,三维切换了

Open vtxf opened this issue 5 years ago • 0 comments

earthsdk使用后好像不能进行地图的二维,三维切换了

目前很多对象都是只能在三维上加载,如果切换到二维会报错;如果一定要切换到二维: 1 可以在创建Earth时,传入参数scene3DOnly: false, 和Cesium的Viewer创建是一致的。 2 需要删掉三维对象。

创建地球的示例在这里:

http://earthsdk.com/v/last/Apps/Examples/?menu=true&url=./startup-createEarth.html

            earth = new XE.Earth('earthContainer', {
                // 这里设置Viewer的配置,和new Viewer(container, options)中的options一致
                homeButton: true,
                timeline: true,
			  	scene3DOnly: false,
			  	sceneMode: Cesium.SceneMode.SCENE2D,
            });

vtxf avatar Jan 10 '20 03:01 vtxf