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.
param edits.addFeatures An array or a collection of features to be added. Values of non nullable fields must be provided when adding new features. Date fields must have numeric values representing universal time.
param edits.deleteFeatures An array or a collection of features, or objects to be deleted. When an array or collection of features is passed, each feature must have a valid objectId. When an array of objects is used, each object must have a valid objectId property.
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 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer

The dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer instance to extend with this method.

edits dymaptic.GeoBlazor.Core.Model.GeoJSONLayerApplyEditsEdits

Object containing features to be added, updated or deleted.

  • edits.updateFeatures: An array or a collection of features to be updated. Each feature must have valid objectId. Values of non nullable fields must be provided when updating features. Date fields must have numeric values representing universal time.

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.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 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer

The dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer instance to extend with this method.

options dymaptic.GeoBlazor.Core.Options.CreatePopupTemplateOptions

Options for creating the popup template.

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Popups.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 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer

The dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer instance to extend with this method.

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.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 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer

The dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer instance to extend with this method.

fieldName System.String

Name of the field.

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.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 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer

The dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer instance to extend with this method.

fieldName System.String

Name of the field.

options GeoJSONLayerGetFieldDomainOptions

  • options.feature: The feature to which the Domain is assigned.

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Domain>

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 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer

The dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer instance to extend with this method.

query dymaptic.GeoBlazor.Core.Model.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<dymaptic.GeoBlazor.Core.Results.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 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer

The dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer instance to extend with this method.

query dymaptic.GeoBlazor.Core.Model.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 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer

The dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer instance to extend with this method.

query dymaptic.GeoBlazor.Core.Model.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<dymaptic.GeoBlazor.Core.Model.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 dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer

The dymaptic.GeoBlazor.Core.Components.Layers.GeoJSONLayer instance to extend with this method.

query dymaptic.GeoBlazor.Core.Model.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.

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.ObjectId[]>