Class
MapObjectInfo

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:

cs-api-definition
public class MapObjectInfo

Inheritance: objectMapObjectInfo

Derived Classes: Cluster

Constructors

MapObjectInfo(object, DependencyObject, int)

Initializes a new instance of the MapObjectInfo class.

Declaration

cs-api-definition
public MapObjectInfo(object item, DependencyObject container = null, int index = -1)

Parameters

item

object

Map item.

container

DependencyObject

Map object container.

index

int

Index of the map object.

Properties

Cluster

Gets or sets cluster this item belongs to.

Declaration

cs-api-definition
public Cluster Cluster { get; set; }

Property Value

Cluster

Container

Gets or sets map object container.

Declaration

cs-api-definition
public DependencyObject Container { get; set; }

Property Value

DependencyObject

Index

Gets or sets index of the map object.

Declaration

cs-api-definition
public int Index { get; set; }

Property Value

int

IsSelected

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

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

Item

Gets or sets map item.

Declaration

cs-api-definition
public object Item { get; set; }

Property Value

object

Location

Gets geographical coordinates of the map object.

Declaration

cs-api-definition
public Location Location { get; }

Property Value

Location

OriginalItem

Gets or sets original map item.

Declaration

cs-api-definition
public object OriginalItem { get; set; }

Property Value

object

Methods

Dispose()

Dispose map object.

Declaration

cs-api-definition
public virtual void Dispose()

Equals(object)

Compares two map objects for equality.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The instance of map object to compare to this instance.

Returns

bool

true if instances are equal; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Gets a hash code for this Location structure.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this object.

Overrides object.GetHashCode()

SetLocation(Location, VisualizationLayer, bool)

Sets new geographical location of the map object.

Declaration

cs-api-definition
public void SetLocation(Location newLocation, VisualizationLayer layer, bool forceUpdate)

Parameters

newLocation

Location

New location.

layer

VisualizationLayer

Visualization layer this object belongs to.

forceUpdate

bool

Indicates whether we should force update of the logical coordinate.