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