ClassMapPin
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
MapPin(PointG)
Initializes a new instance of the MapPin class at the specified geographic location with default appearance settings.
Properties
IsOutline
Gets a value indicating whether this pin uses outline rendering mode, always returning false for filled pin display.
Declaration
protected override bool IsOutline { get; }
Property Value
Overrides
Methods
CreateVisualElementInfo(IMapViewport)
Creates the visual element information including the pin-shaped graphics path and pixel offset for rendering at the specified viewport.
Declaration
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
Parameters
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
HitTest(PointG, PointL, IMapViewport)
Performs hit testing to determine if the specified point intersects with the pin's center dot area, including wraparound positioning support.
Declaration
public override bool HitTest(PointG pointG, PointL pointL, IMapViewport viewport)
Parameters
pointG
The PointG geographic coordinates to test for intersection.
pointL
The PointL pixel coordinates to test for intersection.
viewport
The 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
Paint(IGraphics, IMapViewport)
Paints the map pin to the specified graphics context with anti-aliasing, fill, border, and center dot rendering including wraparound support.
Declaration
public override void Paint(IGraphics graphics, IMapViewport viewport)
Parameters
graphics
The IGraphics context used for rendering the pin.
viewport
The IMapViewport providing zoom level, pan offset, and wraparound information.
Overrides