Drag and Drop zipped shapefile

3389
5
08-03-2015 07:39 AM
TimWitt2
MVP Alum

Hey everybody,

I was wondering if anybody has ever added the functionality of dropping a zipped shapefile into a map and then draw it. I know that the following drag and drop example exists Drag and drop to display data | ArcGIS API for JavaScript  but it does not include zipped shapefiles. There is also this example Add shapefile | ArcGIS API for JavaScript  that lets you add zipped shapefiles via multipart/form-data.

Maybe it is possible to populate the multipart/form-data via a drag and drop event?

Thanks,

Tim

0 Kudos
5 Replies
RebeccaStrauch__GISP
MVP Emeritus

Have you looked at Add Shapefile Widget   by  Nathan Strout  yet

(I added to resource list 7/30/15 ... I haven't tested myself yet)

TimWitt2
MVP Alum

Hey Rebecca,

I am not using WAB for this map and it seems he just brought over the code I have posted above. Thanks for the link though.

Tim

0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

Ahh sorry Tim...saw "functionality" and thought "widget"    It's a Monday!

0 Kudos
TimWitt2
MVP Alum

Haha, it is still a good resource in case I need this functionality in my WAB App!

0 Kudos
TimWitt2
MVP Alum

I'm surprised nobody has tackled this problem yet

0 Kudos