MapHtmlCallout
Renders a map callout's text as HTML while retaining the positioning and image layout of MapCallout.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapHtmlCallout : MapCallout, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement
Inheritance: objectMapVisualElementMapPathBasedVisualElementMapCalloutMapHtmlCallout
Implements:
Inherited Members
Constructors
Creates an HTML-rendered callout associated with the specified map element.
public MapHtmlCallout(MapVisualElement element)
The map element whose location anchors the callout.
Creates an HTML-rendered callout anchored at the specified geographic location.
public MapHtmlCallout(PointG location)
The geographic location where the callout is positioned.
Methods
Measures the resolved HTML text within the callout's maximum width so the bubble can fit wrapped content.
protected override SizeF MeasureText(Graphics graphics, IMapViewport viewport)
The graphics context used for text measurement.
viewportIMapViewportThe map viewport supplied by the base layout hook.
Returns:The measured HTML content size.
Overrides:
Draws the resolved callout text as HTML; no text is rendered when the text is null or empty.
protected override void PaintText(IGraphics graphics, IMapViewport viewport)
The graphics context used to render the HTML.
viewportIMapViewportThe viewport used to position the text and repeat it across wrapped map copies.
Overrides: