dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components

LayerView Class

Represents the view for a single layer after it has been added to either a
MapView or a SceneView.
ArcGIS Maps SDK for JavaScript

public class LayerView : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 LayerView

Derived
↳ CSVLayerView
↳ FeatureLayerView
↳ GeoJSONLayerView
↳ GeoRSSLayerView
↳ GraphicsLayerView
↳ ImageryLayerView
↳ KMLLayerView
↳ WFSLayerView

Constructors

LayerView() Constructor

Parameterless constructor for use as a Razor Component.

public LayerView();

LayerView(LayerType, Nullable, Nullable, Nullable, Nullable, Nullable, Nullable) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public LayerView(dymaptic.GeoBlazor.Core.Enums.LayerType type, System.Nullable<bool> spatialReferenceSupported=null, System.Nullable<bool> suspended=null, System.Nullable<bool> updating=null, System.Nullable<bool> visibleAtCurrentScale=null, System.Nullable<bool> visibleAtCurrentTimeExtent=null, System.Nullable<bool> visible=null);

Parameters

type LayerType

The type of layer view.

spatialReferenceSupported System.Nullable<System.Boolean>

Indicates if the spatialReference of the MapView is supported by the layer view.
ArcGIS Maps SDK for JavaScript

suspended System.Nullable<System.Boolean>

Value is true if the layer is suspended (i.e., layer will not redraw or update itself when the extent changes).
ArcGIS Maps SDK for JavaScript

updating System.Nullable<System.Boolean>

Indicates if the layer view is making any updates that will impact what is displayed on the map.
default false
ArcGIS Maps SDK for JavaScript

visibleAtCurrentScale System.Nullable<System.Boolean>

When true, the layer is visible in the view at the current scale.
default true
ArcGIS Maps SDK for JavaScript

visibleAtCurrentTimeExtent System.Nullable<System.Boolean>

When true, the layer is visible in the view’s timeExtent.
default true
ArcGIS Maps SDK for JavaScript

visible System.Nullable<System.Boolean>

When true, the layer is visible in the view.
default true
ArcGIS Maps SDK for JavaScript

Properties

LayerView.SpatialReferenceSupported Property

Indicates if the spatialReference of the MapView is supported by the layer view.
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> SpatialReferenceSupported { get; set; }

Property Value

System.Nullable<System.Boolean>

LayerView.Suspended Property

Value is true if the layer is suspended (i.e., layer will not redraw or update
itself when the extent changes).
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> Suspended { get; set; }

Property Value

System.Nullable<System.Boolean>

LayerView.Type Property

Identifies the layer view type.

public virtual System.Nullable<dymaptic.GeoBlazor.Core.Enums.LayerType> Type { get; set; }

Property Value

System.Nullable<LayerType>

LayerView.Updating Property

Indicates if the layer view is making any updates that will impact what is displayed on the map.
default false
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> Updating { get; set; }

Property Value

System.Nullable<System.Boolean>

LayerView.VisibleAtCurrentScale Property

When true, the layer is visible in the view at the current scale.
default true
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> VisibleAtCurrentScale { get; set; }

Property Value

System.Nullable<System.Boolean>

LayerView.VisibleAtCurrentTimeExtent Property

When true, the layer is visible in the view’s timeExtent.
default true
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> VisibleAtCurrentTimeExtent { get; set; }

Property Value

System.Nullable<System.Boolean>

Methods

LayerView.GetSpatialReferenceSupported() Method

Asynchronously retrieve the current value of the SpatialReferenceSupported property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetSpatialReferenceSupported();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

LayerView.GetSuspended() Method

Asynchronously retrieve the current value of the Suspended property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetSuspended();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

LayerView.GetUpdating() Method

Asynchronously retrieve the current value of the Updating property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetUpdating();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

LayerView.GetVisibleAtCurrentScale() Method

Asynchronously retrieve the current value of the VisibleAtCurrentScale property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetVisibleAtCurrentScale();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

LayerView.GetVisibleAtCurrentTimeExtent() Method

Asynchronously retrieve the current value of the VisibleAtCurrentTimeExtent property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetVisibleAtCurrentTimeExtent();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

LayerView.IsFulfilled() Method

isFulfilled() may be used to verify if creating an instance of the class is fulfilled (either resolved or rejected).
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<System.Nullable<bool>> IsFulfilled();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

LayerView.IsRejected() Method

isRejected() may be used to verify if creating an instance of the class is rejected.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<System.Nullable<bool>> IsRejected();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

LayerView.IsResolved() Method

isResolved() may be used to verify if creating an instance of the class is resolved.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<System.Nullable<bool>> IsResolved();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Boolean>>

LayerView.When(Func, Func) Method

when() may be leveraged once an instance of the class is created.
param errback The function to execute when the promise fails.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<string?> When(System.Func<System.Threading.Tasks.Task> callback, System.Func<System.Threading.Tasks.Task> errback);

Parameters

callback System.Func<System.Threading.Tasks.Task>

The function to call when the promise resolves.

errback System.Func<System.Threading.Tasks.Task>

The function to execute when the promise fails.

Returns

System.Threading.Tasks.Task<System.String>