原链接:ArcGIS API for JavaScript 4.18基于ES Modules的新开发方式@arcgis/core
补充一点就是,需要在代码中加上
import esriConfig from "@arcgis/core/config.js";
esriConfig.assetsPath = "./assets";
具体原因参考:
官方说明
原链接:ArcGIS API for JavaScript 4.18基于ES Modules的新开发方式@arcgis/core
补充一点就是,需要在代码中加上
import esriConfig from "@arcgis/core/config.js";
esriConfig.assetsPath = "./assets";
具体原因参考:
官方说明