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, System.IDisposable

Inheritance object → ComponentBase → Marker
Implements IComponent, IHandleEvent, IHandleAfterRender, IDisposable

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. When no style is supplied, or the value is null, the bundled pin is used with a bottom-center anchor.

public MarkerStyle Style { get; set; }

Property Value

MarkerStyle

HoverStyle

Gets or sets an additional style drawn beneath the normal marker styles while hovered in the OpenLayers renderer. Null (the default) disables highlighting.

public MarkerStyle HoverStyle { get; set; }

Property Value

MarkerStyle

IsSelectable

Gets or sets whether this marker can be selected when its overlay enables selection. Defaults to true.

public bool IsSelectable { get; set; }

Property Value

bool

SelectionStyle

Gets or sets an additive background style for selection in OpenLayers. Null uses the hover style, if any.

public MarkerStyle SelectionStyle { 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.

Marker(PointShape, string, MarkerStyle)

public Marker(PointShape position, string id, MarkerStyle style)

Parameters

position PointShape

id string

style MarkerStyle

Methods

OnInitialized()

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

protected void OnInitialized()

Returns

void

B()

internal MarkerOptions B()

Returns

MarkerOptions

b()

internal Task b()

Returns

Task

A(MarkerOverlay, bool)

internal void A(MarkerOverlay , bool )

Parameters

`` MarkerOverlay

`` bool

Returns

void

Dispose()

public void Dispose()

Returns

void