我想将shapefile显示给arcgis js。我正在使用此https://github.com/Esri/add-shapefile-js,但必须在浏览器上传。所以如何从目录或本地文件夹加载。我试过这段代码。
function file(){
var namashp;
namashp = 'http://localhost/addshapefile/shp.zip';
generateFeatureCollection(namashp);
错误:未捕获的TypeError:无法读取未定义的属性“expand”