Skip to content

Marker

Namespace: ThinkGeo.UI.XamarinForms

Represents a marker control on the map.

public class Marker : ThinkGeo.UI.XamarinForms.Adapters.IMapElementAdaptable`1[[ThinkGeo.UI.XamarinForms.Adapters.IMarkerAdapter, ThinkGeo.UI.XamarinForms, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectMarker
Implements IMapElementAdaptable<IMarkerAdapter>

Remarks:

Options for scaling the bounds of an image to the bounds of this view. [Android Documentation]

Properties

XOffset

Gets or sets the x offset of marker image.

public int XOffset { get; set; }

Property Value

Int32
The x offset.

YOffset

Gets or sets the y offset of marker image.

public int YOffset { get; set; }

Property Value

Int32
The y offset.

Width

Gets or sets the width of the Marker.

public float Width { get; set; }

Property Value

Single
The Width.

Height

Gets or sets the height of the Marker.

public float Height { get; set; }

Property Value

Single
The Height.

Position

World Position of marker. It's a wrapper of the PositionProperty.

public PointShape Position { get; set; }

Property Value

PointShape

ImageSource

Gets or sets the image source.

public string ImageSource { get; set; }

Property Value

String
The image source.

TagObject

public object TagObject { get; set; }

Property Value

Object

Adapter

Gets the adapter.

public IMarkerAdapter Adapter { get; set; }

Property Value

IMarkerAdapter
The adapter.

Constructors

Marker()

Initializes a new instance of the Marker class.

public Marker()

Marker(PointShape)

public Marker(PointShape position)

Parameters

position PointShape

Methods

OnClick(EventArgs)

Handles the event.

protected void OnClick(EventArgs e)

Parameters

e EventArgs
The instance containing the event data.

OnTap(EventArgs)

protected void OnTap(EventArgs e)

Parameters

e EventArgs

OnLoadingFromResource(LoadingFromResourceMarkerEventArgs)

protected void OnLoadingFromResource(LoadingFromResourceMarkerEventArgs e)

Parameters

e LoadingFromResourceMarkerEventArgs

Events

Tap

Occurs when [click].

public event EventHandler<EventArgs> Tap;

Click

public event EventHandler<EventArgs> Click;

LoadingFromResource

public event EventHandler<LoadingFromResourceMarkerEventArgs> LoadingFromResource;