Can you use a json or geojson file in arcgis online where the data is dynamic?

1813
1
04-04-2017 03:58 PM
DorothyMortenson1
New Contributor II

I have a complex tabular dataset  that has lat/long values.

I would rather use a JSON or geoJSON file to allow the user to query what data range they want, then map the results.  I can only see where you download geojson (or csv file) and load it.  I don't see how that makes the data dynamic.It seems like in this model I would have to download the data every time, rather than it coming directly from a url.  Is this true? or is there a way to make it dynamic?

Tags (2)
1 Reply
BenElan
Esri Contributor

Hi Dorothy,

Are you getting the json from an API? You could try to grab the json with a fetch then load it using https://developers.arcgis.com/javascript/latest/guide/using-fromjson/index.html

alternatively: https://github.com/Esri/geojson-layer-js

0 Kudos