Class MapLayer
Base class for all layers.
Inherited Members
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.Windows.DependencyProperty
|
GeographicalSizeProperty
Identifies the GeographicalSize dependency property.
Declaration
public static readonly DependencyProperty GeographicalSizeProperty
Field Value
System.Windows.DependencyProperty
|
HotSpotProperty
Identifies the HotSpot dependency property.
Declaration
public static readonly DependencyProperty HotSpotProperty
Field Value
System.Windows.DependencyProperty
|
LocationProperty
Identifies the Location dependency property.
Declaration
public static readonly DependencyProperty LocationProperty
Field Value
System.Windows.DependencyProperty
|
MaxScaleProperty
Identifies the MaxScale dependency property.
Declaration
public static readonly DependencyProperty MaxScaleProperty
Field Value
System.Windows.DependencyProperty
|
MinScaleProperty
Identifies the MinScale dependency property.
Declaration
public static readonly DependencyProperty MinScaleProperty
Field Value
System.Windows.DependencyProperty
|
ZoomRangeProperty
Identifies the ZoomRange dependency property.
Declaration
public static readonly DependencyProperty ZoomRangeProperty
Field Value
System.Windows.DependencyProperty
|
Properties
MapControl
Gets or sets map control this layer belongs to.
Declaration
public RadMap MapControl { get; set; }
Property Value
RadMap
|
Implements
Methods
ArrangeOverride(Size)
Called to arrange and size the content.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size
finalSize
The computed size that is used to arrange the content. |
Returns
System.Windows.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
System.Windows.DependencyObject
element
Element to get value of the property from. |
Returns
System.Double
Value of the BaseZoomLevel property. |
GetGeographicalSize(DependencyObject)
Gets value of the attachable GeographicalSize property.
Declaration
public static Location GetGeographicalSize(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
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.Windows.DependencyObject
element
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
public static Location GetLocation(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
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.Windows.DependencyObject
element
Element to get value of the property from. |
Returns
System.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
public static double GetMinScale(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
Element to get value of the property from. |
Returns
System.Double
Value of the MinScale property. |
GetZoomRange(DependencyObject)
Gets value of the attachable ZoomRange property.
Declaration
public static ZoomRange GetZoomRange(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
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
public virtual void MultiscaleImage_MotionFinished(object sender, RoutedEventArgs e)
Parameters
System.Object
sender
Sender. |
System.Windows.RoutedEventArgs
e
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.Object
sender
Sender. |
System.Windows.RoutedEventArgs
e
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
RadMap
oldMap
Old map control. |
RadMap
newMap
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
public static void SetBaseZoomLevel(DependencyObject element, double value)
Parameters
System.Windows.DependencyObject
element
Element to set value of the property to. |
System.Double
value
Zoom level. |
SetClip(Size)
Set up clipping for layer.
Declaration
protected abstract void SetClip(Size size)
Parameters
System.Windows.Size
size
|
SetGeographicalSize(DependencyObject, Location)
Sets value of the attachable GeographicalSize property.
Declaration
public static void SetGeographicalSize(DependencyObject element, Location value)
Parameters
System.Windows.DependencyObject
element
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.Windows.DependencyObject
element
Element to set value of the property to. |
HotSpot
value
Hotspot. |
SetLocation(DependencyObject, Location)
Sets value of the attachable Location property.
Declaration
public static void SetLocation(DependencyObject element, Location value)
Parameters
System.Windows.DependencyObject
element
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.Windows.DependencyObject
element
Element to get value of the property from. |
System.Double
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
System.Windows.DependencyObject
element
Element to get value of the property from. |
System.Double
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
System.Windows.DependencyObject
element
Element to set value of the property to. |
ZoomRange
value
Zoom range of the element. |