GeoBlazor Pro


layout: pro title: LabelCreator parent: Pro Classes grand_parent: GeoBlazor Pro —

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Model

LabelCreator Class

Helper class for generating default labels to be set on a layer’s binning or cluster configuration.
ArcGIS Maps SDK for JavaScript

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

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

Constructors

LabelCreator(IJSRuntime, AuthenticationManager, IAppValidator) Constructor

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

public LabelCreator(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

LabelCreator.GetBinLabelSchemes(BinLabelSchemeParams) Method

The renderer to set on the input layer when clustering is enabled. Specify this parameter if the layer’s renderer does not match the renderer that will be used when clustering is enabled. This cannot be a HeatmapRenderer.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.LabelSchemes> GetBinLabelSchemes(dymaptic.GeoBlazor.Pro.Model.BinLabelSchemeParams options);

Parameters

options BinLabelSchemeParams

Returns

System.Threading.Tasks.Task<LabelSchemes>

LabelCreator.GetClusterLabelSchemes(ClusterLabelSchemeParams) Method

Generates default labelingInfo schemes to be set on a FeatureLayer’s featureReduction configuration. Returns one or more suggested LabelClasses for a given layer based on its renderer. It also returns a suggested clusterMinSize to ensure labels fit inside clusters.
If a renderer has a non-scale dependent SizeVariable, then the average value of the field or expression used to determine the cluster size will be suggested as the default label value. In all other scenarios, the suggested label will display the cluster count in the center of the label.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.LabelSchemes> GetClusterLabelSchemes(dymaptic.GeoBlazor.Pro.Model.ClusterLabelSchemeParams options);

Parameters

options ClusterLabelSchemeParams

Returns

System.Threading.Tasks.Task<LabelSchemes>