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:
public class InformationLayer : MapLayer, ILayer
Inheritance: objectMapLayerInformationLayer
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the InformationLayer class.
public InformationLayer()
Fields
AllowDataTemplateForZoomLevelProperty
DependencyProperty
Identifies the AllowDataTemplateForZoomLevel dependency property.
public static readonly DependencyProperty AllowDataTemplateForZoomLevelProperty
ClusteredDataSourceProperty
DependencyProperty
Identifies the ClusteredDataSource dependency property.
public static readonly DependencyProperty ClusteredDataSourceProperty
ColorizerProperty
DependencyProperty
Identifies the Colorizer dependency property.
public static readonly DependencyProperty ColorizerProperty
DefaultInformationLayerTemplateProperty
DependencyProperty
Identifies the DefaultInformationLayerTemplate dependency property.
public static readonly DependencyProperty DefaultInformationLayerTemplateProperty
HighlightFillProperty
DependencyProperty
Identifies the HighlightFill dependency property.
public static readonly DependencyProperty HighlightFillProperty
MapShapeDataTemplateProperty
DependencyProperty
Identifies the MapShapeDataTemplate dependency property.
public static readonly DependencyProperty MapShapeDataTemplateProperty
ReaderProperty
DependencyProperty
Identifies the Reader dependency property.
public static readonly DependencyProperty ReaderProperty
RegionModeProperty
DependencyProperty
Identifies the RegionMode dependency property.
public static readonly DependencyProperty RegionModeProperty
RegionProperty
DependencyProperty
Identifies the Region dependency property.
public static readonly DependencyProperty RegionProperty
ShapeFillProperty
DependencyProperty
Identifies the ShapeFillProperty dependency property.
public static readonly DependencyProperty ShapeFillProperty
Properties
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.
public bool AllowDataTemplateForZoomLevel { get; set; }
Pay attention that re-applying of the data templates is resource consuming operation. Use this feature when you really need it only.
Gets or sets clustered data source.
public ClusteredDataSource ClusteredDataSource { get; set; }
Gets or sets map shapes colorizer.
public IMapShapeColorizer Colorizer { get; set; }
Gets the value mappings that constitute the data mappings for a layer.
public DataMappingCollection DataMappings { get; }
DefaultInformationLayerTemplate
DataTemplate
Gets or sets the default data template.
public DataTemplate DefaultInformationLayerTemplate { get; set; }
Gets or sets default highlight shape fill properties. If highlight fill properties aren't set for MapShape object then this properties will be used.
public MapShapeFill HighlightFill { get; set; }
MapShapeDataTemplate
DataTemplate
Gets or sets the data template for map shapes.
public DataTemplate MapShapeDataTemplate { get; set; }
Gets or sets map shape reader. The map shapes are loaded by this reader will be added to the information layer automatically.
public MapShapeReaderBase Reader { get; set; }
Gets or sets geographical region is covered by this layer.
public LocationRect Region { get; set; }
Gets or sets geographical region size mode.
public RegionSizeMode RegionMode { get; set; }
Gets or sets default shape fill properties. If fill properties aren't set for MapShape object then this properties will be used.
public MapShapeFill ShapeFill { get; set; }
Methods
Arrange object on the information layer.
Called to arrange and size the content.
protected override Size ArrangeOverride(Size finalSize)
The computed size that is used to arrange the content.
Returns:Size
The calculated size.
Overrides:
Undoes the effects of the PrepareContainerForItemOverride method.
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
The container element.
itemobjectThe item.
Dispose all resources are used by information layer.
public override void Dispose()
Overrides:
Gets location rectangle which represents best view for the given list of the items from this layer.
public LocationRect GetBestView(IEnumerable<object> itemsList)
List of the items to get best view for.
Returns:Location rectangle which represents best view.
Returns new ContentPresenter object.
protected override DependencyObject GetContainerForItemOverride()
DependencyObject
ContentPresenter object.
Search the objects in the information layer by given location rectangle. Returns all objects which are located in the rectangle.
public IEnumerable<object> GetElementsInRectangle(LocationRect rectangle)
Rectangle to search elements in.
Returns:Collection of the objects inside rectangle.
Get geographical bounds of the given item representation.
public LocationRect GetGeoBounds(object item)
Item to get geographical bounds of. This item must be in the information layer already.
Returns:Geographical bounds of the given item.
Search the items in the information layer by given location.
public IEnumerable<object> GetItemsInLocation(Location location)
Location to search items at.
Returns:Enumerator of the items found.
Handle motion finished event on master multi-scale image. This method is designed for internal use.
public override void MultiscaleImage_MotionFinished(object sender, RoutedEventArgs e)
Sender.
eRoutedEventArgsEvent args.
Overrides:
Handle viewport changed event on master multi-scale image. This method is designed for internal use.
public override void MultiscaleImage_ViewportChanged(object sender, RoutedEventArgs e)
Sender.
eRoutedEventArgsEvent args.
Overrides:
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
public override void OnApplyTemplate()
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Invoked when the Items property changes.
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Information about the change.
Invoked when the ItemTemplateSelector property changes.
protected override void OnItemTemplateSelectorChanged(DataTemplateSelector oldItemTemplateSelector, DataTemplateSelector newItemTemplateSelector)
Old value of the ItemTemplateSelector property.
newItemTemplateSelectorDataTemplateSelectorNew value of the ItemTemplateSelector property.
Prepares object for the container.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Element.
itemobjectItem.
Set up clipping for layer.
protected override void SetClip(Size size)
Overrides: