InMemoryMarkerOverlay¶
Namespace: ThinkGeo.UI.Blazor
public class InMemoryMarkerOverlay : MarkerOverlay, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender, System.IDisposable, System.IAsyncDisposable
Inheritance object → ComponentBase → Overlay → MarkerOverlay → InMemoryMarkerOverlay
Implements IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IAsyncDisposable
Properties¶
FeatureSource¶
Gets a FeatureSource object by which you can perform queries on the features in the overlay.
public InMemoryFeatureSource FeatureSource { get; set; }
Property Value¶
InMemoryFeatureSource
A FeatureSource object by which you can perform queries on the features in the
overlay.
ZoomLevelSet¶
Gets the ZoomLevelSet object that controls the markers' generation.
public MarkerZoomLevelSet ZoomLevelSet { get; set; }
Property Value¶
MarkerZoomLevelSet
A ZoomLevelSet object that controls the markers' generation.
EnableSelection¶
Enables OpenLayers marker selection. Ctrl-click toggles the first hit, Ctrl-drag adds markers whose positions lie in the box, and Ctrl+Shift-drag removes them. Defaults to false. Selection survives extent refreshes; disabling selection or removing the overlay clears it.
public bool EnableSelection { get; set; }
Property Value¶
OnSelectionChanged¶
Occurs when the selected marker IDs change in this overlay.
public EventCallback<MarkerSelectionChangedEventArgs> OnSelectionChanged { get; set; }
Property Value¶
EventCallback<MarkerSelectionChangedEventArgs>
IsVisible¶
public bool IsVisible { get; set; }
Property Value¶
OnClick¶
Occurs when the user clicks a marker that belongs to this overlay.
public EventCallback<ClickedMarkerOverlayEventArgs> OnClick { get; set; }
Property Value¶
EventCallback<ClickedMarkerOverlayEventArgs>
OnMouseOut¶
Occurs when the pointer leaves a marker that belongs to this overlay.
public EventCallback<MouseOutMarkerOverlayEventArgs> OnMouseOut { get; set; }
Property Value¶
EventCallback<MouseOutMarkerOverlayEventArgs>
OnMouseOver¶
Occurs when the pointer enters a marker that belongs to this overlay.
public EventCallback<MouseOverMarkerOverlayEventArgs> OnMouseOver { get; set; }
Property Value¶
EventCallback<MouseOverMarkerOverlayEventArgs>
Id¶
Gets or sets the unique identifier used to register this overlay with the map. Defaults to a new GUID.
public string Id { get; set; }
Property Value¶
Constructors¶
InMemoryMarkerOverlay()¶
Initialize an instance of the InMemoryMarkerOverlay class.
public InMemoryMarkerOverlay()
InMemoryMarkerOverlay(string)¶
Initialize an instance of the InMemoryMarkerOverlay class.
public InMemoryMarkerOverlay(string id)
Parameters¶
id string
The identifier of the overlay, which is used for retrieving the overlay.
Methods¶
BuildRenderTree(RenderTreeBuilder)¶
protected void BuildRenderTree(RenderTreeBuilder __builder)
Parameters¶
__builder RenderTreeBuilder
Returns¶
ReleaseAsyncCore()¶
Returns a collection of markers based on the extent and zoomlevel that you passed in.
protected Task ReleaseAsyncCore()
Returns¶
Task
A collection of marker objects that will be serialized to the client.
GetMarkersCore(RectangleShape, int)¶
protected Collection<Marker> GetMarkersCore(RectangleShape worldExtent, int currentZoomLevelId)
Parameters¶
worldExtent RectangleShape
currentZoomLevelId int