Skip to content

ZoomBarMapTool

Namespace: ThinkGeo.UI.Blazor

Provides access to the zoom bar UI control within a MapView.

public class ZoomBarMapTool : MapTool, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender, System.IDisposable

Inheritance object → ComponentBase → MapTool → ZoomBarMapTool
Implements IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Properties

Location

Gets or sets the location where the zoom bar should be displayed.

public ZoomBarLocation Location { get; set; }

Property Value

ZoomBarLocation

UseNavigationStyle

Gets or sets whether the WPF-style directional pad and vertical zoom slider are displayed. The default is false, which preserves the compact plus/minus control.

public bool UseNavigationStyle { get; set; }

Property Value

bool

CenterButtonCenter

Gets or sets the map position restored by the center button in navigation style. When it is null, the center button is not displayed.

public PointShape CenterButtonCenter { get; set; }

Property Value

PointShape

CenterButtonZoom

Gets or sets the zoom level restored by the center button.

public int CenterButtonZoom { get; set; }

Property Value

int

CenterButtonBearing

Gets or sets the bearing restored by the center button, in degrees clockwise from north.

public double CenterButtonBearing { get; set; }

Property Value

double

CenterButtonPitch

Gets or sets the pitch restored by the center button, in degrees from the flat map view.

public double CenterButtonPitch { get; set; }

Property Value

double

PanOffset

Gets or sets how far each directional button pans the map, in screen pixels.

public int PanOffset { get; set; }

Property Value

int

Id

Gets or sets the unique identifier used to track this tool. Defaults to a new GUID.

public string Id { get; set; }

Property Value

string

Constructors

ZoomBarMapTool()

public ZoomBarMapTool()

Methods

OnInitialized()

Registers the tool with the parent MapView before rendering begins.

protected void OnInitialized()

Returns

void