New to Telerik UI for WPFStart a free 30-day trial

Represents item on the map. It can be framework element or map shape.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class MapObjectInfo

Inheritance: objectMapObjectInfo

Derived Classes: Cluster

Constructors

Initializes a new instance of the MapObjectInfo class.

C#
public MapObjectInfo(object item, DependencyObject container = null, int index = -1)
Parameters:itemobject

Map item.

containerDependencyObject

Map object container.

indexint

Index of the map object.

Properties

Gets or sets cluster this item belongs to.

C#
public Cluster Cluster { get; set; }

Container

DependencyObject

Gets or sets map object container.

C#
public DependencyObject Container { get; set; }

Gets or sets index of the map object.

C#
public int Index { get; set; }

Gets or sets value which indicates whether map object is selected.

C#
public bool IsSelected { get; set; }

Gets or sets map item.

C#
public object Item { get; set; }

Gets geographical coordinates of the map object.

C#
public Location Location { get; }

Gets or sets original map item.

C#
public object OriginalItem { get; set; }

Methods

Dispose map object.

C#
public virtual void Dispose()

Compares two map objects for equality.

C#
public override bool Equals(object obj)
Parameters:objobject

The instance of map object to compare to this instance.

Returns:

bool

true if instances are equal; otherwise, false.

Overrides: object.Equals(object)

Gets a hash code for this Location structure.

C#
public override int GetHashCode()
Returns:

int

A hash code for this object.

Overrides: object.GetHashCode()

Sets new geographical location of the map object.

C#
public void SetLocation(Location newLocation, VisualizationLayer layer, bool forceUpdate)
Parameters:newLocationLocation

New location.

layerVisualizationLayer

Visualization layer this object belongs to.

forceUpdatebool

Indicates whether we should force update of the logical coordinate.