Class MapLayer
Base class for all layers.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public abstract class MapLayer : ItemsControl, ILayer
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
System.
|
GeographicalSizeProperty
Identifies the GeographicalSize dependency property.
Declaration
public static readonly DependencyProperty GeographicalSizeProperty
Field Value
System.
|
HotSpotProperty
Identifies the HotSpot dependency property.
Declaration
public static readonly DependencyProperty HotSpotProperty
Field Value
System.
|
LocationProperty
Identifies the Location dependency property.
Declaration
public static readonly DependencyProperty LocationProperty
Field Value
System.
|
MaxScaleProperty
Identifies the MaxScale dependency property.
Declaration
public static readonly DependencyProperty MaxScaleProperty
Field Value
System.
|
MinScaleProperty
Identifies the MinScale dependency property.
Declaration
public static readonly DependencyProperty MinScaleProperty
Field Value
System.
|
ZoomRangeProperty
Identifies the ZoomRange dependency property.
Declaration
public static readonly DependencyProperty ZoomRangeProperty
Field Value
System.
|
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
System. The computed size that is used to arrange the content. |
Returns
System. 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
System. Element to get value of the property from. |
Returns
System. Value of the BaseZoomLevel property. |
GetGeographicalSize(DependencyObject)
Gets value of the attachable GeographicalSize property.
Declaration
public static Location GetGeographicalSize(DependencyObject element)
Parameters
System. 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
public static HotSpot GetHotSpot(DependencyObject element)
Parameters
System. Element to get value of the property from. |
Returns
Hot Value of the HotSpot property. |
GetLocation(DependencyObject)
Gets value of the attachable Location property.
Declaration
public static Location GetLocation(DependencyObject element)
Parameters
System. 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
public static double GetMaxScale(DependencyObject element)
Parameters
System. Element to get value of the property from. |
Returns
System. 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
System. Element to get value of the property from. |
Returns
System. Value of the MinScale property. |
GetZoomRange(DependencyObject)
Gets value of the attachable ZoomRange property.
Declaration
public static ZoomRange GetZoomRange(DependencyObject element)
Parameters
System. Element to get value of the property from. |
Returns
Zoom 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
System. Sender. |
System. 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
System. Sender. |
System. Event args. |
Implements
OnMapChanged(RadMap, RadMap)
Is called when map control is changed for this map layer.
Declaration
protected abstract void OnMapChanged(RadMap oldMap, RadMap newMap)
Parameters
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
System. Element to set value of the property to. |
System. Zoom level. |
SetClip(Size)
Set up clipping for layer.
Declaration
protected abstract void SetClip(Size size)
Parameters
System.
|
SetGeographicalSize(DependencyObject, Location)
Sets value of the attachable GeographicalSize property.
Declaration
public static void SetGeographicalSize(DependencyObject element, Location value)
Parameters
System. Element to set value of the property to. |
Location
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
System. Element to set value of the property to. |
Hot Hotspot. |
SetLocation(DependencyObject, Location)
Sets value of the attachable Location property.
Declaration
public static void SetLocation(DependencyObject element, Location value)
Parameters
System. Element to set value of the property to. |
Location
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
System. Element to get value of the property from. |
System. 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
System. Element to get value of the property from. |
System. 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
System. Element to set value of the property to. |
Zoom Zoom range of the element. |