vue项目使用esri loader加载arcgis

效果如下图:
vue项目使用esri loader加载arcgis

操作如下:

  1. 引入esri loader

vue项目使用esri loader加载arcgis

  1. 加载进相应的js和css文件

vue项目使用esri loader加载arcgis

  1. 像普通html那样操作即可

完整代码如下:

},
beforeDestroy() {
if (this.view) {
// destroy the map view
this.view.container = null
}
}
}