Importing a shapefile onto a map in arcgis js

220
0
06-08-2017 12:38 AM
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?

Reply
0 Kudos
0 Replies