MapLabel
Displays text and an optional image in a rounded label anchored to a geographic location.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapLabel : MapPathBasedVisualElement, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement
Inheritance: objectMapVisualElementMapPathBasedVisualElementMapLabel
Implements:
Inherited Members
Constructors
Properties
Gets or sets the image displayed before the label text. Changing the image clears the cached path so its measured size is recalculated.
public Image Image { get; set; }
Gets whether hit testing treats the label's filled area as selectable rather than testing only its outline.
protected override bool IsOutline { get; }
Overrides:
Methods
Builds the rounded label path above its geographic anchor, sized to its text, image, and padding.
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
The viewport whose zoom level converts the anchor to map coordinates.
Returns:The rounded label path and its map-coordinate offset.
Overrides:
Draws the label background, border, optional image, and text at the geographic anchor, including map wraparound copies.
public override void Paint(IGraphics graphics, IMapViewport viewport)
The graphics context used to draw the label.
viewportIMapViewportThe viewport that supplies the pan, zoom, and wraparound state.
Overrides: