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

Creates map visuals for parsed geospatial data; assign a subclass to VisualElementFactory to customize the generated elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public class MapVisualElementFactory

Inheritance: objectMapVisualElementFactory

Constructors

C#
public MapVisualElementFactory()

Methods

Creates an empty MapCluster that can hold clusterable map elements.

C#
public virtual MapCluster CreateCluster()
Returns:

MapCluster

The cluster visual element.

Creates a multi-part MapPath with one path component for each point collection.

C#
public virtual MapVisualElement CreatePath(Collection<Collection<PointG>> points)
Parameters:pointsCollection<Collection<PointG>>

The ordered geographic points for each path component.

Returns:

MapVisualElement

The path visual element.

Creates a MapPoint at the specified geographic coordinate.

C#
public virtual MapVisualElement CreatePoint(PointG location)
Parameters:locationPointG

The point's geographic location.

Returns:

MapVisualElement

The point visual element.

Creates a filled MapPolygon whose inner boundaries represent holes in the outer boundary.

C#
public virtual MapVisualElement CreatePolygon(Collection<PointG> outerBoundary, Collection<Collection<PointG>> innerBoundaries)
Parameters:outerBoundaryCollection<PointG>

The geographic points that define the polygon's outer boundary.

innerBoundariesCollection<Collection<PointG>>

The geographic point collections that define holes inside the polygon.

Returns:

MapVisualElement

The polygon visual element.

Creates a filled MapPolygon with the supplied outer boundary and no inner boundaries.

C#
public virtual MapVisualElement CreatePolygon(Collection<PointG> outerBoundary)
Parameters:outerBoundaryCollection<PointG>

The geographic points that define the polygon boundary.

Returns:

MapVisualElement

The polygon visual element.

Creates an open MapPolyline through the supplied points in order.

C#
public virtual MapVisualElement CreatePolyline(Collection<PointG> points)
Parameters:pointsCollection<PointG>

The geographic points that define the line.

Returns:

MapVisualElement

The polyline visual element.

Creates a MapTile that draws an image into the specified rectangle.

C#
public virtual MapTile CreateTile(Image image, Rectangle rectangle)
Parameters:imageImage

The tile image.

rectangleRectangle

The destination rectangle for the image.

Returns:

MapTile

The tile visual element.