Interface IMapControl
Assembly: Mapsui.dll
Syntax
public interface IMapControl
Properties
|
Improve this Doc
View Source
Map
Declaration
Property Value
|
Improve this Doc
View Source
Navigator
Declaration
INavigator Navigator { get; }
Property Value
|
Improve this Doc
View Source
PixelDensity
The number of pixel per device independent unit
Declaration
float PixelDensity { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Renderer
Declaration
IRenderer Renderer { get; }
Property Value
|
Improve this Doc
View Source
ReSnapRotationDegrees
Declaration
double ReSnapRotationDegrees { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
UnSnapRotationDegrees
Declaration
double UnSnapRotationDegrees { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
GetMapInfo(Point, Int32)
Check, if a feature at a given screen position is hit
Declaration
MapInfo GetMapInfo(Point screenPosition, int margin = 0)
Parameters
Type |
Name |
Description |
Point |
screenPosition |
Screen position to check for widgets and features
|
System.Int32 |
margin |
An optional extra margin around the feature to enlarge the hit area.
|
Returns
|
Improve this Doc
View Source
GetSnapshot(IEnumerable<ILayer>)
Create a snapshot form map as PNG image
Declaration
byte[] GetSnapshot(IEnumerable<ILayer> layers = null)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<ILayer> |
layers |
Layers that should be included in snapshot
|
Returns
Type |
Description |
System.Byte[] |
Byte array with snapshot in png format. If there are any problems than returns null.
|
|
Improve this Doc
View Source
OpenBrowser(String)
Declaration
void OpenBrowser(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
|
Improve this Doc
View Source
Refresh()
Declaration
|
Improve this Doc
View Source
RefreshData()
Declaration
|
Improve this Doc
View Source
RefreshGraphics()
Declaration
|
Improve this Doc
View Source
ToDeviceIndependentUnits(Point)
Converts coordinates in pixels to device independent units (or DIP or DP).
Declaration
Point ToDeviceIndependentUnits(Point coordinateInPixels)
Parameters
Type |
Name |
Description |
Point |
coordinateInPixels |
Coordinate in pixels
|
Returns
Type |
Description |
Point |
Coordinate in device independent units (or DIP or DP)
|
|
Improve this Doc
View Source
ToPixels(Point)
Converts coordinates in device independent units (or DIP or DP) to pixels.
Declaration
Point ToPixels(Point coordinateInDeviceIndependentUnits)
Parameters
Type |
Name |
Description |
Point |
coordinateInDeviceIndependentUnits |
Coordinate in device independent units (or DIP or DP)
|
Returns
Type |
Description |
Point |
Coordinate in pixels
|
|
Improve this Doc
View Source
Unsubscribe()
Declaration
Events
|
Improve this Doc
View Source
Info
Declaration
event EventHandler<MapInfoEventArgs> Info
Event Type
|
Improve this Doc
View Source
ViewportInitialized
Declaration
event EventHandler ViewportInitialized
Event Type
Type |
Description |
System.EventHandler |
|