首页 / 浏览问题 / WebGIS / 问题详情
超图FAQ:cesium里scene.open,打开第二个场景仍然显示第一个场景,该如何处理?
64,468EXP 2024年08月19日
cesium里scene.open,打开第二个场景仍然显示第一个场景,该如何处理?

1个回答

【问题原因】接口使用问题 【解决方法】open(url, sceneName, options) 工作空间中有多个场景,需要指定场景名称;设置为undefined,默认打开第一个。示例代码为:var promise = scene.open('http://{s}.supermap.com:8090/iserver/services/3D-BIM3/rest/realspace',undefined,{ subdomains: ['t1', 't2'],//子域 autoSetView : false //不自动定位 }); promise.then(function(layers){});
64,468EXP 2024年08月19日
热门文章
关注我们
...