Class MapMarker
Represents MapMarker. To render this, create an instance of the MapMarker class, and set required properties.
Inheritance
Namespace: Syncfusion.SfMaps.XForms
Assembly: Syncfusion.SfMaps.XForms.dll
Syntax
public class MapMarker : Element, IThemeElement
Constructors
MapMarker()
Initializes a new instance of the MapMarker class. Using this instance, you can set value for the required properties of map marker.
Declaration
public MapMarker()
Fields
LabelProperty
Gets or sets the text property, which displays some information about the annotation in text format for map marker.
Declaration
public static readonly BindableProperty LabelProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
LatitudeProperty
Gets or sets the latitude point, which determines the y-axis position of marker. It customizes the position of marker using the latitude property.
Declaration
public static readonly BindableProperty LatitudeProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
LongitudeProperty
Gets or sets the longitude point, which determines the y-axis position of marker. It customizes the position of marker using the longitude property.
Declaration
public static readonly BindableProperty LongitudeProperty
Field Value
| Type |
|---|
| Xamarin.Forms.BindableProperty |
Properties
Label
Gets or sets the text that displays some information about the annotation in text format for map marker.
Declaration
public string Label { get; set; }
Property Value
| Type |
|---|
| System.String |
Latitude
Gets or sets the latitude point, which determines the y-axis position of marker. It customizes the position of marker using the latitude property.
Declaration
public string Latitude { get; set; }
Property Value
| Type |
|---|
| System.String |
Longitude
Gets or sets the longitude point, which determine the x-axis position of marker. It customizes the position of marker using the longitude property.
Declaration
public string Longitude { get; set; }
Property Value
| Type |
|---|
| System.String |
Methods
OnCommonThemeChanged(String, String)
Called when the common theme is changed.
Declaration
public void OnCommonThemeChanged(string oldTheme, string newTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | oldTheme | Old Theme. |
| System.String | newTheme | New Theme. |
OnControlThemeChanged(String, String)
Called when the control theme is changed.
Declaration
public void OnControlThemeChanged(string oldTheme, string newTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | oldTheme | Old Theme. |
| System.String | newTheme | New Theme. |