GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components.Layers
LayerProExtensions Class
Pro Extension methods for the Layer class.
public static class LayerProExtensions
Inheritance System.Object 🡒 LayerProExtensions
Methods
LayerProExtensions.CancelLoad(this Layer) Method
Cancels a load() operation if it is already in progress.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task CancelLoad(this dymaptic.GeoBlazor.Core.Components.Layers.Layer layer);
Parameters
layer
dymaptic.GeoBlazor.Core.Components.Layers.Layer
The dymaptic.GeoBlazor.Core.Components.Layers.Layer instance to extend with this method.
Returns
LayerProExtensions.CreateLayerView(this Layer, string, CancellationToken) Method
Called by the views, such as MapView and
SceneView, when the layer is added to the
Map.layers collection and a layer view must
be created for it.
param options An object specifying additional options. See the object specification table below for the required properties of this object.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.LayerView?> CreateLayerView(this dymaptic.GeoBlazor.Core.Components.Layers.Layer layer, string view, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
layer
dymaptic.GeoBlazor.Core.Components.Layers.Layer
The dymaptic.GeoBlazor.Core.Components.Layers.Layer instance to extend with this method.
view
System.String
The parent view.
cancellationToken
System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.LayerView>
LayerProExtensions.FetchAttributionData(this Layer) Method
Fetches custom attribution data for the layer when it becomes available.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<string?> FetchAttributionData(this dymaptic.GeoBlazor.Core.Components.Layers.Layer layer);
Parameters
layer
dymaptic.GeoBlazor.Core.Components.Layers.Layer
The dymaptic.GeoBlazor.Core.Components.Layers.Layer instance to extend with this method.
Returns
System.Threading.Tasks.Task<System.String>
LayerProExtensions.IsFulfilled(this Layer) 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 static System.Threading.Tasks.Task<System.Nullable<bool>> IsFulfilled(this dymaptic.GeoBlazor.Core.Components.Layers.Layer layer);
Parameters
layer
dymaptic.GeoBlazor.Core.Components.Layers.Layer
The dymaptic.GeoBlazor.Core.Components.Layers.Layer instance to extend with this method.
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
LayerProExtensions.IsRejected(this Layer) Method
isRejected()
may be used to verify if creating an instance of the class is rejected.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<System.Nullable<bool>> IsRejected(this dymaptic.GeoBlazor.Core.Components.Layers.Layer layer);
Parameters
layer
dymaptic.GeoBlazor.Core.Components.Layers.Layer
The dymaptic.GeoBlazor.Core.Components.Layers.Layer instance to extend with this method.
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
LayerProExtensions.IsResolved(this Layer) Method
isResolved()
may be used to verify if creating an instance of the class is resolved.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<System.Nullable<bool>> IsResolved(this dymaptic.GeoBlazor.Core.Components.Layers.Layer layer);
Parameters
layer
dymaptic.GeoBlazor.Core.Components.Layers.Layer
The dymaptic.GeoBlazor.Core.Components.Layers.Layer instance to extend with this method.
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
LayerProExtensions.When(this Layer, 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 static System.Threading.Tasks.Task<string?> When(this dymaptic.GeoBlazor.Core.Components.Layers.Layer layer, System.Func<System.Threading.Tasks.Task> callback, System.Func<System.Threading.Tasks.Task> errback);
Parameters
layer
dymaptic.GeoBlazor.Core.Components.Layers.Layer
The dymaptic.GeoBlazor.Core.Components.Layers.Layer instance to extend with this method.
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.