Class ZoomInOutWidget
Widget which shows two buttons (horizontal or vertical) with a "+" and a "-" sign. With this, the user could zoom the map in and out.
Usage To show a ZoomInOutWidget, add a instance of the ZoomInOutWidget to Map.Widgets by
map.Widgets.Add(new ZoomInOutWidget(map));
Customize Size: Height and Width of the buttons Orientation: Orientation of the buttons. Could be Horizontal or Vertical. Vertical is default. StrokeColor: Color of button frames TextColor: Color of "+" and "-" signs BackColor: Color of button background Opacity: Opacity of buttons ZoomFactor: Factor for changing Resolution. Default is 2;
Implements
Inherited Members
Namespace: Mapsui.Widgets.ButtonWidgets
Assembly: Mapsui.dll
Syntax
public class ZoomInOutWidget : BaseWidget, IWidget
Properties
| Edit this page View SourceBackColor
Color of background
Declaration
public Color BackColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Opacity
Opacity of background, frame and signs
Declaration
public double Opacity { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Orientation
Orientation of buttons
Declaration
public Orientation Orientation { get; set; }
Property Value
| Type | Description |
|---|---|
| Orientation |
Size
Width and height of buttons
Declaration
public double Size { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
StrokeColor
Color of button frames
Declaration
public Color StrokeColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
TextColor
Color of "+" and "-" sign
Declaration
public Color TextColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Methods
| Edit this page View SourceOnTapped(WidgetEventArgs)
Function, which handles the widget tapped event
Declaration
public override void OnTapped(WidgetEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| WidgetEventArgs | e | Arguments for this widget touch |