Class
MapLayer

Base class for all layers.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public abstract class MapLayer : ItemsControl, ILayer

Inheritance: objectMapLayer

Derived Classes: InformationLayer

Implements: ILayer

Constructors

MapLayer()

Initializes a new instance of the MapLayer class.

Declaration

cs-api-definition
protected MapLayer()

Fields

BaseZoomLevelProperty

Identifies the BaseZoomLevel dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty BaseZoomLevelProperty

Field Value

DependencyProperty

GeographicalSizeProperty

Identifies the GeographicalSize dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GeographicalSizeProperty

Field Value

DependencyProperty

HotSpotProperty

Identifies the HotSpot dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HotSpotProperty

Field Value

DependencyProperty

LocationProperty

Identifies the Location dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LocationProperty

Field Value

DependencyProperty

MaxScaleProperty

Identifies the MaxScale dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxScaleProperty

Field Value

DependencyProperty

MinScaleProperty

Identifies the MinScale dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinScaleProperty

Field Value

DependencyProperty

ZoomRangeProperty

Identifies the ZoomRange dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ZoomRangeProperty

Field Value

DependencyProperty

Properties

MapControl

Gets or sets map control this layer belongs to.

Declaration

cs-api-definition
public RadMap MapControl { get; set; }

Property Value

RadMap

Implements ILayer.MapControl

Methods

ArrangeOverride(Size)

Called to arrange and size the content.

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

The computed size that is used to arrange the content.

Returns

Size

The calculated size.

Dispose()

Dispose all resources are used by RadMap control.

Declaration

cs-api-definition
public virtual void Dispose()

GetBaseZoomLevel(DependencyObject)

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.

Declaration

cs-api-definition
public static double GetBaseZoomLevel(DependencyObject element)

Parameters

element

DependencyObject

Element to get value of the property from.

Returns

double

Value of the BaseZoomLevel property.

GetGeographicalSize(DependencyObject)

Gets value of the attachable GeographicalSize property.

Declaration

cs-api-definition
public static Location GetGeographicalSize(DependencyObject element)

Parameters

element

DependencyObject

Element to get value of the property from.

Returns

Location

Value of the GeographicalSize property.

GetHotSpot(DependencyObject)

Gets value of the attachable HotSpot property.

Declaration

cs-api-definition
public static HotSpot GetHotSpot(DependencyObject element)

Parameters

element

DependencyObject

Element to get value of the property from.

Returns

HotSpot

Value of the HotSpot property.

GetLocation(DependencyObject)

Gets value of the attachable Location property.

Declaration

cs-api-definition
public static Location GetLocation(DependencyObject element)

Parameters

element

DependencyObject

Element to get value of the property from.

Returns

Location

Value of the Location property.

GetMaxScale(DependencyObject)

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.

Declaration

cs-api-definition
public static double GetMaxScale(DependencyObject element)

Parameters

element

DependencyObject

Element to get value of the property from.

Returns

double

Value of the MaxScale property.

GetMinScale(DependencyObject)

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.

Declaration

cs-api-definition
public static double GetMinScale(DependencyObject element)

Parameters

element

DependencyObject

Element to get value of the property from.

Returns

double

Value of the MinScale property.

GetZoomRange(DependencyObject)

Gets value of the attachable ZoomRange property.

Declaration

cs-api-definition
public static ZoomRange GetZoomRange(DependencyObject element)

Parameters

element

DependencyObject

Element to get value of the property from.

Returns

ZoomRange

Value of the ZoomRange property.

MultiscaleImage_MotionFinished(object, RoutedEventArgs)

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

Declaration

cs-api-definition
public virtual void MultiscaleImage_MotionFinished(object sender, RoutedEventArgs e)

Parameters

sender

object

Sender.

e

RoutedEventArgs

Event args.

Implements ILayer.MultiscaleImage_MotionFinished(object, RoutedEventArgs)

MultiscaleImage_ViewportChanged(object, RoutedEventArgs)

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

Declaration

cs-api-definition
public virtual void MultiscaleImage_ViewportChanged(object sender, RoutedEventArgs e)

Parameters

sender

object

Sender.

e

RoutedEventArgs

Event args.

Implements ILayer.MultiscaleImage_ViewportChanged(object, RoutedEventArgs)

OnMapChanged(RadMap, RadMap)

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

Declaration

cs-api-definition
protected abstract void OnMapChanged(RadMap oldMap, RadMap newMap)

Parameters

oldMap

RadMap

Old map control.

newMap

RadMap

New map control.

SetBaseZoomLevel(DependencyObject, double)

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.

Declaration

cs-api-definition
public static void SetBaseZoomLevel(DependencyObject element, double value)

Parameters

element

DependencyObject

Element to set value of the property to.

value

double

Zoom level.

SetClip(Size)

Set up clipping for layer.

Declaration

cs-api-definition
protected abstract void SetClip(Size size)

Parameters

size

Size

SetGeographicalSize(DependencyObject, Location)

Sets value of the attachable GeographicalSize property.

Declaration

cs-api-definition
public static void SetGeographicalSize(DependencyObject element, Location value)

Parameters

element

DependencyObject

Element to set value of the property to.

value

Location

Geographical size of the element.

SetHotSpot(DependencyObject, HotSpot)

Sets value of the attachable HotSpot property.

Declaration

cs-api-definition
public static void SetHotSpot(DependencyObject element, HotSpot value)

Parameters

element

DependencyObject

Element to set value of the property to.

value

HotSpot

Hotspot.

SetLocation(DependencyObject, Location)

Sets value of the attachable Location property.

Declaration

cs-api-definition
public static void SetLocation(DependencyObject element, Location value)

Parameters

element

DependencyObject

Element to set value of the property to.

value

Location

Geographical location of the element.

SetMaxScale(DependencyObject, double)

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.

Declaration

cs-api-definition
public static void SetMaxScale(DependencyObject element, double value)

Parameters

element

DependencyObject

Element to get value of the property from.

value

double

Value of the MaxScale property.

SetMinScale(DependencyObject, double)

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.

Declaration

cs-api-definition
public static void SetMinScale(DependencyObject element, double value)

Parameters

element

DependencyObject

Element to get value of the property from.

value

double

Value of the MinScale property.

SetZoomRange(DependencyObject, ZoomRange)

Sets value of the attachable ZoomRange property.

Declaration

cs-api-definition
public static void SetZoomRange(DependencyObject element, ZoomRange value)

Parameters

element

DependencyObject

Element to set value of the property to.

value

ZoomRange

Zoom range of the element.