dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Layers
Label Class
Defines label expressions, symbols, scale ranges, label priorities, and label placement options for labels on a
layer. See the Labeling guide for more information about labeling.
ArcGIS JS API
public class Label : dymaptic.GeoBlazor.Core.Components.Layers.LayerObject
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 LayerObject 🡒 Label
Properties
Label.LabelExpression Property
Defines the labels for a MapImageLayer.
public string? LabelExpression { get; set; }
Property Value
Remarks
MapImageLayer not yet implemented in GeoBlazor
Label.LabelExpressionInfo Property
Defines the labels for a FeatureLayer.
public dymaptic.GeoBlazor.Core.Components.Layers.LabelExpressionInfo? LabelExpressionInfo { get; set; }
Property Value
Label.LabelPlacement Property
The position of the label.
public string? LabelPlacement { get; set; }
Property Value
Methods
Label.RegisterChildComponent(MapComponent) Method
Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with it’s parent.
public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The calling, child component to register
Returns
Exceptions
InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.
Label.UnregisterChildComponent(MapComponent) Method
Undoes the “Registration” of a child with its parent.
public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The child to unregister
Returns
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.