MapPin
Represents a map pin graphical object that displays a pin-shaped marker at a specific geographic location with customizable appearance and hit testing.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapPin : MapPathBasedVisualElement, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement
Inheritance: objectMapVisualElementMapPathBasedVisualElementMapPin
Implements:
Inherited Members
Constructors
Properties
Gets a value indicating whether this pin uses outline rendering mode, always returning false for filled pin display.
protected override bool IsOutline { get; }
Overrides:
Methods
Creates the visual element information including the pin-shaped graphics path and pixel offset for rendering at the specified viewport.
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
The IMapViewport used for calculating pixel coordinates and path dimensions.
Returns:A MapVisualElementInfo containing the graphics path and offset information for the pin.
Overrides:
Performs hit testing to determine if the specified point intersects with the pin's center dot area, including wraparound positioning support.
public override bool HitTest(PointG pointG, PointL pointL, IMapViewport viewport)
The PointG geographic coordinates to test for intersection.
pointLPointLThe PointL pixel coordinates to test for intersection.
viewportIMapViewportThe IMapViewport providing zoom level and wraparound information for accurate hit testing.
Returns:True if the point intersects with the pin's center dot area; otherwise, false.
Overrides:
Paints the map pin to the specified graphics context with anti-aliasing, fill, border, and center dot rendering including wraparound support.
public override void Paint(IGraphics graphics, IMapViewport viewport)
The IGraphics context used for rendering the pin.
viewportIMapViewportThe IMapViewport providing zoom level, pan offset, and wraparound information.
Overrides: