GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components.Layers
GeoJSONLayerProExtensions Class
Pro Extension methods for the GeoJSONLayer class.
public static class GeoJSONLayerProExtensions
Inheritance System.Object 🡒 GeoJSONLayerProExtensions
Methods
GeoJSONLayerProExtensions.ApplyEdits(this GeoJSONLayer, GeoJSONLayerApplyEditsEdits) Method
Applies edits to features in a layer. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.FeatureEditsResult?> ApplyEdits(this dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer geoJSONLayer, dymaptic.GeoBlazor.Core.Model.GeoJSONLayerApplyEditsEdits edits);
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer instance to extend with this method.
edits
GeoJSONLayerApplyEditsEdits
Object containing features to be added, updated or deleted.
Returns
System.Threading.Tasks.Task<FeatureEditsResult>
GeoJSONLayerProExtensions.CreatePopupTemplate(this GeoJSONLayer, CreatePopupTemplateOptions) Method
Creates a popup template for the layer, populated with all the fields of the layer. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Popups.PopupTemplate?> CreatePopupTemplate(this dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer geoJSONLayer, dymaptic.GeoBlazor.Core.Options.CreatePopupTemplateOptions options);
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer instance to extend with this method.
options
CreatePopupTemplateOptions
Options for creating the popup template.
Returns
System.Threading.Tasks.Task<PopupTemplate>
GeoJSONLayerProExtensions.CreateQuery(this GeoJSONLayer) Method
Creates query parameter object that can be used to fetch features that satisfy the layer’s configurations such as definitionExpression. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.Query?> CreateQuery(this dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer geoJSONLayer);
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer instance to extend with this method.
Returns
System.Threading.Tasks.Task<Query>
GeoJSONLayerProExtensions.GetField(this GeoJSONLayer, string) Method
Returns the Field instance for a field name (case-insensitive). ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Field?> GetField(this dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer geoJSONLayer, string fieldName);
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer instance to extend with this method.
fieldName
System.String
Name of the field.
Returns
System.Threading.Tasks.Task<Field>
GeoJSONLayerProExtensions.GetFieldDomain(this GeoJSONLayer, string, GeoJSONLayerGetFieldDomainOptions) Method
Returns the Domain associated with the given field name. 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.Domain?> GetFieldDomain(this dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer geoJSONLayer, string fieldName, dymaptic.GeoBlazor.Pro.Options.GeoJSONLayerGetFieldDomainOptions options);
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer instance to extend with this method.
fieldName
System.String
Name of the field.
options
GeoJSONLayerGetFieldDomainOptions
An object specifying additional options. See the object specification table below for the required properties of this object.
Returns
System.Threading.Tasks.Task<Domain>
GeoJSONLayerProExtensions.QueryAttributeBins(this GeoJSONLayer, AttributeBinsQuery, CancellationToken) Method
Executes a AttributeBinsQuery against a GeoJSONLayer, 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.GeoJSONLayer geoJSONLayer, dymaptic.GeoBlazor.Pro.Model.AttributeBinsQuery binsQuery, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer 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>
GeoJSONLayerProExtensions.QueryExtent(this GeoJSONLayer, Query, CancellationToken) Method
Executes a Query against the layer and returns the Extent of features that satisfy the query. param options An object with the following properties. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.ExtentQueryResult?> QueryExtent(this dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer geoJSONLayer, dymaptic.GeoBlazor.Core.Model.Query query, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer instance to extend with this method.
query
Query
Specifies the attributes and spatial filter of the query. If no parameters are specified, then the extent and count of all features satisfying the layer’s configuration/filters are returned.
cancellationToken
System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<ExtentQueryResult>
GeoJSONLayerProExtensions.QueryFeatureCount(this GeoJSONLayer, Query, CancellationToken) Method
Executes a Query against the layer and returns the number of features that satisfy the query. param options An object with the following properties. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<System.Nullable<int>> QueryFeatureCount(this dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer geoJSONLayer, dymaptic.GeoBlazor.Core.Model.Query query, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer instance to extend with this method.
query
Query
Specifies the attributes and spatial filter of the query. If no parameters are specified, the total number of features satisfying the layer’s configuration/filters is returned.
cancellationToken
System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<System.Nullable<System.Int32>>
GeoJSONLayerProExtensions.QueryFeatures(this GeoJSONLayer, Query, CancellationToken) Method
Executes a Query against the layer and returns a FeatureSet once the promise resolves. param options An object with the following properties. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.FeatureSet?> QueryFeatures(this dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer geoJSONLayer, dymaptic.GeoBlazor.Core.Model.Query query, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer instance to extend with this method.
query
Query
Specifies the attributes and spatial filter of the query. If no parameters are specified, then all features satisfying the layer’s configuration/filters are returned.
cancellationToken
System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<FeatureSet>
GeoJSONLayerProExtensions.QueryObjectIds(this GeoJSONLayer, Query, CancellationToken) Method
Executes a Query against the layer and returns an array of Object IDs for features that satisfy the input query. param options An object with the following properties. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.ObjectId[]?> QueryObjectIds(this dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer geoJSONLayer, dymaptic.GeoBlazor.Core.Model.Query query, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
geoJSONLayer
GeoJSONLayer
The GeoJSONLayer instance to extend with this method.
query
Query
Specifies the attributes and spatial filter of the query. If no parameters are specified, then the Object IDs of all features satisfying the layer’s configuration/filters are returned.
cancellationToken
System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.