Skip to content

Marker

Namespace: ThinkGeo.UI.Blazor

Prepresents a small icon on the map that is used for marking 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 ID of the marker.

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()

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()

protected void OnInitialized()

GetMarkerOptions()

internal MarkerOptions GetMarkerOptions()

Returns

MarkerOptions

InitAsync()

internal Task InitAsync()

Returns

Task