New to Telerik UI for WinForms? Start a free 30-day trial

Represents a geographic location rendered as a fixed-size, filled marker with optional image and text.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public class MapPoint : MapGeometry, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement, IExtendedData, IColorizable

Inheritance: objectMapVisualElementMapPathBasedVisualElementMapGeometryMapPoint

Implements: IBorderElementIBoxElementIBoxStyleIClusterableIColorizableIExtendedDataIFillElementIShapedElementITextElement...

Inherited Members MapGeometry.OnExtendedDataPropertyChanged(object, PropertyChangedEventArgs)MapGeometry.ResolveEntityReferences()MapGeometry.TextMapGeometry.DrawTextMapGeometry.ColorizerColorMapGeometry.ExtendedDataMapGeometry.BackColorMapGeometry.BackColor2MapGeometry.BackColor3MapGeometry.BackColor4MapPathBasedVisualElement.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.NumberOfColorsMapVisualElement.GradientAngleMapVisualElement.GradientPercentageMapVisualElement.GradientPercentage2MapVisualElement.GradientStyleMapVisualElement.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 MapPoint class.

C#
public MapPoint(PointG location, Size size)
Parameters:locationPointG

The location.

sizeSize

The size.

Initializes a new instance of the MapPoint class.

C#
public MapPoint(PointG location)
Parameters:locationPointG

The location.

Properties

Gets or sets the balloon data.

C#
public object BalloonData { get; set; }
Property Value:

The balloon data.

Gets or sets the balloon style.

C#
public BalloonStyle BalloonStyle { get; set; }
Property Value:

The balloon style.

Gets or sets the hot spot.

C#
public HotSpot HotSpot { get; set; }
Property Value:

The hot spot.

Gets or sets the image.

C#
public Image Image { get; set; }
Property Value:

The image.

Gets or sets the image scale.

C#
public double ImageScale { get; set; }
Property Value:

The image scale.

Gets whether hit testing is limited to the marker outline; the filled marker area is also hittable.

C#
protected override bool IsOutline { get; }

Overrides: MapPathBasedVisualElement.IsOutline

Gets or sets the marker's pixel dimensions. Changing the size invalidates its cached graphics path.

C#
public override Size Size { get; set; }

Overrides: MapVisualElement.Size

Methods

Creates a local ellipse path and pairs it with the projected map-pixel location of the point.

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

The viewport whose zoom level is used to project the point.

Returns:

MapVisualElementInfo

The marker path and its map-pixel offset.

Overrides: MapPathBasedVisualElement.CreateVisualElementInfo(IMapViewport)

Draws the marker fill and border, its optional image, and its text across the viewport's wraparound copies.

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

The graphics context used to render the marker.

viewportIMapViewport

The viewport that supplies map projection, pan, zoom, and wraparound state.

Overrides: MapVisualElement.Paint(IGraphics, IMapViewport)

Draws the text of this point.

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

The graphics.

viewportIMapViewport

The viewport.