GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components

FeatureTemplate Class

<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Pro.Components.FeatureTemplate.html”>GeoBlazor Docs</a> Feature templates define all the information required to create a new feature in a <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html”>feature layer</a>. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html”>ArcGIS Maps SDK for JavaScript</a>

public class FeatureTemplate : dymaptic.GeoBlazor.Core.Components.MapComponent, dymaptic.GeoBlazor.Core.Interfaces.IFeatureTemplate, dymaptic.GeoBlazor.Core.Interfaces.IMapComponent, dymaptic.GeoBlazor.Core.Interfaces.ICreateFeaturesWorkflowDataFullTemplate, dymaptic.GeoBlazor.Core.Interfaces.ICreationInfoTemplate, dymaptic.GeoBlazor.Core.Interfaces.IEditorViewModelGetTemplatesForLayer, dymaptic.GeoBlazor.Core.Interfaces.ITemplateItemTemplate

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 FeatureTemplate

Implements dymaptic.GeoBlazor.Core.Interfaces.IFeatureTemplate, dymaptic.GeoBlazor.Core.Interfaces.IMapComponent, dymaptic.GeoBlazor.Core.Interfaces.ICreateFeaturesWorkflowDataFullTemplate, dymaptic.GeoBlazor.Core.Interfaces.ICreationInfoTemplate, dymaptic.GeoBlazor.Core.Interfaces.IEditorViewModelGetTemplatesForLayer, dymaptic.GeoBlazor.Core.Interfaces.ITemplateItemTemplate

Constructors

FeatureTemplate() Constructor

Parameterless constructor for use as a Razor Component.

public FeatureTemplate();

FeatureTemplate(string, Nullable<DrawingTool>, string, Graphic, Thumbnail) Constructor

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

public FeatureTemplate(string? description=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.DrawingTool> drawingTool=null, string? name=null, dymaptic.GeoBlazor.Core.Components.Graphic? prototype=null, dymaptic.GeoBlazor.Core.Model.Thumbnail? thumbnail=null);

Parameters

description System.String

Description of the feature template. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#description”>ArcGIS Maps SDK for JavaScript</a>

drawingTool System.Nullable<dymaptic.GeoBlazor.Core.Enums.DrawingTool>

Name of the default drawing tool defined for the template to create a feature. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#drawingTool”>ArcGIS Maps SDK for JavaScript</a>

name System.String

Name of the feature template. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#name”>ArcGIS Maps SDK for JavaScript</a>

prototype dymaptic.GeoBlazor.Core.Components.Graphic

An instance of the prototypical feature described by the <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html”>feature template</a>. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#prototype”>ArcGIS Maps SDK for JavaScript</a>

thumbnail dymaptic.GeoBlazor.Core.Model.Thumbnail

An object used to create a thumbnail image that represents a feature type in the feature template. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#thumbnail”>ArcGIS Maps SDK for JavaScript</a>

Properties

FeatureTemplate.Description Property

<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Pro.Components.FeatureTemplate.html#featuretemplatedescription-property”>GeoBlazor Docs</a> Description of the feature template. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#description”>ArcGIS Maps SDK for JavaScript</a>

public string? Description { get; set; }

Property Value

System.String

FeatureTemplate.DrawingTool Property

<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Pro.Components.FeatureTemplate.html#featuretemplatedrawingtool-property”>GeoBlazor Docs</a> Name of the default drawing tool defined for the template to create a feature. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#drawingTool”>ArcGIS Maps SDK for JavaScript</a>

public System.Nullable<dymaptic.GeoBlazor.Core.Enums.DrawingTool> DrawingTool { get; set; }

Property Value

System.Nullable<dymaptic.GeoBlazor.Core.Enums.DrawingTool>

FeatureTemplate.Name Property

<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Pro.Components.FeatureTemplate.html#featuretemplatename-property”>GeoBlazor Docs</a> Name of the feature template. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#name”>ArcGIS Maps SDK for JavaScript</a>

