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

Base class for all layers.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public abstract class MapLayer : ItemsControl, ILayer

Inheritance: objectMapLayer

Derived Classes: InformationLayer

Implements: ILayer

Constructors

Initializes a new instance of the MapLayer class.

C#
protected MapLayer()

Fields

BaseZoomLevelProperty

DependencyProperty

Identifies the BaseZoomLevel dependency property.

C#
public static readonly DependencyProperty BaseZoomLevelProperty

GeographicalSizeProperty

DependencyProperty

Identifies the GeographicalSize dependency property.

C#
public static readonly DependencyProperty GeographicalSizeProperty

HotSpotProperty

DependencyProperty

Identifies the HotSpot dependency property.

C#
public static readonly DependencyProperty HotSpotProperty

LocationProperty

DependencyProperty

Identifies the Location dependency property.

C#
public static readonly DependencyProperty LocationProperty

MaxScaleProperty

DependencyProperty

Identifies the MaxScale dependency property.

C#
public static readonly DependencyProperty MaxScaleProperty

MinScaleProperty

DependencyProperty

Identifies the MinScale dependency property.

C#
public static readonly DependencyProperty MinScaleProperty

ZoomRangeProperty

DependencyProperty

Identifies the ZoomRange dependency property.

C#
public static readonly DependencyProperty ZoomRangeProperty

Properties

Gets or sets map control this layer belongs to.

C#
public RadMap MapControl { get; set; }

Implements: ILayer.MapControl

Methods

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.

Dispose all resources are used by RadMap control.

C#
public virtual void Dispose()

Gets value of the attachable BaseZoomLevel property. The BaseZoomLevel affect FrameworkElements (except MapShape based ones.) It specify zoom level where framework element in the information layer have ScaleTransform with scale = 1. If this property is set, then scale transformation will be applied to the framework element when we zoom in/out map control.

C#
public static double GetBaseZoomLevel(DependencyObject element)
Parameters:elementDependencyObject

Element to get value of the property from.

Returns:

double

Value of the BaseZoomLevel property.

Gets value of the attachable GeographicalSize property.

C#
public static Location GetGeographicalSize(DependencyObject element)
Parameters:elementDependencyObject

Element to get value of the property from.

Returns:

Location

Value of the GeographicalSize property.

Gets value of the attachable HotSpot property.

C#
public static HotSpot GetHotSpot(DependencyObject element)
Parameters:elementDependencyObject

Element to get value of the property from.

Returns:

HotSpot

Value of the HotSpot property.

Gets value of the attachable Location property.

C#
public static Location GetLocation(DependencyObject element)
Parameters:elementDependencyObject

Element to get value of the property from.

Returns:

Location

Value of the Location property.

Gets value of the attachable MaxScale property. The MaxScale affect FrameworkElements (except MapShape based ones.) It specify maximum scale factor which will be applied to the framework element when it has BaseZoomLevel property set and we zoom in map control.

C#
public static double GetMaxScale(DependencyObject element)
Parameters:elementDependencyObject

Element to get value of the property from.

Returns:

double

Value of the MaxScale property.

Gets value of the attachable MinScale property. The MinScale affect FrameworkElements (except MapShape based ones.) It specify maximum scale factor which will be applied to the framework element when it has BaseZoomLevel property set and we zoom out map control.

C#
public static double GetMinScale(DependencyObject element)
Parameters:elementDependencyObject

Element to get value of the property from.

Returns:

double

Value of the MinScale property.

Gets value of the attachable ZoomRange property.

C#
public static ZoomRange GetZoomRange(DependencyObject element)
Parameters:elementDependencyObject

Element to get value of the property from.

Returns:

ZoomRange

Value of the ZoomRange property.

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

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

Sender.

eRoutedEventArgs

Event args.

Implements: ILayer.MultiscaleImage_MotionFinished(object, RoutedEventArgs)

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

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

Sender.

eRoutedEventArgs

Event args.

Implements: ILayer.MultiscaleImage_ViewportChanged(object, RoutedEventArgs)

Is called when map control is changed for this map layer.

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

Old map control.

newMapRadMap

New map control.

Sets value of the attachable BaseZoomLevel property. The BaseZoomLevel affect FrameworkElements (except MapShape based ones.) It specify zoom level where framework element in the information layer have ScaleTransform with scale = 1. If this property is set, then scale transformation will be applied to the framework element when we zoom in/out map control.

C#
public static void SetBaseZoomLevel(DependencyObject element, double value)
Parameters:elementDependencyObject

Element to set value of the property to.

valuedouble

Zoom level.

Set up clipping for layer.

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

Sets value of the attachable GeographicalSize property.

C#
public static void SetGeographicalSize(DependencyObject element, Location value)
Parameters:elementDependencyObject

Element to set value of the property to.

valueLocation

Geographical size of the element.

Sets value of the attachable HotSpot property.

C#
public static void SetHotSpot(DependencyObject element, HotSpot value)
Parameters:elementDependencyObject

Element to set value of the property to.

valueHotSpot

Hotspot.

Sets value of the attachable Location property.

C#
public static void SetLocation(DependencyObject element, Location value)
Parameters:elementDependencyObject

Element to set value of the property to.

valueLocation

Geographical location of the element.

Sets value of the attachable MaxScale property. The MaxScale affect FrameworkElements (except MapShape based ones.) It specify maximum scale factor which will be applied to the framework element when it has BaseZoomLevel property set and we zoom in map control.

C#
public static void SetMaxScale(DependencyObject element, double value)
Parameters:elementDependencyObject

Element to get value of the property from.

valuedouble

Value of the MaxScale property.

Sets value of the attachable MinScale property. The MinScale affect FrameworkElements (except MapShape based ones.) It specify maximum scale factor which will be applied to the framework element when it has BaseZoomLevel property set and we zoom out map control.

C#
public static void SetMinScale(DependencyObject element, double value)
Parameters:elementDependencyObject

Element to get value of the property from.

valuedouble

Value of the MinScale property.

Sets value of the attachable ZoomRange property.

C#
public static void SetZoomRange(DependencyObject element, ZoomRange value)
Parameters:elementDependencyObject

Element to set value of the property to.

valueZoomRange

Zoom range of the element.