New to Telerik UI for WPFStart a free 30-day trial

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

Definition

Constructors

Initializes a new instance of the InformationLayer class.

C#
public InformationLayer()

Fields

Identifies the AllowDataTemplateForZoomLevel dependency property.

C#
public static readonly DependencyProperty AllowDataTemplateForZoomLevelProperty

ClusteredDataSourceProperty

DependencyProperty

Identifies the ClusteredDataSource dependency property.

C#
public static readonly DependencyProperty ClusteredDataSourceProperty

ColorizerProperty

DependencyProperty

Identifies the Colorizer dependency property.

C#
public static readonly DependencyProperty ColorizerProperty

Identifies the DefaultInformationLayerTemplate dependency property.

C#
public static readonly DependencyProperty DefaultInformationLayerTemplateProperty

HighlightFillProperty

DependencyProperty

Identifies the HighlightFill dependency property.

C#
public static readonly DependencyProperty HighlightFillProperty

Identifies the MapShapeDataTemplate dependency property.

C#
public static readonly DependencyProperty MapShapeDataTemplateProperty

ReaderProperty

DependencyProperty

Identifies the Reader dependency property.

C#
public static readonly DependencyProperty ReaderProperty

RegionModeProperty

DependencyProperty

Identifies the RegionMode dependency property.

C#
public static readonly DependencyProperty RegionModeProperty

RegionProperty

DependencyProperty

Identifies the Region dependency property.

C#
public static readonly DependencyProperty RegionProperty

ShapeFillProperty

DependencyProperty

Identifies the ShapeFillProperty dependency property.

C#
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.

C#
public bool AllowDataTemplateForZoomLevel { get; set; }
Remarks:

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.

C#
public ClusteredDataSource ClusteredDataSource { get; set; }

Gets or sets map shapes colorizer.

C#
public IMapShapeColorizer Colorizer { get; set; }

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

C#
public DataMappingCollection DataMappings { get; }

Gets or sets the default data template.

C#
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.

C#
public MapShapeFill HighlightFill { get; set; }

Gets or sets the data template for map shapes.

C#
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.

C#
public MapShapeReaderBase Reader { get; set; }

Gets or sets geographical region is covered by this layer.

C#
public LocationRect Region { get; set; }

Gets or sets geographical region size mode.

C#
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.

C#
public MapShapeFill ShapeFill { get; set; }

Methods

Arrange object on the information layer.

C#
public void ArrangeItem(object item)
Parameters:itemobject

Object to arrange.

Called to arrange and size the content.

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSize

The computed size that is used to arrange the content.

Returns:

Size

The calculated size.

Overrides: MapLayer.ArrangeOverride(Size)

Undoes the effects of the PrepareContainerForItemOverride method.

C#
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

The container element.

itemobject

The item.

Dispose all resources are used by information layer.

C#
public override void Dispose()

Overrides: MapLayer.Dispose()

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

C#
public LocationRect GetBestView(IEnumerable<object> itemsList)
Parameters:itemsListIEnumerable<object>

List of the items to get best view for.

Returns:

LocationRect

Location rectangle which represents best view.

Returns new ContentPresenter object.

C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

ContentPresenter object.

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

C#
public IEnumerable<object> GetElementsInRectangle(LocationRect rectangle)
Parameters:rectangleLocationRect

Rectangle to search elements in.

Returns:

IEnumerable<object>

Collection of the objects inside rectangle.

Get geographical bounds of the given item representation.

C#
public LocationRect GetGeoBounds(object item)
Parameters:itemobject

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

Returns:

LocationRect

Geographical bounds of the given item.

Search the items in the information layer by given location.

C#
public IEnumerable<object> GetItemsInLocation(Location location)
Parameters:locationLocation

Location to search items at.

Returns:

IEnumerable<object>

Enumerator of the items found.

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

C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobject

The item to check.

Returns:

bool

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

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

C#
public override void MultiscaleImage_MotionFinished(object sender, RoutedEventArgs e)
Parameters:senderobject

Sender.

eRoutedEventArgs

Event args.

Overrides: MapLayer.MultiscaleImage_MotionFinished(object, RoutedEventArgs)

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

C#
public override void MultiscaleImage_ViewportChanged(object sender, RoutedEventArgs e)
Parameters:senderobject

Sender.

eRoutedEventArgs

Event args.

Overrides: MapLayer.MultiscaleImage_ViewportChanged(object, RoutedEventArgs)

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

C#
public override void OnApplyTemplate()

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

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Invoked when the Items property changes.

C#
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

Information about the change.

Invoked when the ItemTemplateSelector property changes.

C#
protected override void OnItemTemplateSelectorChanged(DataTemplateSelector oldItemTemplateSelector, DataTemplateSelector newItemTemplateSelector)
Parameters:oldItemTemplateSelectorDataTemplateSelector

Old value of the ItemTemplateSelector property.

newItemTemplateSelectorDataTemplateSelector

New value of the ItemTemplateSelector property.

Called when map control is changed.

C#
protected override void OnMapChanged(RadMap oldMap, RadMap newMap)
Parameters:oldMapRadMap

Old map control.

newMapRadMap

New map control.

Overrides: MapLayer.OnMapChanged(RadMap, RadMap)

Prepares object for the container.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element.

itemobject

Item.

Set up clipping for layer.

C#
protected override void SetClip(Size size)
Parameters:sizeSize

Overrides: MapLayer.SetClip(Size)