Class MapLayer
Represent the MapLayer in the SfMap. Inherited from the Windows.UI.Xaml.Controls.Control class
Namespace: Syncfusion.UI.Xaml.Maps
Assembly: Syncfusion.SfMaps.UWP.dll
Syntax
public abstract class MapLayer : Control
Remarks
MapLayer is the Base class for all layer class in maps.
Constructors
MapLayer()
Initializes a new instance of the MapLayer class.
Declaration
public MapLayer()
Fields
MarkerSettingsProperty
The dependency property ofMarkerSetting property.
Declaration
public static readonly DependencyProperty MarkerSettingsProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
MarkerTooltipSettingProperty
// Using a DependencyProperty as the backing store for MarkerTooltipSetting. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty MarkerTooltipSettingProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ResetOldSelectedViewProperty
Gets or sets whether need to reset previous marker selection view
Declaration
public static readonly DependencyProperty ResetOldSelectedViewProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
MarkerSettings
Gets or sets the value for marker setting
Declaration
public MarkerSetting MarkerSettings { get; set; }
Property Value
Type |
---|
MarkerSetting |
MarkerTooltipSettings
Gets or sets the tooltip settings for Markers in SfMap.
Declaration
public TooltipSetting MarkerTooltipSettings { get; set; }
Property Value
Type |
---|
TooltipSetting |
ResetOldSelectedView
Gets or sets whether need to reset previous marker selection view
Declaration
public bool ResetOldSelectedView { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
GeopointToViewPoint(Double, Double)
Convert latitude and longitude values to view's x and y points.
Declaration
public Point GeopointToViewPoint(double latitude, double longitude)
Parameters
Type | Name | Description |
---|---|---|
System.Double | latitude | To get latitude |
System.Double | longitude | To get longitude |
Returns
Type | Description |
---|---|
Windows.Foundation.Point | returns the point X and point Y from latitude and longitude |
GetLatLonFromPoint(Point)
Convert point X and point Y to longitude and latitude values.
Declaration
public Point GetLatLonFromPoint(Point pointXY)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Point | pointXY | To get point x and point y |
Returns
Type |
---|
Windows.Foundation.Point |
OnMarkerSelected(MapLayer, MarkerSelectedEventArgs)
Marker selected event for map markers.
Declaration
protected void OnMarkerSelected(MapLayer mapLayer, MarkerSelectedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MapLayer | mapLayer | Map layer. |
MarkerSelectedEventArgs | e | Marker selected event args. |
Events
MarkerSelected
Event corresponds to marker selected.It invokes once the marker selected
Declaration
public event EventHandler<MarkerSelectedEventArgs> MarkerSelected
Event Type
Type |
---|
System.EventHandler<MarkerSelectedEventArgs> |