AnsweredAssumed Answered

Add point by coordinate on a map!

Question asked by ilyass on Nov 18, 2014
Latest reply on Nov 18, 2014 by kenbuja

Dear all,

 

I am currently working on the closest facilities sample in ArcGIS API for JavaScript.

In the sample code they are adding a number of points to the map by using:

 

map.addLayer(facilitiesGraphicsLayer);
        facilitiesGraphicsLayer
.add(new Graphic(new Point(-13625960,4549921,map.spatialReference)));

 

I created a groupe of point in ArcMap and have their (x,y) coordinate using WGS 1984 Coordinate System and Decimal Degrees us units.

When i replace the values i could not find my points on the map!!

 

I think the problem is coming from my coordinate system and units i use??

 

If someone could provide me with some support i would be very gratefull.

Outcomes