GeoBlazor Pro
layout: pro title: PopupTemplateCreator parent: Pro Classes grand_parent: GeoBlazor Pro —
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Model
PopupTemplateCreator Class
This object contains helper methods for generating popup templates to be set on a layer or a layer’s FeatureReductionCluster.
ArcGIS Maps SDK for JavaScript
public class PopupTemplateCreator : dymaptic.GeoBlazor.Pro.Model.ProLogicComponent
Inheritance System.Object 🡒 dymaptic.GeoBlazor.Core.Model.LogicComponent 🡒 ProLogicComponent 🡒 PopupTemplateCreator
Constructors
PopupTemplateCreator(IJSRuntime, AuthenticationManager, IAppValidator) Constructor
Constructor for use by Dependency Injection. Use AddGeoBlazorPro(this IServiceCollection, IConfiguration) in your startup code.
public PopupTemplateCreator(Microsoft.JSInterop.IJSRuntime jsRuntime, dymaptic.GeoBlazor.Core.Model.AuthenticationManager authenticationManager, dymaptic.GeoBlazor.Core.IAppValidator appValidator);
Parameters
jsRuntime
Microsoft.JSInterop.IJSRuntime
authenticationManager
dymaptic.GeoBlazor.Core.Model.AuthenticationManager
appValidator
dymaptic.GeoBlazor.Core.IAppValidator
Methods
PopupTemplateCreator.GetClusterTemplates(PopupTemplateCreatorParams) 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.Model.PopupTemplateResults> GetClusterTemplates(dymaptic.GeoBlazor.Pro.Model.PopupTemplateCreatorParams options);
Parameters
options
PopupTemplateCreatorParams
Returns
System.Threading.Tasks.Task<PopupTemplateResults>
PopupTemplateCreator.GetTemplates(PopupTemplateCreatorParams) 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.Model.PopupTemplateResults> GetTemplates(dymaptic.GeoBlazor.Pro.Model.PopupTemplateCreatorParams options);
Parameters
options
PopupTemplateCreatorParams