Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vtxf opened this issue Jan 10, 2020 · 0 comments
Open

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

vtxf opened this issue Jan 10, 2020 · 0 comments

Comments

@vtxf
Copy link
Collaborator

vtxf commented Jan 10, 2020

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,
            });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant