Class BaseEventArgs
Inheritance
BaseEventArgs
Inherited Members
Namespace: Mapsui
Assembly: Mapsui.dll
Syntax
public class BaseEventArgs : HandledEventArgs
Constructors
| Edit this page View SourceBaseEventArgs(ScreenPosition, MPoint, GestureType, Map, GetMapInfoDelegate, GetRemoteMapInfoAsyncDelegate)
Declaration
public BaseEventArgs(ScreenPosition screenPosition, MPoint worldPosition, GestureType gestureType, Map map, GetMapInfoDelegate getMapInfo, GetRemoteMapInfoAsyncDelegate getRemoteMapInfoAsync)
Parameters
| Type | Name | Description |
|---|---|---|
| ScreenPosition | screenPosition | |
| MPoint | worldPosition | |
| GestureType | gestureType | |
| Map | map | |
| GetMapInfoDelegate | getMapInfo | |
| GetRemoteMapInfoAsyncDelegate | getRemoteMapInfoAsync |
Properties
| Edit this page View SourceGestureType
Number of clicks on the Widget
Declaration
public GestureType GestureType { get; }
Property Value
| Type | Description |
|---|---|
| GestureType |
GetMapInfo
Function to get the MapInfo
Declaration
public Func<IEnumerable<ILayer>, MapInfo> GetMapInfo { get; }
Property Value
| Type | Description |
|---|---|
| Func<IEnumerable<ILayer>, MapInfo> |
GetRemoteMapInfoAsync
Function to get the remote MapInfo
Declaration
public Func<IEnumerable<ILayer>, Task<MapInfo>> GetRemoteMapInfoAsync { get; }
Property Value
| Type | Description |
|---|---|
| Func<IEnumerable<ILayer>, Task<MapInfo>> |
Map
The map from which the event was triggered.
Declaration
public Map Map { get; }
Property Value
| Type | Description |
|---|---|
| Map |
ScreenPosition
Screen Position of touch in device independent units (or DIP or DP)
Declaration
public ScreenPosition ScreenPosition { get; }
Property Value
| Type | Description |
|---|---|
| ScreenPosition |
WorldPosition
World Position of touch in map coordinates
Declaration
public MPoint WorldPosition { get; }
Property Value
| Type | Description |
|---|---|
| MPoint |