Skip to content

ClusterPointMarkerStyle

Namespace: ThinkGeo.UI.Wpf

public class ClusterPointMarkerStyle : PointMarkerStyle

Inheritance ObjectMarkerStylePointMarkerStyleClusterPointMarkerStyle

Properties

CellSize

Gets or sets the size, in pixels, of each grid cell used when clustering points.

public int CellSize { get; set; }

Property Value

Int32

MinimumFeaturesPerCellToCluster

Gets or sets the minimum number of features per cell required to render a clustered marker.

public int MinimumFeaturesPerCellToCluster { get; set; }

Property Value

Int32

ImageSource

Gets or sets the small image that the marker displays.

public ImageSource ImageSource { get; set; }

Property Value

ImageSource
A small image that the marker displays.

Remarks:

Gets or sets the small image that the marker displays.

Width

Gets or sets the width in pixel of the web image.

public double Width { get; set; }

Property Value

Double
A double value indicating the width in pixel of the image file.

Remarks:

Gets or sets the width in pixel of the web image.

Height

Gets or sets the height in pixel of the web image.

public double Height { get; set; }

Property Value

Double
A double value indicating the height in pixel of the image file.

Remarks:

Gets or sets the height in pixel of the web image.

XOffset

Gets or sets the image's X offset in pixel.

public double XOffset { get; set; }

Property Value

Double
A double value indicating the image's X offset in pixel.

Remarks:

Gets or sets the image's X offset in pixel.

YOffset

Gets or sets the image's Y offset in pixel.

public double YOffset { get; set; }

Property Value

Double
A double value indicating the image's Y offset in pixel.

Remarks:

Gets or sets the image's Y offset in pixel.

ToolTip

Gets or sets a tooltip for marker.

public string ToolTip { get; set; }

Property Value

String

ToolTipDelay

Gets or sets an interval in milliseconds.

public int ToolTipDelay { get; set; }

Property Value

Int32

Constructors

ClusterPointMarkerStyle()

Initializes a new instance of the ClusterPointMarkerStyle class.

public ClusterPointMarkerStyle()

ClusterPointMarkerStyle(ImageSource)

Initializes a new instance of the ClusterPointMarkerStyle class with the specified marker image.

public ClusterPointMarkerStyle(ImageSource imageSource)

Parameters

imageSource ImageSource
The image used when rendering clustered markers.

Methods

GetMarkersCore(IEnumerable<Feature>, IMapArguments)

Generates markers for the supplied features, clustering them when the threshold is met.

protected GeoCollection<Marker> GetMarkersCore(IEnumerable<Feature> features, IMapArguments mapArguments)

Parameters

features IEnumerable<Feature>
The features to render.

mapArguments IMapArguments
Contextual information about the map view.

Returns

GeoCollection<Marker>
A collection of markers including any clusters.

OnClusterringMarkers(ClusterringMarkersClusterPointMarkerStyleEventArgs)

Raises the ClusterPointMarkerStyle.ClusterringMarkers event.

protected void OnClusterringMarkers(ClusterringMarkersClusterPointMarkerStyleEventArgs e)

Parameters

e ClusterringMarkersClusterPointMarkerStyleEventArgs
The event data describing the generated cluster marker.

Events

ClusterringMarkers

public event EventHandler<ClusterringMarkersClusterPointMarkerStyleEventArgs> ClusterringMarkers;