ClassMapLayer
Base class for all layers.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public abstract class MapLayer : ItemsControl, ILayer
Inheritance: objectMapLayer
Derived Classes:
Implements:
Constructors
MapLayer()
Initializes a new instance of the MapLayer class.
Declaration
protected MapLayer()
Fields
BaseZoomLevelProperty
Identifies the BaseZoomLevel dependency property.
Declaration
public static readonly DependencyProperty BaseZoomLevelProperty
Field Value
DependencyProperty
GeographicalSizeProperty
Identifies the GeographicalSize dependency property.
Declaration
public static readonly DependencyProperty GeographicalSizeProperty
Field Value
DependencyProperty
HotSpotProperty
Identifies the HotSpot dependency property.
Declaration
public static readonly DependencyProperty HotSpotProperty
Field Value
DependencyProperty
LocationProperty
Identifies the Location dependency property.
Declaration
public static readonly DependencyProperty LocationProperty
Field Value
DependencyProperty
MaxScaleProperty
Identifies the MaxScale dependency property.
Declaration
public static readonly DependencyProperty MaxScaleProperty
Field Value
DependencyProperty
MinScaleProperty
Identifies the MinScale dependency property.
Declaration
public static readonly DependencyProperty MinScaleProperty
Field Value
DependencyProperty
ZoomRangeProperty
Identifies the ZoomRange dependency property.
Declaration
public static readonly DependencyProperty ZoomRangeProperty
Field Value
DependencyProperty
Properties
MapControl
Gets or sets map control this layer belongs to.
Declaration
public RadMap MapControl { get; set; }
Property Value
Implements
Methods
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.
Dispose()
Dispose all resources are used by RadMap control.
Declaration
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
public static double GetBaseZoomLevel(DependencyObject element)
Parameters
element
DependencyObject
Element to get value of the property from.
Returns
Value of the BaseZoomLevel property.
GetGeographicalSize(DependencyObject)
Gets value of the attachable GeographicalSize property.
Declaration
public static Location GetGeographicalSize(DependencyObject element)
Parameters
element
DependencyObject
Element to get value of the property from.
Returns
Value of the GeographicalSize property.
GetHotSpot(DependencyObject)
Gets value of the attachable HotSpot property.
Declaration
public static HotSpot GetHotSpot(DependencyObject element)
Parameters
element
DependencyObject
Element to get value of the property from.
Returns
Value of the HotSpot property.
GetLocation(DependencyObject)
Gets value of the attachable Location property.
Declaration
public static Location GetLocation(DependencyObject element)
Parameters
element
DependencyObject
Element to get value of the property from.
Returns
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
public static double GetMaxScale(DependencyObject element)
Parameters
element
DependencyObject
Element to get value of the property from.
Returns
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
public static double GetMinScale(DependencyObject element)
Parameters
element
DependencyObject
Element to get value of the property from.
Returns
Value of the MinScale property.
GetZoomRange(DependencyObject)
Gets value of the attachable ZoomRange property.
Declaration
public static ZoomRange GetZoomRange(DependencyObject element)
Parameters
element
DependencyObject
Element to get value of the property from.
Returns
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
public virtual void MultiscaleImage_MotionFinished(object sender, RoutedEventArgs e)
Parameters
sender
Sender.
e
RoutedEventArgs
Event args.
Implements
MultiscaleImage_ViewportChanged(object, RoutedEventArgs)
Handle viewport changed event on master multi-scale image. This method is designed for internal use.
Declaration
public virtual void MultiscaleImage_ViewportChanged(object sender, RoutedEventArgs e)
Parameters
sender
Sender.
e
RoutedEventArgs
Event args.
Implements
OnMapChanged(RadMap, RadMap)
Is called when map control is changed for this map layer.
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
public static void SetBaseZoomLevel(DependencyObject element, double value)
Parameters
element
DependencyObject
Element to set value of the property to.
value
Zoom level.
SetClip(Size)
Set up clipping for layer.
Declaration
protected abstract void SetClip(Size size)
Parameters
size
Size
SetGeographicalSize(DependencyObject, Location)
Sets value of the attachable GeographicalSize property.
Declaration
public static void SetGeographicalSize(DependencyObject element, Location value)
Parameters
element
DependencyObject
Element to set value of the property to.
value
Geographical size of the element.
SetHotSpot(DependencyObject, HotSpot)
Sets value of the attachable HotSpot property.
Declaration
public static void SetHotSpot(DependencyObject element, HotSpot value)
Parameters
element
DependencyObject
Element to set value of the property to.
value
Hotspot.
SetLocation(DependencyObject, Location)
Sets value of the attachable Location property.
Declaration
public static void SetLocation(DependencyObject element, Location value)
Parameters
element
DependencyObject
Element to set value of the property to.
value
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
public static void SetMaxScale(DependencyObject element, double value)
Parameters
element
DependencyObject
Element to get value of the property from.
value
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
public static void SetMinScale(DependencyObject element, double value)
Parameters
element
DependencyObject
Element to get value of the property from.
value
Value of the MinScale property.
SetZoomRange(DependencyObject, ZoomRange)
Sets value of the attachable ZoomRange property.
Declaration
public static void SetZoomRange(DependencyObject element, ZoomRange value)
Parameters
element
DependencyObject
Element to set value of the property to.
value
Zoom range of the element.