Skip to content

Marker

Namespace: ThinkGeo.UI.Blazor

Represents a small icon on the map that is used to mark a point.

public class Marker : Microsoft.AspNetCore.Components.ComponentBase, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender

Inheritance Object → ComponentBase → Marker
Implements IComponent, IHandleEvent, IHandleAfterRender

Properties

OnClick

Occurs when the user clicks on the marker.

public EventCallback<ClickedMarkerEventArgs> OnClick { get; set; }

Property Value

EventCallback<ClickedMarkerEventArgs>

Id

Gets or sets the identifier of the marker. Defaults to a new GUID when not supplied.

public string Id { get; set; }

Property Value

String

Position

Gets or sets the location of the marker.

public PointShape Position { get; set; }

Property Value

PointShape

Style

Gets or sets the style of the marker.

public MarkerStyle Style { get; set; }

Property Value

MarkerStyle

Constructors

Marker()

Initializes a new instance of the Marker class without specifying a position.

public Marker()

Marker(PointShape, MarkerStyle)

Initializes a new instance of Marker.

public Marker(PointShape position, MarkerStyle style)

Parameters

position PointShape
The location of the marker on the map.

style MarkerStyle
The style of the marker for showing on the map.

Methods

OnInitialized()

Registers the marker with its parent overlay when the component is initialized.

protected void OnInitialized()

GetMarkerOptions()

internal MarkerOptions GetMarkerOptions()

Returns

MarkerOptions

InitAsync()

internal Task InitAsync()

Returns

Task