Class MapInfoHelper
Inheritance
System.Object
MapInfoHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mapsui.UI
Assembly: Mapsui.dll
Syntax
public static class MapInfoHelper
Methods
| Improve this Doc View SourceGetMapInfo(IEnumerable<ILayer>, IReadOnlyViewport, Point, ISymbolCache, Int32)
Declaration
public static MapInfo GetMapInfo(IEnumerable<ILayer> layers, IReadOnlyViewport viewport, Point screenPosition, ISymbolCache symbolCache, int margin = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ILayer> | layers | The layers to query for MapInfo |
IReadOnlyViewport | viewport | The current Viewport |
Point | screenPosition | The screenposition to query |
ISymbolCache | symbolCache | The |
System.Int32 | margin | Margin of error in pixels. If the distance between screen position and geometry is smaller than the margin it is seen as a hit. |
Returns
Type | Description |
---|---|
MapInfo |