ClassInformationLayer
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:
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public class InformationLayer : MapLayer, ILayer
Inheritance: objectMapLayerInformationLayer
Derived Classes:
Implements:
Inherited Members
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
DependencyProperty
ClusteredDataSourceProperty
Identifies the ClusteredDataSource dependency property.
Declaration
public static readonly DependencyProperty ClusteredDataSourceProperty
Field Value
DependencyProperty
ColorizerProperty
Identifies the Colorizer dependency property.
Declaration
public static readonly DependencyProperty ColorizerProperty
Field Value
DependencyProperty
DefaultInformationLayerTemplateProperty
Identifies the DefaultInformationLayerTemplate dependency property.
Declaration
public static readonly DependencyProperty DefaultInformationLayerTemplateProperty
Field Value
DependencyProperty
HighlightFillProperty
Identifies the HighlightFill dependency property.
Declaration
public static readonly DependencyProperty HighlightFillProperty
Field Value
DependencyProperty
MapShapeDataTemplateProperty
Identifies the MapShapeDataTemplate dependency property.
Declaration
public static readonly DependencyProperty MapShapeDataTemplateProperty
Field Value
DependencyProperty
ReaderProperty
Identifies the Reader dependency property.
Declaration
public static readonly DependencyProperty ReaderProperty
Field Value
DependencyProperty
RegionModeProperty
Identifies the RegionMode dependency property.
Declaration
public static readonly DependencyProperty RegionModeProperty
Field Value
DependencyProperty
RegionProperty
Identifies the Region dependency property.
Declaration
public static readonly DependencyProperty RegionProperty
Field Value
DependencyProperty
ShapeFillProperty
Identifies the ShapeFillProperty dependency property.
Declaration
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
public bool AllowDataTemplateForZoomLevel { get; set; }
Property Value
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
Colorizer
Gets or sets map shapes colorizer.
Declaration
public IMapShapeColorizer Colorizer { get; set; }
Property Value
DataMappings
Gets the value mappings that constitute the data mappings for a layer.
Declaration
public DataMappingCollection DataMappings { get; }
Property Value
DefaultInformationLayerTemplate
Gets or sets the default data template.
Declaration
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
public MapShapeFill HighlightFill { get; set; }
Property Value
MapShapeDataTemplate
Gets or sets the data template for map shapes.
Declaration
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
public MapShapeReaderBase Reader { get; set; }
Property Value
Region
Gets or sets geographical region is covered by this layer.
RegionMode
Gets or sets geographical region size mode.
Declaration
public RegionSizeMode RegionMode { get; set; }
Property Value
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
Methods
ArrangeItem(object)
Arrange object on the information layer.
Declaration
public void ArrangeItem(object item)
Parameters
item
Object to arrange.
ArrangeOverride(Size)
Called to arrange and size the content.
Declaration
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
ClearContainerForItemOverride(DependencyObject, object)
Undoes the effects of the PrepareContainerForItemOverride method.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
The container element.
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
itemsList
List of the items to get best view for.
Returns
Location rectangle which represents best view.
GetContainerForItemOverride()
Returns new ContentPresenter object.
Declaration
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
public IEnumerable<object> GetElementsInRectangle(LocationRect rectangle)
Parameters
rectangle
Rectangle to search elements in.
Returns
Collection of the objects inside rectangle.
GetGeoBounds(object)
Get geographical bounds of the given item representation.
Declaration
public LocationRect GetGeoBounds(object item)
Parameters
item
Item to get geographical bounds of. This item must be in the information layer already.
Returns
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 to search items at.
Returns
Enumerator of the items found.
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own container.
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
sender
Sender.
e
RoutedEventArgs
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
sender
Sender.
e
RoutedEventArgs
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 event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)
Invoked when the ItemTemplateSelector property changes.
Declaration
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
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgs
Information about the change.
OnMapChanged(RadMap, RadMap)
Called when map control is changed.
PrepareContainerForItemOverride(DependencyObject, object)
Prepares object for the container.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
Element.
item
Item.
SetClip(Size)
Set up clipping for layer.
Declaration
protected override void SetClip(Size size)
Parameters
size
Size
Overrides