我现在发布了三维空间的数据,加载到地图上是悬空的,跟高程数据不贴合,能否将加载的三维矢量瓦片服务贴和道地表上?加载三维矢量瓦片服务代码:
url = import.meta.env.VITE_ISERVER_URL + "3D-G235/rest/realspace";
var promise = scene.open(url, "LM@0G235", {
autoSetView: true
});
Cesium.when.all(promise, async (layers) => {
layers.map(item => {
item.indexedDBSetting.isAttributesSave = true;
})
if (!scene.pickPositionSupported) {
alert('不支持深度纹理,无法拾取位置!');
}
},
function (e) {
if (widget._showRenderLoopErrors) {
var title = '加载SCP失败,请检查网络连接状态或者url地址是否正确?';
widget.showErrorPanel(title, undefined, e);
}
});
加载后效果为: