AnsweredAssumed Answered

Importing a shapefile onto a map in arcgis js

Question asked by nalydleetlub1 on Jun 8, 2017

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?

Outcomes