GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components.Popups

PopupTemplateGenerator Class

This object contains helper methods for generating popup templates to be set on a layer or a layer’s FeatureReductionCluster.
Templates: ArcGIS Maps SDK for JavaScriptClusters: ArcGIS Maps SDK for JavaScript

public class PopupTemplateGenerator : dymaptic.GeoBlazor.Pro.Model.ProLogicComponent

Inheritance System.Object 🡒 dymaptic.GeoBlazor.Core.Model.LogicComponent 🡒 ProLogicComponent 🡒 PopupTemplateGenerator

Constructors

PopupTemplateGenerator(AuthenticationManager, JsModuleManager, IAppValidator, IJSRuntime) Constructor

Constructor for use by Dependency Injection. Use AddGeoBlazorPro(this IServiceCollection, IConfiguration) in your startup code.

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

Parameters

authenticationManager dymaptic.GeoBlazor.Core.Model.AuthenticationManager

jsModuleManager dymaptic.GeoBlazor.Core.JsModuleManager

appValidator dymaptic.GeoBlazor.Core.IAppValidator

jsRuntime Microsoft.JSInterop.IJSRuntime

Methods

PopupTemplateGenerator.GetClusterTemplates(Layer, Renderer) 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);

Parameters

layer dymaptic.GeoBlazor.Core.Components.Layers.Layer

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

renderer dymaptic.GeoBlazor.Core.Components.Renderers.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.

Returns

System.Threading.Tasks.Task<PopupTemplateResults>

PopupTemplateGenerator.GetTemplates(Layer, Renderer) 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);

Parameters

layer dymaptic.GeoBlazor.Core.Components.Layers.Layer

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

renderer dymaptic.GeoBlazor.Core.Components.Renderers.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.

Returns

System.Threading.Tasks.Task<PopupTemplateResults>