dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
Viewpoint Class
Describes a point of view for a 2D or 3D view.
ArcGIS Maps SDK for JavaScript
public class Viewpoint : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Viewpoint
Constructors
Viewpoint() Constructor
Parameterless constructor for use as a Razor Component.
public Viewpoint();
Viewpoint(Geometry, Nullable, Nullable, Camera) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public Viewpoint(dymaptic.GeoBlazor.Core.Components.Geometries.Geometry? targetGeometry=null, System.Nullable<double> scale=null, System.Nullable<double> rotation=null, dymaptic.GeoBlazor.Core.Components.Camera? camera=null);
Parameters
targetGeometry
Geometry
The target geometry framed by the viewpoint.
ArcGIS Maps SDK for JavaScript
scale
System.Nullable<System.Double>
The scale of the viewpoint.
ArcGIS Maps SDK for JavaScript
rotation
System.Nullable<System.Double>
The rotation of due north in relation to the top of the view in degrees.
default 0
ArcGIS Maps SDK for JavaScript
camera
Camera
The viewpoint camera (3D only).
ArcGIS Maps SDK for JavaScript
Properties
Viewpoint.Camera Property
The viewpoint camera (3D only).
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Camera? Camera { get; set; }
Property Value
Viewpoint.Rotation Property
The rotation of due north in relation to the top of the view in degrees.
public System.Nullable<double> Rotation { get; set; }
Property Value
System.Nullable<System.Double>
Viewpoint.Scale Property
The scale of the viewpoint.
public System.Nullable<double> Scale { get; set; }
Property Value
System.Nullable<System.Double>
Viewpoint.TargetGeometry Property
The target geometry framed by the viewpoint.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Geometries.Geometry? TargetGeometry { get; set; }
Property Value
Methods
Viewpoint.GetCamera() Method
Asynchronously retrieve the current value of the Camera property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Camera?> GetCamera();
Returns
System.Threading.Tasks.Task<Camera>
Viewpoint.GetRotation() Method
Asynchronously retrieve the current value of the Rotation property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetRotation();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
Viewpoint.GetScale() Method
Asynchronously retrieve the current value of the Scale property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetScale();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
Viewpoint.GetTargetGeometry() Method
Asynchronously retrieve the current value of the TargetGeometry property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Geometry?> GetTargetGeometry();
Returns
System.Threading.Tasks.Task<Geometry>
Viewpoint.SetCamera(Camera) Method
Asynchronously set the value of the Camera property after render.
public System.Threading.Tasks.Task SetCamera(dymaptic.GeoBlazor.Core.Components.Camera? value);
Parameters
value
Camera
The value to set.
Returns
Viewpoint.SetRotation(Nullable) Method
Asynchronously set the value of the Rotation property after render.
public System.Threading.Tasks.Task SetRotation(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
Viewpoint.SetScale(Nullable) Method
Asynchronously set the value of the Scale property after render.
public System.Threading.Tasks.Task SetScale(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
Viewpoint.SetTargetGeometry(Geometry) Method
Asynchronously set the value of the TargetGeometry property after render.
public System.Threading.Tasks.Task SetTargetGeometry(dymaptic.GeoBlazor.Core.Components.Geometries.Geometry? value);
Parameters
value
Geometry
The value to set.
Returns
Viewpoint.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()