<template>
<sm3d-viewer :scene-url="sceneURL">
</sm3d-viewer>
</template>
加载场景能够成功,我在加载天地图影像时就报错了。
onMounted(() => {
viewer.imageryLayers.addImageryProvider(new SuperMap3D.TiandituImageryProvider({
url: URL_CONFIG.TDT_IMG,
// eslint-disable-next-line no-undef
mapStyle: SuperMap3D.TiandituMapsStyle.IMG_C,
key: '4a00a1dc5387b8ed8adba3374bd87e5e'
}));
});
提示我SuperMap3D is not defined。这个添加图层到底应该怎么写?