AnsweredAssumed Answered

how to add point graphic to map?

Question asked by jtby on Sep 2, 2015
Latest reply on Sep 3, 2015 by bsvensson-esristaff

 

I am following the example to add a point to a 3D map found here;

 

https://developers.arcgis.com/javascript/beta/sample-code/3d/add-graphics/

 

... and the example works great for adding a point graphic to the map in London.

 

But I cannot change the location of the graphic that gets added. For example, I need to change the point to appear in Minnesota USA,  not London.  So I change the XY in the example from London to US like this:

 

var point = new Point({ x: -94.15011, y: 45.55305, z: 1500 }),

 

... but the point will not appear on the 3D map. It appears on the 2D map in the right spot. The problem appears to be the Z value. The only value that seems to work is 30000, and that puts the point up in the upper atmosphere. No other value for Z will display the point.

 

Can anyone help me understand where I am going wrong?  It must be simple I am sure!

 

 

Thank you!!

Outcomes