GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components.Layers
FeatureLayerProExtensions Class
Pro Extension methods for the FeatureLayer class.
public static class FeatureLayerProExtensions
Inheritance System.Object 🡒 FeatureLayerProExtensions
Methods
FeatureLayerProExtensions.AddAttachment(this FeatureLayer, Graphic, ElementReference) Method
Adds an attachment to a feature.
param attachment HTML form that contains a file upload field pointing to the file to be added as an attachment.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.FeatureEditResult?> AddAttachment(this dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer featureLayer, dymaptic.GeoBlazor.Core.Components.Graphic feature, Microsoft.AspNetCore.Components.ElementReference attachment);
Parameters
featureLayer
dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer
The dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer instance to extend with this method.
feature
dymaptic.GeoBlazor.Core.Components.Graphic
Feature to which the attachment is to be added.
attachment
Microsoft.AspNetCore.Components.ElementReference
HTML form that contains a file upload field pointing to the file to be added as an attachment.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.FeatureEditResult>
FeatureLayerProExtensions.DeleteAttachments(this FeatureLayer, Graphic, IReadOnlyCollection) Method
Deletes attachments from a feature.
param attachmentIds Ids of the attachments to be deleted.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.FeatureEditResult[]?> DeleteAttachments(this dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer featureLayer, dymaptic.GeoBlazor.Core.Components.Graphic feature, System.Collections.Generic.IReadOnlyCollection<long> attachmentIds);
Parameters
featureLayer
dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer
The dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer instance to extend with this method.
feature
dymaptic.GeoBlazor.Core.Components.Graphic
Feature containing attachments to be deleted.
attachmentIds
System.Collections.Generic.IReadOnlyCollection<System.Int64>
Ids of the attachments to be deleted.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.FeatureEditResult[]>
FeatureLayerProExtensions.QueryAttachments(this FeatureLayer, AttachmentQuery, CancellationToken) Method
Query information about attachments associated with features.
param options An object with the following properties.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<string?> QueryAttachments(this dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer featureLayer, dymaptic.GeoBlazor.Core.Model.AttachmentQuery attachmentQuery, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
featureLayer
dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer
The dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer instance to extend with this method.
attachmentQuery
dymaptic.GeoBlazor.Core.Model.AttachmentQuery
Specifies the attachment parameters for query.
cancellationToken
System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<System.String>
FeatureLayerProExtensions.QueryAttributeBins(this FeatureLayer, AttributeBinsQuery, CancellationToken) Method
Executes a AttributeBinsQuery against a feature service, which groups features into bins based on ranges in numeric or date fields, and returns a
AttributeBinsFeatureSet containing the series of bins.
param options An object with the following properties.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.AttributeBinsFeatureSet?> QueryAttributeBins(this dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer featureLayer, dymaptic.GeoBlazor.Pro.Model.AttributeBinsQuery binsQuery, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
featureLayer
dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer
The dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer instance to extend with this method.
binsQuery
AttributeBinsQuery
Specifies the parameters of the queryAttributeBins()
operation. The binParameters property must be set.
cancellationToken
System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<AttributeBinsFeatureSet>
FeatureLayerProExtensions.Save(this FeatureLayer, FeatureLayerSaveOptions) Method
Saves the layer to its existing portal item in the Portal
authenticated within the user’s current session.
param options.ignoreUnsupported Indicates whether to ignore saving unsupported layers or layers with unsupported content, such as unsupported symbology.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PortalItem?> Save(this dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer featureLayer, dymaptic.GeoBlazor.Pro.Options.FeatureLayerSaveOptions options);
Parameters
featureLayer
dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer
The dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer instance to extend with this method.
options
FeatureLayerSaveOptions
Various options for saving the layer.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PortalItem>
FeatureLayerProExtensions.SaveAs(this FeatureLayer, PortalItem, FeatureLayerSaveAsOptions) Method
Saves the layer to a new portal item in the Portal
authenticated within the user’s current session.
param options Various options for saving the layer.
param options.ignoreUnsupported Indicates whether to ignore saving unsupported layers or layers with unsupported content, such as unsupported symbology.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PortalItem?> SaveAs(this dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer featureLayer, dymaptic.GeoBlazor.Core.Components.PortalItem portalItem, dymaptic.GeoBlazor.Pro.Options.FeatureLayerSaveAsOptions options);
Parameters
featureLayer
dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer
The dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer instance to extend with this method.
portalItem
dymaptic.GeoBlazor.Core.Components.PortalItem
The portal item to which the layer will be saved.
options
FeatureLayerSaveAsOptions
- options.folder: The portal folder where the layer’s portal item will be saved.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PortalItem>
FeatureLayerProExtensions.UpdateAttachment(this FeatureLayer, Graphic, long, ElementReference) Method
Updates an existing attachment for a feature.
param attachmentId Id of the attachment to be updated.
ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.FeatureEditResult?> UpdateAttachment(this dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer featureLayer, dymaptic.GeoBlazor.Core.Components.Graphic feature, long attachmentId, Microsoft.AspNetCore.Components.ElementReference attachment);
Parameters
featureLayer
dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer
The dymaptic.GeoBlazor.Core.Components.Layers.FeatureLayer instance to extend with this method.
feature
dymaptic.GeoBlazor.Core.Components.Graphic
The feature containing the attachment to be updated.
attachmentId
System.Int64
Id of the attachment to be updated.
attachment
Microsoft.AspNetCore.Components.ElementReference
HTML form that contains a file upload field pointing to the file to be added as an attachment.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.FeatureEditResult>