如何在arcgis js中显示目录中的shapefile

时间:2017-09-10 05:28:42

标签: javascript arcgis

我想将shapefile显示给arcgis js。我正在使用此https://github.com/Esri/add-shapefile-js,但必须在浏览器上传。所以如何从目录或本地文件夹加载。我试过这段代码。

   function file(){
   var namashp;
   namashp = 'http://localhost/addshapefile/shp.zip';
   generateFeatureCollection(namashp);

错误:未捕获的TypeError:无法读取未定义的属性“expand”

0 个答案:

没有答案