public SpatialReference SpatialReference {get; set;}
Public Property SpatialReference As SpatialReference
public SpatialReference SpatialReference {get; set;}
Public Property SpatialReference As SpatialReference
public Task<Camera> ProjectCamera(Camera camera, ArcGIS.Core.Geometry.SpatialReference spatialReference) { return QueuedTask.Run(() => { var mapPoint = MapPointBuilder.CreateMapPoint(camera.X, camera.Y, camera.Z, camera.SpatialReference); var newPoint = GeometryEngine.Instance.Project(mapPoint, spatialReference) as MapPoint; var newCamera = new Camera() { X = newPoint.X, Y = newPoint.Y, Z = newPoint.Z, Scale = camera.Scale, Pitch = camera.Pitch, Heading = camera.Heading, Roll = camera.Roll, Viewpoint = camera.Viewpoint, SpatialReference = spatialReference }; return newCamera; }); }
Target Platforms: Windows 10, Windows 8.1, Windows 7