Read Data from Json and Plot Points in Map

1717
2
03-20-2012 09:44 PM
MuraliK
New Contributor
Hi,

  I'm New to ArcGIS and Json, now i need to plot points which is present in Json file.
  Give some example.

Thanks
0 Kudos
2 Replies
nicogis
MVP Frequent Contributor
you can read your json with:
-esri.request (see sample
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/data_requestJson.html)
-build the point with esri.geometry.Point(json)
  

   var point = new esri.geometry.Point( {"x": -122.65, "y": 45.53," spatialReference": {" wkid": 4326 } });


-build graphic

  var simpleMarkerSymbol = new esri.symbol.SimpleMarkerSymbol();
  var graphic = new esri.Graphic(point, simpleMarkerSymbol);
  
-add in map

   map.graphics.add(graphic);
0 Kudos
MuraliK
New Contributor
Hi,

   How to give more than one point manually?
0 Kudos