Class ImageryLayer
ImageryLayer
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Maps
Assembly: Syncfusion.SfMaps.WPF.dll
Syntax
public class ImageryLayer : MapLayer, IDisposable
Constructors
ImageryLayer()
Defines the ImageryLayer constructor
Declaration
public ImageryLayer()
Fields
BingMapKeyProperty
Identifies the BingMapKey property of the Imagery Layer.
Declaration
public static readonly DependencyProperty BingMapKeyProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
BingMapStyleProperty
// Using a DependencyProperty as the backing store for BingMapStyle. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty BingMapStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CacheDirectoryProperty
The DependencyProperty of CacheDirectory property
Declaration
public static readonly DependencyProperty CacheDirectoryProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CanCacheTilesProperty
The DependencyProperty of CanCacheTiles property
Declaration
public static readonly DependencyProperty CanCacheTilesProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CenterProperty
The DependencyProperty of Center property
Declaration
public static readonly DependencyProperty CenterProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
DistanceTypeProperty
The DependencyProperty of DistanceType property
Declaration
public static readonly DependencyProperty DistanceTypeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LatLngBoundsProperty
The DependencyProperty of LatLngBounds property
Declaration
public static readonly DependencyProperty LatLngBoundsProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LayerTypeProperty
// Using a DependencyProperty as the backing store for LayerType. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty LayerTypeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MarkersProperty
Gets or sets the value for marker property
Declaration
public static readonly DependencyProperty MarkersProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MarkerTemplateProperty
Gets or sets the value for marker template property
Declaration
public static readonly DependencyProperty MarkerTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
RadiusProperty
The DependencyProperty of Radius property
Declaration
public static readonly DependencyProperty RadiusProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ResetOnDoubleTapProperty
The DependencyProperty of ResetOnDoubleTap property
Declaration
public static readonly DependencyProperty ResetOnDoubleTapProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
SubShapeFileLayersProperty
// Using a DependencyProperty as the backing store for SubShapeFileLayers. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SubShapeFileLayersProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
BingMapKey
Gets or sets BingMapKey for Imagery Layer.
Declaration
public string BingMapKey { get; set; }
Property Value
| Type |
|---|
| System.String |
BingMapStyle
Gets or sets BingMapStyle for Imagery Layer.
Declaration
public BingMapStyle BingMapStyle { get; set; }
Property Value
| Type |
|---|
| BingMapStyle |
CacheDirectory
Gets or sets the value for CacheDirectory
Declaration
public string CacheDirectory { get; set; }
Property Value
| Type |
|---|
| System.String |
CanCacheTiles
Gets or sets a bool value indicating whether to save the tiles in cache
Declaration
public bool CanCacheTiles { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Center
Gets or sets the value for Center
Declaration
public Point Center { get; set; }
Property Value
| Type |
|---|
| System.Windows.Point |
DistanceType
Gets or sets the radius distance type in meters or kilometers or miles to calculate the auto zoom level.
Declaration
public DistanceType DistanceType { get; set; }
Property Value
| Type |
|---|
| DistanceType |
LatLngBounds
Gets or sets the geo bounds based on southwest and northeast corner goe points to calculate auto zoom level.
Declaration
public LatLngBounds LatLngBounds { get; set; }
Property Value
| Type |
|---|
| LatLngBounds |
LayerType
Gets or sets LayerType for Imagery Layer.
Declaration
public LayerType LayerType { get; set; }
Property Value
| Type |
|---|
| LayerType |
MapBounds
Gets the imagery layer bounds value (x, y, width, height) in pixels.
Declaration
public Rect MapBounds { get; }
Property Value
| Type |
|---|
| System.Windows.Rect |
Markers
Gets or Sets the Markers for ShapeFileLayer.
Declaration
public IEnumerable Markers { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.IEnumerable | Type : System.Collections.IEnumerable |
Remarks
Use this property to bound the object to a point in the map based on Latitude and Longitude.
Examples
MarkerTemplate
Gets or sets the Template for the Items in the Marker.
Declaration
public DataTemplate MarkerTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | Type :System.Windows.DataTemplate |
Remarks
Use this property to define the template for the Items which are defines in the Marker.
Radius
Gets or sets the radius distance from center position to calculate the auto zoom level.
Declaration
public double Radius { get; set; }
Property Value
| Type |
|---|
| System.Double |
ResetOnDoubleTap
Gets or sets a value whether to reset on double tap
Declaration
public bool ResetOnDoubleTap { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
SubShapeFileLayers
Gets or sets the sub shape file layer. This property is used to add collection of sub layers on base (imagery or shape) layer.
Declaration
public ObservableCollection<SubShapeFileLayer> SubShapeFileLayers { get; set; }
Property Value
| Type |
|---|
| System.Collections.ObjectModel.ObservableCollection<SubShapeFileLayer> |
Methods
DeleteTilesFromCache()
To delete the files saved in the cache
Declaration
public void DeleteTilesFromCache()
Dispose()
Dispose method invokes while unloading ImageryLayer
Declaration
public void Dispose()
GetUri(Int32, Int32, Int32)
This method returns the uri link
Declaration
protected virtual string GetUri(int X, int Y, int Scale)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | X | X Co-ordinate |
| System.Int32 | Y | Y Co-ordinate |
| System.Int32 | Scale | Scale |
Returns
| Type | Description |
|---|---|
| System.String | returns uri |
LoadBingMap()
This method helps to load the Bing Map in the Imagery Layer
Declaration
public void LoadBingMap()
LoadOSM()
This method helps to load the OSM map in the Imagery Layer
Declaration
public void LoadOSM()
OnApplyTemplate()
Defines OnApplyTemplate
Declaration
public override void OnApplyTemplate()
OnMouseDoubleClick(MouseButtonEventArgs)
Declaration
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e |
OnMouseEnter(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the event data. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released. |
OnMouseMove(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the event data. |
OnMouseUp(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseUp(MouseButtonEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the event data. |
OnMouseWheel(MouseWheelEventArgs)
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Input.MouseWheelEventArgs | e |
Events
CenterChanged
Gets or sets the event which is raised when the panning and zooming is changing
Declaration
public event EventHandler<CenterChangedEventArgs> CenterChanged
Event Type
| Type |
|---|
| System.EventHandler<CenterChangedEventArgs> |
ZoomLevelChanging
Event fired when zoom level is changingfrom one level to another levl
Declaration
public event EventHandler<ZoomLevelChangingEventArgs> ZoomLevelChanging
Event Type
| Type |
|---|
| System.EventHandler<ZoomLevelChangingEventArgs> |