public string? Name { get; set; }

Property Value

System.String

FeatureTemplate.Prototype Property

<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Pro.Components.FeatureTemplate.html#featuretemplateprototype-property”>GeoBlazor Docs</a> An instance of the prototypical feature described by the <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html”>feature template</a>. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#prototype”>ArcGIS Maps SDK for JavaScript</a>

public dymaptic.GeoBlazor.Core.Components.Graphic? Prototype { get; set; }

Property Value

dymaptic.GeoBlazor.Core.Components.Graphic

FeatureTemplate.Thumbnail Property

<a target=”_blank” href=”https://docs.geoblazor.com/pages/classes/dymaptic.GeoBlazor.Pro.Components.FeatureTemplate.html#featuretemplatethumbnail-property”>GeoBlazor Docs</a> An object used to create a thumbnail image that represents a feature type in the feature template. <a target=”_blank” href=”https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#thumbnail”>ArcGIS Maps SDK for JavaScript</a>

public dymaptic.GeoBlazor.Core.Model.Thumbnail? Thumbnail { get; set; }

Property Value

dymaptic.GeoBlazor.Core.Model.Thumbnail

Methods

FeatureTemplate.GetDescription() Method

Asynchronously retrieve the current value of the Description property.

public System.Threading.Tasks.Task<string?> GetDescription();

Returns

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

FeatureTemplate.GetDrawingTool() Method

Asynchronously retrieve the current value of the DrawingTool property.

public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.DrawingTool>> GetDrawingTool();

Returns

System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.DrawingTool>>

FeatureTemplate.GetName() Method

Asynchronously retrieve the current value of the Name property.

public System.Threading.Tasks.Task<string?> GetName();

Returns

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

FeatureTemplate.GetPrototype() Method

Asynchronously retrieve the current value of the Prototype property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Graphic?> GetPrototype();

Returns

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

FeatureTemplate.GetThumbnail() Method

Asynchronously retrieve the current value of the Thumbnail property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.Thumbnail?> GetThumbnail();

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.Thumbnail>

FeatureTemplate.SetDescription(string) Method

Asynchronously set the value of the Description property after render.

public System.Threading.Tasks.Task SetDescription(string? value);

Parameters

value System.String

The value to set.

Returns

System.Threading.Tasks.Task

FeatureTemplate.SetDrawingTool(Nullable<DrawingTool>) Method

Asynchronously set the value of the DrawingTool property after render.

public System.Threading.Tasks.Task SetDrawingTool(System.Nullable<dymaptic.GeoBlazor.Core.Enums.DrawingTool> value);

Parameters

value System.Nullable<dymaptic.GeoBlazor.Core.Enums.DrawingTool>

The value to set.

Returns

System.Threading.Tasks.Task

FeatureTemplate.SetName(string) Method

Asynchronously set the value of the Name property after render.

public System.Threading.Tasks.Task SetName(string? value);

Parameters

value System.String

The value to set.

Returns

System.Threading.Tasks.Task

FeatureTemplate.SetPrototype(Graphic) Method

Asynchronously set the value of the Prototype property after render.

public System.Threading.Tasks.Task SetPrototype(dymaptic.GeoBlazor.Core.Components.Graphic? value);

Parameters

value dymaptic.GeoBlazor.Core.Components.Graphic

The value to set.

Returns

System.Threading.Tasks.Task

FeatureTemplate.SetThumbnail(Thumbnail) Method

Asynchronously set the value of the Thumbnail property after render.

public System.Threading.Tasks.Task SetThumbnail(dymaptic.GeoBlazor.Core.Model.Thumbnail? value);

Parameters

value dymaptic.GeoBlazor.Core.Model.Thumbnail

The value to set.

Returns

System.Threading.Tasks.Task

FeatureTemplate.ValidateRequiredGeneratedChildren() Method

Validates source-generated child components.

public override void ValidateRequiredGeneratedChildren();

Implements ValidateRequiredGeneratedChildren()