MapPin

A marker placed on a MapView at a coordinate.
public class MapPin(Coordinate coordinate)

Constructors

Initializes a new instance of the MapPin class.

public MapPin(
  Coordinate coordinate)
ParameterSummary
Coordinate coordinateWhere the pin sits.

Properties

Callout

Builds a custom callout view shown when the pin is tapped, or null for the native title and subtitle bubble.

Called when the marker comes on screen; return a fresh tree each time.

Type: Func<View>?

public Func<View>? Callout { get; set; }

Coordinate

Where the pin sits.

Type: Coordinate

public Coordinate Coordinate { get; set; }

Icon

The local icon drawn inside the marker, or null for the default dot.

Type: ImageSource?

public ImageSource? Icon { get; set; }

Marker

Builds a custom marker view, or null for the native marker styled by the properties above.

Called when the marker comes on screen; return a fresh tree each time.

Type: Func<View>?

public Func<View>? Marker { get; set; }

Subtitle

The subtitle shown under the title in the pin's callout, or null for none.

Type: string?

public string? Subtitle { get; set; }

Tint

The marker's fill color, or null to follow the map tint.

Type: Color?

public Color? Tint { get; set; }

Title

The title shown in the pin's callout, or null for none.

Type: string?

public string? Title { get; set; }