dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Model

PopupTemplateGenerator Class

                GeoBlazor

                Docs

            </a>
            This object contains helper methods for generating popup templates to be set on
            a
            <a target="_blank" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupTemplate">

                layer

            </a>
            .
            <a target="_blank" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html">

                ArcGIS

                Maps SDK for JavaScript

            </a>
public class PopupTemplateGenerator : dymaptic.GeoBlazor.Pro.Model.ProLogicComponent

Inheritance System.Object 🡒 LogicComponent 🡒 ProLogicComponent 🡒 PopupTemplateGenerator

Constructors

PopupTemplateGenerator(IAppValidator, IJSRuntime, JsModuleManager, AuthenticationManager) Constructor

                GeoBlazor

                Docs

            </a>
            This object contains helper methods for generating popup templates to be set on
            a
            <a target="_blank" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupTemplate">

                layer

            </a>
            .
            <a target="_blank" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html">

                ArcGIS

                Maps SDK for JavaScript

            </a>
public PopupTemplateGenerator(dymaptic.GeoBlazor.Core.IAppValidator appValidator, Microsoft.JSInterop.IJSRuntime jsRuntime, dymaptic.GeoBlazor.Core.JsModuleManager jsModuleManager, dymaptic.GeoBlazor.Core.Model.AuthenticationManager authenticationManager);

Parameters

appValidator dymaptic.GeoBlazor.Core.IAppValidator

jsRuntime Microsoft.JSInterop.IJSRuntime

jsModuleManager JsModuleManager

authenticationManager AuthenticationManager

Methods

PopupTemplateGenerator.GetClusterTemplates(Layer, Renderer, CancellationToken) Method

Returns one or more suggested default popupTemplates for a given layer's FeatureReductionCluster configuration. The cluster popup will contain information describing features in the cluster, including the number of features in the cluster and summary statistics based on fields and expressions used in the layer's renderer.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Results.PopupTemplateResults> GetClusterTemplates(dymaptic.GeoBlazor.Core.Components.Layers.Layer layer, dymaptic.GeoBlazor.Core.Components.Renderers.Renderer? renderer=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

layer Layer

The layer to which the suggested popup templates can be applied, or the point layer that is or will be clustered.

renderer Renderer

Specify the renderer to be used on the layer (when featureReduction is enabled for clustering) if it will be different than the renderer already set on the layer.

cancellationToken System.Threading.CancellationToken

The cancellation token to use for the operation.

Returns

System.Threading.Tasks.Task<PopupTemplateResults>

PopupTemplateGenerator.GetTemplates(Layer, Renderer, CancellationToken) Method

Returns one or more suggested popupTemplates for a given layer based on its renderer. This method is useful in apps where a layer's renderer can be modified by the user (or some other process) and the popup template is expected to display values related to the renderer. Popup templates will not be generated for layers with renderers that don't refer to a data value (i.e. SimpleRenderer with no visual variables).

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Results.PopupTemplateResults> GetTemplates(dymaptic.GeoBlazor.Core.Components.Layers.Layer layer, dymaptic.GeoBlazor.Core.Components.Renderers.Renderer? renderer=null, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

layer Layer

The layer to which the suggested popup templates can be applied, or the point layer that is or will be clustered.

renderer Renderer

Specify the renderer to be used on the layer (when featureReduction is enabled for clustering) if it will be different than the renderer already set on the layer.

cancellationToken System.Threading.CancellationToken

The cancellation token to use for the operation.

Returns

System.Threading.Tasks.Task<PopupTemplateResults>