CompassMapTool¶
Namespace: ThinkGeo.UI.Blazor
Displays a compass which follows the map bearing and resets the map to north when clicked.
public class CompassMapTool : MapTool, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender, System.IDisposable
Inheritance object → ComponentBase → MapTool → CompassMapTool
Implements IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Properties¶
Location¶
Gets or sets the corner where the compass is displayed.
public ZoomBarLocation Location { get; set; }
Property Value¶
OffsetX¶
Gets or sets the horizontal distance from the selected corner, in pixels.
public int OffsetX { get; set; }
Property Value¶
OffsetY¶
Gets or sets the vertical distance from the selected corner, in pixels.
public int OffsetY { get; set; }
Property Value¶
Id¶
Gets or sets the unique identifier used to track this tool. Defaults to a new GUID.
public string Id { get; set; }
Property Value¶
Constructors¶
CompassMapTool()¶
public CompassMapTool()
Methods¶
OnInitialized()¶
Registers the compass with the parent map before rendering begins.
protected void OnInitialized()