Class InformationLayer
Layer which able to show FrameworkElements and/or shapes based on the geographical coordinates over the map.
Inherited Members
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class InformationLayer : MapLayer, ILayer
Constructors
InformationLayer()
Initializes a new instance of the InformationLayer class.
Declaration
public InformationLayer()
Fields
AllowDataTemplateForZoomLevelProperty
Identifies the AllowDataTemplateForZoomLevel dependency property.
Declaration
public static readonly DependencyProperty AllowDataTemplateForZoomLevelProperty
Field Value
System.Windows.DependencyProperty
|
ClusteredDataSourceProperty
Identifies the ClusteredDataSource dependency property.
Declaration
public static readonly DependencyProperty ClusteredDataSourceProperty
Field Value
System.Windows.DependencyProperty
|
ColorizerProperty
Identifies the Colorizer dependency property.
Declaration
public static readonly DependencyProperty ColorizerProperty
Field Value
System.Windows.DependencyProperty
|
DefaultInformationLayerTemplateProperty
Identifies the DefaultInformationLayerTemplate dependency property.
Declaration
public static readonly DependencyProperty DefaultInformationLayerTemplateProperty
Field Value
System.Windows.DependencyProperty
|
HighlightFillProperty
Identifies the HighlightFill dependency property.
Declaration
public static readonly DependencyProperty HighlightFillProperty
Field Value
System.Windows.DependencyProperty
|
MapShapeDataTemplateProperty
Identifies the MapShapeDataTemplate dependency property.
Declaration
public static readonly DependencyProperty MapShapeDataTemplateProperty
Field Value
System.Windows.DependencyProperty
|
ReaderProperty
Identifies the Reader dependency property.
Declaration
public static readonly DependencyProperty ReaderProperty
Field Value
System.Windows.DependencyProperty
|
RegionModeProperty
Identifies the RegionMode dependency property.
Declaration
public static readonly DependencyProperty RegionModeProperty
Field Value
System.Windows.DependencyProperty
|
RegionProperty
Identifies the Region dependency property.
Declaration
public static readonly DependencyProperty RegionProperty
Field Value
System.Windows.DependencyProperty
|
ShapeFillProperty
Identifies the ShapeFillProperty dependency property.
Declaration
public static readonly DependencyProperty ShapeFillProperty
Field Value
System.Windows.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
public bool AllowDataTemplateForZoomLevel { get; set; }
Property Value
System.Boolean
|
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
public ClusteredDataSource ClusteredDataSource { get; set; }
Property Value
ClusteredDataSource
|
Colorizer
Gets or sets map shapes colorizer.
Declaration
public IMapShapeColorizer Colorizer { get; set; }
Property Value
IMapShapeColorizer
|
DataMappings
Gets the value mappings that constitute the data mappings for a layer.
Declaration
public DataMappingCollection DataMappings { get; }
Property Value
DataMappingCollection
|
DefaultInformationLayerTemplate
Gets or sets the default data template.
Declaration
public DataTemplate DefaultInformationLayerTemplate { get; set; }
Property Value
System.Windows.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
public MapShapeFill HighlightFill { get; set; }
Property Value
MapShapeFill
|
MapShapeDataTemplate
Gets or sets the data template for map shapes.
Declaration
public DataTemplate MapShapeDataTemplate { get; set; }
Property Value
System.Windows.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
public MapShapeReaderBase Reader { get; set; }
Property Value
MapShapeReaderBase
|
Region
Gets or sets geographical region is covered by this layer.
Declaration
public LocationRect Region { get; set; }
Property Value
LocationRect
|
RegionMode
Gets or sets geographical region size mode.
Declaration
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
public MapShapeFill ShapeFill { get; set; }
Property Value
MapShapeFill
|
Methods
ArrangeItem(Object)
Arrange object on the information layer.
Declaration
public void ArrangeItem(object item)
Parameters
System.Object
item
Object to arrange. |
ArrangeOverride(Size)
Called to arrange and size the content.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size
finalSize
The computed size that is used to arrange the content. |
Returns
System.Windows.Size
The calculated size. |
Overrides
ClearContainerForItemOverride(DependencyObject, Object)
Undoes the effects of the PrepareContainerForItemOverride method.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject
element
The container element. |
System.Object
item
The item. |
Dispose()
Dispose all resources are used by information layer.
Declaration
public override void Dispose()
Overrides
GetBestView(IEnumerable<Object>)
Gets location rectangle which represents best view for the given list of the items from this layer.
Declaration
public LocationRect GetBestView(IEnumerable<object> itemsList)
Parameters
System.Collections.Generic.IEnumerable<System.Object>
itemsList
List of the items to get best view for. |
Returns
LocationRect
Location rectangle which represents best view. |
GetContainerForItemOverride()
Returns new ContentPresenter object.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
System.Windows.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
public IEnumerable<object> GetElementsInRectangle(LocationRect rectangle)
Parameters
LocationRect
rectangle
Rectangle to search elements in. |
Returns
System.Collections.Generic.IEnumerable<System.Object>
Collection of the objects inside rectangle. |
GetGeoBounds(Object)
Get geographical bounds of the given item representation.
Declaration
public LocationRect GetGeoBounds(object item)
Parameters
System.Object
item
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
public IEnumerable<object> GetItemsInLocation(Location location)
Parameters
Location
location
Location to search items at. |
Returns
System.Collections.Generic.IEnumerable<System.Object>
Enumerator of the items found. |
IsItemItsOwnContainerOverride(Object)
Determines if the specified item is (or is eligible to be) its own container.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
System.Object
item
The item to check. |
Returns
System.Boolean
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
public override void MultiscaleImage_MotionFinished(object sender, RoutedEventArgs e)
Parameters
System.Object
sender
Sender. |
System.Windows.RoutedEventArgs
e
Event args. |
Overrides
MultiscaleImage_ViewportChanged(Object, RoutedEventArgs)
Handle viewport changed event on master multi-scale image. This method is designed for internal use.
Declaration
public override void MultiscaleImage_ViewportChanged(object sender, RoutedEventArgs e)
Parameters
System.Object
sender
Sender. |
System.Windows.RoutedEventArgs
e
Event args. |
Overrides
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
OnItemsChanged(NotifyCollectionChangedEventArgs)
Invoked when the Items property changes.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
Information about the change. |
OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)
Invoked when the ItemTemplateSelector property changes.
Declaration
protected override void OnItemTemplateSelectorChanged(DataTemplateSelector oldItemTemplateSelector, DataTemplateSelector newItemTemplateSelector)
Parameters
System.Windows.Controls.DataTemplateSelector
oldItemTemplateSelector
Old value of the ItemTemplateSelector property. |
System.Windows.Controls.DataTemplateSelector
newItemTemplateSelector
New value of the ItemTemplateSelector property. |
OnMapChanged(RadMap, RadMap)
Called when map control is changed.
Declaration
protected override void OnMapChanged(RadMap oldMap, RadMap newMap)
Parameters
RadMap
oldMap
Old map control. |
RadMap
newMap
New map control. |
Overrides
PrepareContainerForItemOverride(DependencyObject, Object)
Prepares object for the container.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject
element
Element. |
System.Object
item
Item. |
SetClip(Size)
Set up clipping for layer.
Declaration
protected override void SetClip(Size size)
Parameters
System.Windows.Size
size
|