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
I'm surprised nobody has tackled this problem yet
Haha, it is still a good resource in case I need this functionality in my WAB App!
Ahh sorry Tim...saw "functionality" and thought "widget" It's a Monday!
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.
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)
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.