SuperMap iClient3D 11i(2023) for WebGL_WebGPU
import * as SuperMap3D from './SuperMap3D-es6.js' console.log(" ~ SuperMap3D:", SuperMap3D) var viewer = new SuperMap3D.Viewer('viewer');
引入后页面报错,请问是为什么
好的,这是截图 ,用的是SuperMap iClient3D 11i(2023) for WebGL_WebGPU
webgl不支持模块化导入,您需要在html中引入js文件
<script type="text/javascript" src="static/SuperMap3D/SuperMap3D.js"></script> <script type="text/javascript" src="static/SuperMap/SuperMap.Include.js"></script>