Is it possible to load a json file, converted from a shape file, on a map using the API ?

988
2
10-22-2016 05:22 PM
JohnCaterino
New Contributor

Is it possible to load a json file, that I converted from a shape file, on a map using the API ?  Ultimately I need to be able to load data that that is generated from a script.  Are there any other options besides json and KML that will allow points and polylines created as a text based file?  I am just trying to create a basic connectivity map.  Apologies for my ignorance!!

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

John,

   Sure you use esriRequest to get the json file and then build a FeatureLayer using FeatureCollection. See this sample:

Feature collection | ArcGIS API for JavaScript 3.18 

0 Kudos
JohnCaterino
New Contributor

Thanks!!!     I will give it a shot.  Sadly it will take me a day or two as I attempt to pay my dues working it out.  I will return to "Mark Correct" & Helpful "yes" .... or ask for more help.   Thanks again!!!

0 Kudos