POST
|
Hi Blake, The esriRequest makes it possible to request data, yes, but it is not clear where to request the data. I have solved it by requesting geojson data directly from the Feature Service. Luckily, the layer is publicly available, so I don't need to worry about tokens. Using the terraformer/arcgis library to convert arcgis JSON to geojson is way too slow. The geojson data CAN be converted with shp-write, however, you need to use the fixes done here, in order to export polygons: https://github.com/hwbllmnn/shp-write/tree/master/src It would be nice, if an export feature was available in the JS API right out of the box, but it obviously isn't. People expect to be able to work with shapefiles in ESRI products. 🙂
... View more
03-22-2021
12:24 AM
|
0
|
1
|
1553
|
POST
|
Hello, I need to let my users export data from an ArcGIS Online FeatureService as a shapefile. I am aware of solutions based on the shp-write JS library. However, the process of converting ArcGIS JSON to geojson and then exporting this is way too slow and buggy. The shp-write library do not have proper support for saving multiple polygons in one shapefile. I have stumpled upon this: https://developers.arcgis.com/rest/analysis/api-reference/extract-data.htm This seems to be exactly what I need. Is it possible to call this from the ArcGIS JS API? The REST API refers to an "analysis url", for example: http://<analysis url>/ExtractData/submitJob Is it possible to get such a thing for ArcGIS Online, or is it limited to on premise ArcGIS Server solutions?
... View more
03-17-2021
03:34 AM
|
0
|
3
|
1657
|
POST
|
Hi Owen, Thanks for the answers and recommendations! It is unfortunate that we cannot do this, but we will make do with a link to the tool and some graphics in the StoryMap.
... View more
09-03-2020
07:30 AM
|
0
|
0
|
4349
|
POST
|
Hi Owen, Thanks for the quick response! We want to embed a website running a screening tool based on ArcGIS JS API. The tool loads data (geometries and tables) from ArcGIS Online and performs various distance and intersect calculations to build a screening result table. The user is able to filter the results and export to PDF and Excel. The Story Map is used to explain the functionality and output of the tool. The data is unfortunately not publicly available, so I cannot share a version of the tool that actually works without login and access to the ArcGIS Online layers. The PDF and Excel files are created client side using different JS libraries. Both libraries are dependent on being able to initiate a file download through code, which is what is being blocked by the iframe sandbox. This is the cleanest solution, as everything runs on the client machine. Alternatively, we need to create and store the exports server side, provide a link to the user and then remove the exported files from the server once the file is downloaded. This is a bit messy and requires a rewrite of the exporting using server side libraries, which we would rather avoid if possible. For now we have to provide a link to the tool as you suggest. However, we want to use an interactive Story Map to guide the user, and having to open new tabs messes that user experience up. Thanks for looking into this. I hope you will be able to provide a way to allow the downloads in the future.
... View more
08-31-2020
03:33 AM
|
0
|
2
|
4349
|
POST
|
It is not possible to download files through embedded content in Story Maps using a Chromium browser. The iframe element should contain sandbox="allow-downloads". This has been a requirement since Chrome 83: Download in Sandboxed Iframes - Chrome Platform Status Add spec for 'sandboxed downloads' flag by xyaoinum · Pull Request #4293 · whatwg/html · GitHub The generated iframe code currently inclides sandbox="allow-scripts allow-same-origin allow-forms allow-popups". I have tried adding the allow-downloads attribute in a custom iframe code, but the attribute is removed by Story Maps automatically. This feature is quite essential to a tool we are developing, and would be nice to see implemented as soon as possible.
... View more
08-27-2020
06:46 AM
|
1
|
4
|
4433
|
Title | Kudos | Posted |
---|---|---|
1 | 08-27-2020 06:46 AM |
Online Status |
Offline
|
Date Last Visited |
07-13-2022
07:00 AM
|