Timeline for Add a local GeoJSON file as a layer with GeoJsonLayer
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 17, 2019 at 20:43 | comment | added | Marcelo Villa | I'd ask a new question because other people can give a more relevant answer than me. However, if it is not too big, I'd publish it as a service or upload it to ArcGIS Online and consume it as a FeatureLayer. Other option is to read the GeoJSON and create a FeatureSet and ultimately a FeatureLayer so you can do it on the fly rather than storing it on AGOL. | |
Sep 17, 2019 at 17:07 | comment | added | gwydion93 | Yep, I'm using 3.x. Is there a way to do this (something similar) using the 3.x API? | |
Sep 17, 2019 at 16:54 | comment | added | Marcelo Villa |
What version of the API are you using? It seems like you are using 3.x but GeoJSONLayer is only implemented in 4.x.
|
|
Sep 17, 2019 at 16:43 | comment | added | gwydion93 |
This seems like it should work, but I am getting ane error: GET https://js.arcgis.com/3.24/esri/layers/GeoJSONLayer.js net::ERR_ABORTED 404
|
|
Sep 17, 2019 at 16:08 | history | edited | Marcelo Villa | CC BY-SA 4.0 |
deleted 2 characters in body
|
Sep 17, 2019 at 15:04 | history | edited | Marcelo Villa | CC BY-SA 4.0 |
edited body
|
Sep 17, 2019 at 14:54 | history | answered | Marcelo Villa | CC BY-SA 4.0 |