Importing a shapefile onto a map in arcgis js

382
0
06-08-2017 12:38 AM
DylanBulteel
New Contributor II

var genRequest = request({
      url: portalUrl + '/sharing/rest/content/features/generate',
      content: myContent,
      form: dom.byId('uploadForm2'),
      handleAs: 'json',
      load: lang.hitch(this, function (response) {
         if (response.error) {
            return;
         }
         addShapefileToMap(response.featureCollection);
      }),
});

Is there any way of carrying out the generate process by passing a file url instead of a form?

0 Kudos
0 Replies