Skip to content

MarkerOverlay

Namespace: ThinkGeo.UI.Blazor

Represents the base class of MarkerOverlay.

public abstract class MarkerOverlay : Overlay, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender

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

Properties

OnClick

Occurs when the mouse click a marker.

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

Property Value

EventCallback<ClickedMarkerOverlayEventArgs>

IsVisible

public bool IsVisible { get; set; }

Property Value

Boolean

OnMouseOut

Occurs when the mouse move out of a marker.

public EventCallback<MouseOutMarkerOverlayEventArgs> OnMouseOut { get; set; }

Property Value

EventCallback<MouseOutMarkerOverlayEventArgs>

OnMouseOver

Occurs when the mouse over a marker.

public EventCallback<MouseOverMarkerOverlayEventArgs> OnMouseOver { get; set; }

Property Value

EventCallback<MouseOverMarkerOverlayEventArgs>

Id

Gets or sets Id.

public string Id { get; set; }

Property Value

String

Constructors

MarkerOverlay()

public MarkerOverlay()

Methods

GetMarkers(RectangleShape, Int32)

Returns a collection of markers based on the extent and zoomlevel that you passed in.

public Collection<Marker> GetMarkers(RectangleShape worldExtent, int currentZoomLevelId)

Parameters

worldExtent RectangleShape
The extent that includes all of the markers you want to serialize.

currentZoomLevelId Int32
An int value that indicates which zoomlevel the map is currently at.

Returns

Collection<Marker>
A collection of marker objects that will be serialized to the client.

Remarks:

The GetMarkers method creates the makrers based on the current zoomlevel, the specified extent and the special logic of the MarkerOverlay. The returned markers object will be serialized and sent to the client to create client markers.

RedrawAsync()

public Task RedrawAsync()

Returns

Task

SetParametersAsync(ParameterView)

public Task SetParametersAsync(ParameterView parameters)

Parameters

parameters ParameterView

Returns

Task

AddMarker(Marker)

internal void AddMarker(Marker marker)

Parameters

marker Marker

InitAsync()

protected internal Task InitAsync()

Returns

Task

ReleaseAsync()

protected internal Task ReleaseAsync()

Returns

Task

GetMarkersCore(RectangleShape, Int32)

Returns a collection of markers based on the extent and zoomlevel that you passed in.

protected abstract Collection<Marker> GetMarkersCore(RectangleShape worldExtent, int zoomLevel)

Parameters

worldExtent RectangleShape
The extent that includes all of the markers you want to serialize.

zoomLevel Int32
An int value that indicates which zoomlevel the map is currently at.

Returns

Collection<Marker>
A collection of Marker objects that will be serialized to the client.

Remarks:

The GetMarkersCore method allows derived classes to rewrite the logic used for dynamically creating the markers that will be serialized to the client.

OnAfterRenderAsync(Boolean)

protected Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender Boolean

Returns

Task

OnInitialized()

protected void OnInitialized()

ShouldRender()

protected bool ShouldRender()

Returns

Boolean