Interface IMap
Namespace: Mapsui
Assembly: Mapsui.dll
Syntax
public interface IMap
Properties
| Improve this Doc View SourceBackColor
Map background color (defaults to transparent)
Declaration
Color BackColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
CRS
Projection type of Map. Normally in format like "EPSG:3857"
Declaration
string CRS { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Envelope
Gets the extents of the map based on the extents of all the layers in the layers collection
Declaration
BoundingBox Envelope { get; }
Property Value
Type | Description |
---|---|
BoundingBox | Full map extents |
Home
Declaration
Action<INavigator> Home { get; set; }
Property Value
Type | Description |
---|---|
System.Action<INavigator> |
Layers
A collection of layers. The first layer in the list is drawn first, the last one on top.
Declaration
LayerCollection Layers { get; }
Property Value
Type | Description |
---|---|
LayerCollection |
Resolutions
List of all native resolutions of this map
Declaration
IReadOnlyList<double> Resolutions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.Double> |
Transformation
Transformation to use for the different coordinate systems
Declaration
ITransformation Transformation { get; set; }
Property Value
Type | Description |
---|---|
ITransformation |
Widgets
List of Widgets belonging to map
Declaration
ConcurrentQueue<IWidget> Widgets { get; }
Property Value
Type | Description |
---|---|
System.Collections.Concurrent.ConcurrentQueue<IWidget> |
Methods
| Improve this Doc View SourceAbortFetch()
Abort fetching of all layers
Declaration
void AbortFetch()
ClearCache()
Clear cache of all layers
Declaration
void ClearCache()
RefreshData(BoundingBox, Double, Boolean)
Declaration
void RefreshData(BoundingBox extent, double resolution, bool majorChange)
Parameters
Type | Name | Description |
---|---|---|
BoundingBox | extent | |
System.Double | resolution | |
System.Boolean | majorChange |
Events
| Improve this Doc View SourceDataChanged
DataChanged should be triggered by any data changes of any of the child layers
Declaration
event DataChangedEventHandler DataChanged
Event Type
Type | Description |
---|---|
DataChangedEventHandler |
PropertyChanged
Called whenever a property changed
Declaration
event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |