Class MapLayer
Class implementation of MapLayer
Namespace: Com.Syncfusion.Maps
Assembly: Syncfusion.SfMaps.Android.dll
Syntax
public abstract class MapLayer : Object
Constructors
MapLayer()
Declaration
protected MapLayer()
Properties
Markers
Gets or sets the markers to map.
Declaration
public ObservableCollection<MapMarker> Markers { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<MapMarker> |
MarkerSetting
Gets or sets the markers settings to map.
Declaration
public MarkerSetting MarkerSetting { get; set; }
Property Value
Type |
---|
MarkerSetting |
ResetOldSelectedView
Gets or sets a value indicating whether need to remove previous selected view
Declaration
public bool ResetOldSelectedView { get; set; }
Property Value
Type |
---|
System.Boolean |
SubShapeFileLayers
Gets or sets the sub shape file layer to map.
Declaration
public IList<SubShapeFileLayer> SubShapeFileLayers { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IList<SubShapeFileLayer> |
Methods
GeopointToViewPoint(Double, Double)
Convert latitude and longitude values to view's x and y points.
Declaration
public PointF GeopointToViewPoint(double latitude, double longitude)
Parameters
Type | Name | Description |
---|---|---|
System.Double | latitude | To get the latitude value |
System.Double | longitude | To get the longitude value |
Returns
Type | Description |
---|---|
Android.Graphics.PointF | returns the point x and point y values |
GetLatLonFromPoint(PointF)
Convert point X and point Y to longitude and latitude values
Declaration
public PointF GetLatLonFromPoint(PointF point)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.PointF | point | To get the point x and point y |
Returns
Type | Description |
---|---|
Android.Graphics.PointF | returns the longitude and latitude values |
Events
MarkerSelected
Gets or sets the event which is raised when the marker is selected
Declaration
public event EventHandler<MarkerSelectedEventArgs> MarkerSelected
Event Type
Type |
---|
System.EventHandler<MarkerSelectedEventArgs> |