Class
InformationLayer

Layer which able to show FrameworkElements and/or shapes based on the geographical coordinates over the map.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public class InformationLayer : MapLayer, ILayer

Inheritance: objectMapLayerInformationLayer

Derived Classes: DynamicLayerTilesVisualizationLayerVirtualizationLayer

Implements: ILayer

Inherited Members MapLayer.BaseZoomLevelPropertyMapLayer.HotSpotPropertyMapLayer.GeographicalSizePropertyMapLayer.LocationPropertyMapLayer.MaxScalePropertyMapLayer.MinScalePropertyMapLayer.ZoomRangePropertyMapLayer.GetBaseZoomLevel(DependencyObject)MapLayer.GetHotSpot(DependencyObject)MapLayer.GetGeographicalSize(DependencyObject)MapLayer.GetLocation(DependencyObject)MapLayer.GetMaxScale(DependencyObject)MapLayer.GetMinScale(DependencyObject)MapLayer.GetZoomRange(DependencyObject)MapLayer.SetBaseZoomLevel(DependencyObject, double)MapLayer.SetHotSpot(DependencyObject, HotSpot)MapLayer.SetGeographicalSize(DependencyObject, Location)MapLayer.SetLocation(DependencyObject, Location)MapLayer.SetMaxScale(DependencyObject, double)MapLayer.SetMinScale(DependencyObject, double)MapLayer.SetZoomRange(DependencyObject, ZoomRange)MapLayer.MapControl

Constructors

InformationLayer()

Initializes a new instance of the InformationLayer class.

Declaration

cs-api-definition
public InformationLayer()

Fields

AllowDataTemplateForZoomLevelProperty

Identifies the AllowDataTemplateForZoomLevel dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowDataTemplateForZoomLevelProperty

Field Value

DependencyProperty

ClusteredDataSourceProperty

Identifies the ClusteredDataSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ClusteredDataSourceProperty

Field Value

DependencyProperty

ColorizerProperty

Identifies the Colorizer dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ColorizerProperty

Field Value

DependencyProperty

DefaultInformationLayerTemplateProperty

Identifies the DefaultInformationLayerTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DefaultInformationLayerTemplateProperty

Field Value

DependencyProperty

HighlightFillProperty

Identifies the HighlightFill dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HighlightFillProperty

Field Value

DependencyProperty

MapShapeDataTemplateProperty

Identifies the MapShapeDataTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MapShapeDataTemplateProperty

Field Value

DependencyProperty

ReaderProperty

Identifies the Reader dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ReaderProperty

Field Value

DependencyProperty

RegionModeProperty

Identifies the RegionMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RegionModeProperty

Field Value

DependencyProperty

RegionProperty

Identifies the Region dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RegionProperty

Field Value

DependencyProperty

ShapeFillProperty

Identifies the ShapeFillProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShapeFillProperty

Field Value

DependencyProperty

Properties

AllowDataTemplateForZoomLevel

Gets or sets value which indicates whether the DataTemplate will be re-applied to the map items when zoom level is changed. It makes possible creation of the DataTemplateSelector which will return data templates depends on the map zoom level.

Declaration

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

Property Value

bool

Remarks

Pay attention that re-applying of the data templates is resource consuming operation. Use this feature when you really need it only.

ClusteredDataSource

Gets or sets clustered data source.

Declaration

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

Property Value

ClusteredDataSource

Colorizer

Gets or sets map shapes colorizer.

Declaration

cs-api-definition
public IMapShapeColorizer Colorizer { get; set; }

Property Value

IMapShapeColorizer

DataMappings

Gets the value mappings that constitute the data mappings for a layer.

Declaration

cs-api-definition
public DataMappingCollection DataMappings { get; }

Property Value

DataMappingCollection

DefaultInformationLayerTemplate

Gets or sets the default data template.

Declaration

cs-api-definition
public DataTemplate DefaultInformationLayerTemplate { get; set; }

Property Value

DataTemplate

HighlightFill

Gets or sets default highlight shape fill properties. If highlight fill properties aren't set for MapShape object then this properties will be used.

Declaration

cs-api-definition
public MapShapeFill HighlightFill { get; set; }

Property Value

MapShapeFill

MapShapeDataTemplate

Gets or sets the data template for map shapes.

Declaration

cs-api-definition
public DataTemplate MapShapeDataTemplate { get; set; }

Property Value

DataTemplate

Reader

Gets or sets map shape reader. The map shapes are loaded by this reader will be added to the information layer automatically.

Declaration

cs-api-definition
public MapShapeReaderBase Reader { get; set; }

Property Value

MapShapeReaderBase

Region

Gets or sets geographical region is covered by this layer.

Declaration

cs-api-definition
public LocationRect Region { get; set; }

Property Value

LocationRect

RegionMode

Gets or sets geographical region size mode.

Declaration

cs-api-definition
public RegionSizeMode RegionMode { get; set; }

