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
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)
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
Ahh sorry Tim...saw "functionality" and thought "widget" It's a Monday!
Haha, it is still a good resource in case I need this functionality in my WAB App!
I'm surprised nobody has tackled this problem yet