Class ImageryLayer
ImageryLayer
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Maps
Assembly: Syncfusion.SfMaps.UWP.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 |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.DependencyProperty |
CanCacheTilesProperty
The DependencyProperty of CanCacheTiles property
Declaration
public static readonly DependencyProperty CanCacheTilesProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
DistanceTypeProperty
The DependencyProperty of DistanceType property
Declaration
public static readonly DependencyProperty DistanceTypeProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
GeoCoordinatesProperty
The DependencyProperty of GeoCoordinates property
Declaration
public static readonly DependencyProperty GeoCoordinatesProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
LatLngBoundsProperty
The DependencyProperty of LatLngBounds property
Declaration
public static readonly DependencyProperty LatLngBoundsProperty
Field Value
Type |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.DependencyProperty |
MarkersProperty
Gets or sets the value for marker property
Declaration
public static readonly DependencyProperty MarkersProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
MarkerTemplateProperty
Gets or sets the value for marker template property
Declaration
public static readonly DependencyProperty MarkerTemplateProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
RadiusProperty
The DependencyProperty of Radius property
Declaration
public static readonly DependencyProperty RadiusProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ResetOnDoubleTapProperty
The DependencyProperty of ResetOnDoubleTap property
Declaration
public static readonly DependencyProperty ResetOnDoubleTapProperty
Field Value
Type |
---|
Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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 |
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 |
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 |
GeoCoordinates
Gets or sets the value for GeoCoordinates
Declaration
public Point GeoCoordinates { get; set; }
Property Value
Type |
---|
Windows.Foundation.Point |
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 |
---|
Windows.Foundation.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 |
---|---|
Windows.UI.Xaml.DataTemplate | Type :Windows.UI.Xaml.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 Task<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.Threading.Tasks.Task<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
protected override void OnApplyTemplate()
OnDoubleTapped(DoubleTappedRoutedEventArgs)
Method is called while performing double tap on the layer
Declaration
protected override void OnDoubleTapped(DoubleTappedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.DoubleTappedRoutedEventArgs | e | DoubleTappedRoutedEventArgs |
OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)
Method called when the manipulation is completed
Declaration
protected override void OnManipulationCompleted(ManipulationCompletedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.ManipulationCompletedRoutedEventArgs | e | manipulation completed routed event args |
OnManipulationDelta(ManipulationDeltaRoutedEventArgs)
Method is called when the manipulation is in progress
Declaration
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs | e | ManipulationDeltaEventArgs |
OnManipulationStarted(ManipulationStartedRoutedEventArgs)
Method is called when thhe manipulation is started
Declaration
protected override void OnManipulationStarted(ManipulationStartedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.ManipulationStartedRoutedEventArgs | e | Manipulation started routed event args |
OnPointerExited(PointerRoutedEventArgs)
Pointer exited event of imagery layer
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e |
OnPointerMoved(PointerRoutedEventArgs)
OnPointerMoved event for ImageryLayer
Declaration
protected override void OnPointerMoved(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e |
OnPointerPressed(PointerRoutedEventArgs)
OnPointerPressed event for ImageryLayer
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e |
OnPointerReleased(PointerRoutedEventArgs)
OnPointerReleased event for ImageryLayer
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e |
OnPointerWheelChanged(PointerRoutedEventArgs)
OnPointerWheelChanged event for ImageryLayer
Declaration
protected override void OnPointerWheelChanged(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e |
OnTapped(TappedRoutedEventArgs)
Override the framework tapped method showing tooltip and marker select.
Declaration
protected override void OnTapped(TappedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.TappedRoutedEventArgs | e |
Events
GeoCoordinateChanged
Gets or sets the event which is raised when the panning and zooming is changing
Declaration
public event EventHandler<GeoCoordinateChangedEventArgs> GeoCoordinateChanged
Event Type
Type |
---|
System.EventHandler<GeoCoordinateChangedEventArgs> |
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> |