AnsweredAssumed Answered

ArcGIS SDK for .NET: Setting Scene.InitialViewPoint

Question asked by JenLink on May 20, 2018

Hello,

 

I would like to set the InitialViewPoint for a Scene, but when I use the following code, the location is set correctly, but the scale is not. This same code works fine when setting the InitialViewPoint of a map. Is there something I'm missing? 

 

Thanks!

Jen

 

SpatialReference spRef = new SpatialReference(3857);

MapPoint point = new MapPoint(-9935003, 6176383, spRef);

Scene.InitialViewpoint = new Viewpoint(new MapPoint(-9935003, 6176383, spRef), 50000);

Outcomes