Property Value

RegionSizeMode

ShapeFill

Gets or sets default shape fill properties. If fill properties aren't set for MapShape object then this properties will be used.

Declaration

cs-api-definition
public MapShapeFill ShapeFill { get; set; }

Property Value

MapShapeFill

Methods

ArrangeItem(object)

Arrange object on the information layer.

Declaration

cs-api-definition
public void ArrangeItem(object item)

Parameters

item

object

Object to arrange.

ArrangeOverride(Size)

Called to arrange and size the content.

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

The computed size that is used to arrange the content.

Returns

Size

The calculated size.

Overrides MapLayer.ArrangeOverride(Size)

ClearContainerForItemOverride(DependencyObject, object)

Undoes the effects of the PrepareContainerForItemOverride method.

Declaration

cs-api-definition
protected override void ClearContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

The container element.

item

object

The item.

Dispose()

Dispose all resources are used by information layer.

Declaration

cs-api-definition
public override void Dispose()

Overrides MapLayer.Dispose()

GetBestView(IEnumerable<object>)

Gets location rectangle which represents best view for the given list of the items from this layer.

Declaration

cs-api-definition
public LocationRect GetBestView(IEnumerable<object> itemsList)

Parameters

itemsList

IEnumerable<object>

List of the items to get best view for.

Returns

LocationRect

Location rectangle which represents best view.

GetContainerForItemOverride()

Returns new ContentPresenter object.

Declaration

cs-api-definition
protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject

ContentPresenter object.

GetElementsInRectangle(LocationRect)

Search the objects in the information layer by given location rectangle. Returns all objects which are located in the rectangle.

Declaration

cs-api-definition
public IEnumerable<object> GetElementsInRectangle(LocationRect rectangle)

Parameters

rectangle

LocationRect

Rectangle to search elements in.

Returns

IEnumerable<object>

Collection of the objects inside rectangle.

GetGeoBounds(object)

Get geographical bounds of the given item representation.

Declaration

cs-api-definition
public LocationRect GetGeoBounds(object item)

Parameters

item

object

Item to get geographical bounds of. This item must be in the information layer already.

Returns

LocationRect

Geographical bounds of the given item.

GetItemsInLocation(Location)

Search the items in the information layer by given location.

Declaration

cs-api-definition
public IEnumerable<object> GetItemsInLocation(Location location)

Parameters

location

Location

Location to search items at.

Returns

IEnumerable<object>

Enumerator of the items found.

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

Declaration

cs-api-definition
protected override bool IsItemItsOwnContainerOverride(object item)

Parameters

item

object

The item to check.

Returns

bool

True if the item is (or is eligible to be) its own container; otherwise, false.

MultiscaleImage_MotionFinished(object, RoutedEventArgs)

Handle motion finished event on master multi-scale image. This method is designed for internal use.

Declaration

cs-api-definition
public override void MultiscaleImage_MotionFinished(object sender, RoutedEventArgs e)

Parameters

sender

object

Sender.

e

RoutedEventArgs

Event args.

Overrides MapLayer.MultiscaleImage_MotionFinished(object, RoutedEventArgs)

MultiscaleImage_ViewportChanged(object, RoutedEventArgs)

Handle viewport changed event on master multi-scale image. This method is designed for internal use.

Declaration

cs-api-definition
public override void MultiscaleImage_ViewportChanged(object sender, RoutedEventArgs e)

Parameters

sender

object

Sender.

e

RoutedEventArgs

Event args.

Overrides MapLayer.MultiscaleImage_ViewportChanged(object, RoutedEventArgs)

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)

Invoked when the ItemTemplateSelector property changes.

Declaration

cs-api-definition
protected override void OnItemTemplateSelectorChanged(DataTemplateSelector oldItemTemplateSelector, DataTemplateSelector newItemTemplateSelector)

Parameters

oldItemTemplateSelector

DataTemplateSelector

Old value of the ItemTemplateSelector property.

newItemTemplateSelector

DataTemplateSelector

New value of the ItemTemplateSelector property.

OnItemsChanged(NotifyCollectionChangedEventArgs)

Invoked when the Items property changes.

Declaration

cs-api-definition
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

Information about the change.

OnMapChanged(RadMap, RadMap)

Called when map control is changed.

Declaration

cs-api-definition
protected override void OnMapChanged(RadMap oldMap, RadMap newMap)

Parameters

oldMap

RadMap

Old map control.

newMap

RadMap

New map control.

Overrides MapLayer.OnMapChanged(RadMap, RadMap)

PrepareContainerForItemOverride(DependencyObject, object)

Prepares object for the container.

Declaration

cs-api-definition
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

Element.

item

object

Item.

SetClip(Size)

Set up clipping for layer.

Declaration

cs-api-definition
protected override void SetClip(Size size)

Parameters

size

Size

Overrides MapLayer.SetClip(Size)