New to Telerik UI for WinFormsStart a free 30-day trial

Represents a map callout graphical object that displays a speech bubble-like popup with text and image content at a specific geographic location.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public class MapCallout : MapPathBasedVisualElement, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement

Inheritance: objectMapVisualElementMapPathBasedVisualElementMapCallout

Derived Classes: MapHtmlCallout

Implements: IBorderElementIBoxElementIBoxStyleIClusterableIFillElementIShapedElementITextElement...

Inherited Members MapPathBasedVisualElement.ViewportChanged(IMapViewport, ViewportChangeAction)MapPathBasedVisualElement.HitTest(PointG, PointL, IMapViewport)MapPathBasedVisualElement.GetVisualElementInfo(IMapViewport)MapPathBasedVisualElement.ResetGraphicsPathCache()MapPathBasedVisualElement.IsInViewportMapPathBasedVisualElement.LocationMapVisualElement.GetGeographicBounds()MapVisualElement.GetCurrentShape()MapVisualElement.GeographicBoundsMapVisualElement.LayerMapVisualElement.IsVisibleMapVisualElement.IsSelectedMapVisualElement.TagMapVisualElement.BackColorMapVisualElement.BackColor2MapVisualElement.BackColor3MapVisualElement.BackColor4MapVisualElement.NumberOfColorsMapVisualElement.GradientAngleMapVisualElement.GradientPercentageMapVisualElement.GradientPercentage2MapVisualElement.GradientStyleMapVisualElement.SizeMapVisualElement.SmoothingModeMapVisualElement.BorderColorMapVisualElement.BorderColor2MapVisualElement.BorderColor3MapVisualElement.BorderColor4MapVisualElement.InnerColorMapVisualElement.InnerColor2MapVisualElement.InnerColor3MapVisualElement.InnerColor4MapVisualElement.BoxStyleMapVisualElement.BorderDrawModeMapVisualElement.BorderDashStyleMapVisualElement.BorderDashPatternMapVisualElement.LeftColorMapVisualElement.LeftShadowColorMapVisualElement.TopColorMapVisualElement.TopShadowColorMapVisualElement.RightColorMapVisualElement.RightShadowColorMapVisualElement.BottomColorMapVisualElement.BottomShadowColorMapVisualElement.BorderWidthMapVisualElement.LeftWidthMapVisualElement.TopWidthMapVisualElement.RightWidthMapVisualElement.BottomWidthMapVisualElement.OffsetMapVisualElement.BorderSizeMapVisualElement.HorizontalWidthMapVisualElement.VerticalWidthMapVisualElement.ForeColorMapVisualElement.FontMapVisualElement.ToolTipTextMapVisualElement.RawResourceMapVisualElement.Shape...

Constructors

Initializes a new instance of the MapCallout class that adorns the specified map visual element with automatic entity reference resolution.

C#
public MapCallout(MapVisualElement element)
Parameters:elementMapVisualElement

The MapVisualElement that this callout will adorn and position relative to.

Initializes a new instance of the MapCallout class at the specified geographic location with default appearance settings.

C#
public MapCallout(PointG location)
Parameters:locationPointG

The PointG geographic location where the callout will be positioned on the map.

Fields

C#
protected string drawText

Properties

Gets or sets the distance in pixels between the callout bubble and the target element or location, automatically resetting the graphics path cache.

C#
public int Distance { get; set; }

Gets the map visual element that this callout adorns, providing context for positioning and entity reference resolution.

C#
public MapVisualElement Element { get; }

Gets or sets the image displayed within the callout bubble, positioned to the left of the text content with automatic layout adjustment.

C#
public virtual Image Image { get; set; }

Gets a value indicating whether this callout uses outline rendering mode, always returning false for filled callout display.

C#
protected override bool IsOutline { get; }

Overrides: MapPathBasedVisualElement.IsOutline

Gets or sets the maximum width in pixels for the callout bubble content, used for text wrapping and layout calculations.

C#
public int MaxWidth { get; set; }

Gets or sets the internal padding around the callout content, affecting the spacing between the border and text or image elements.

C#
public Padding Padding { get; set; }

Gets or sets the text content displayed in the callout, with automatic entity reference resolution for MapPoint extended data properties.

C#
public override string Text { get; set; }

Overrides: MapVisualElement.Text

Methods

Creates the visual element information including the speech bubble graphics path with pointer and positioning offset for the callout display.

C#
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
Parameters:viewportIMapViewport

The IMapViewport used for calculating pixel coordinates and callout dimensions.

Returns:

MapVisualElementInfo

A MapVisualElementInfo containing the speech bubble path and offset information for the callout.

Overrides: MapPathBasedVisualElement.CreateVisualElementInfo(IMapViewport)

Measures the text content size for layout calculations, considering the maximum width constraint and font settings.

C#
protected virtual SizeF MeasureText(Graphics graphics, IMapViewport viewport)
Parameters:graphicsGraphics

The Graphics context used for text measurement.

viewportIMapViewport

The IMapViewport providing context for measurement calculations.

Returns:

SizeF

A SizeF representing the measured text dimensions within the maximum width constraint.

Paints the complete callout including the speech bubble shape, fill, border, image, and text content with wraparound support for world maps.

C#
public override void Paint(IGraphics graphics, IMapViewport viewport)
Parameters:graphicsIGraphics

The IGraphics context used for rendering the callout.

viewportIMapViewport

The IMapViewport providing zoom level, pan offset, and wraparound information.

Overrides: MapVisualElement.Paint(IGraphics, IMapViewport)

Paints the text content within the callout bubble with proper positioning relative to any image content and wraparound support.

C#
protected virtual void PaintText(IGraphics graphics, IMapViewport viewport)
Parameters:graphicsIGraphics

The IGraphics context used for rendering the text.

viewportIMapViewport

The IMapViewport providing positioning and wraparound information for text rendering.

Resolves entity references in the callout text by replacing placeholders like [$property] with actual values from the MapPoint's extended data.

C#
protected virtual void ResolveEntityReferences(MapPoint point)
Parameters:pointMapPoint

The MapPoint containing extended data for entity reference resolution, or null if no data is available.