Class Map
Inheritance
System.Object
Map
Implements
System.ComponentModel.INotifyPropertyChanged
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()
Assembly: Mapsui.dll
Syntax
public class Map : INotifyPropertyChanged, IMap
Constructors
|
Improve this Doc
View Source
Map()
Declaration
Properties
|
Improve this Doc
View Source
BackColor
Map background color (defaults to transparent)
Declaration
public Color BackColor { get; set; }
Property Value
|
Improve this Doc
View Source
CRS
Projection type of Map. Normally in format like "EPSG:3857"
Declaration
public string CRS { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Envelope
Gets the extents of the map based on the extents of all the layers in the layers collection
Declaration
public BoundingBox Envelope { get; }
Property Value
|
Improve this Doc
View Source
Home
Declaration
public Action<INavigator> Home { get; set; }
Property Value
|
Improve this Doc
View Source
HoverLayers
Declaration
[Obsolete("Use your own hover event and call MapControl.GetMapInfo", true)]
public IList<ILayer> HoverLayers { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<ILayer> |
|
|
Improve this Doc
View Source
InfoLayers
Declaration
[Obsolete("Use ILayer.IsMapInfoLayer instead", true)]
public IList<ILayer> InfoLayers { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<ILayer> |
|
|
Improve this Doc
View Source
Initialized
To register if the initial Home call has been done.
Declaration
public bool Initialized { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Layers
A collection of layers. The first layer in the list is drawn first, the last one on top.
Declaration
public LayerCollection Layers { get; }
Property Value
|
Improve this Doc
View Source
Limiter
Limit the extent to which the user can navigate
Declaration
public IViewportLimiter Limiter { get; set; }
Property Value
|
Improve this Doc
View Source
PanLock
When true the user can not pan (move) the map.
Declaration
public bool PanLock { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Resolutions
List of all native resolutions of this map
Declaration
public IReadOnlyList<double> Resolutions { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<System.Double> |
|
|
Improve this Doc
View Source
RotationLock
When true the user can not zoom into the map
Declaration
public bool RotationLock { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Transformation to use for the different coordinate systems
Declaration
public ITransformation Transformation { get; set; }
Property Value
|
Improve this Doc
View Source
List of Widgets belonging to map
Declaration
public ConcurrentQueue<IWidget> Widgets { get; }
Property Value
Type |
Description |
System.Collections.Concurrent.ConcurrentQueue<IWidget> |
|
|
Improve this Doc
View Source
ZoomLock
When true the user an not rotate the map
Declaration
public bool ZoomLock { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
AbortFetch()
Abort fetching of all layers
Declaration
|
Improve this Doc
View Source
ClearCache()
Clear cache of all layers
Declaration
|
Improve this Doc
View Source
Declaration
public IEnumerable<IWidget> GetWidgetsOfMapAndLayers()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IWidget> |
|
|
Improve this Doc
View Source
RefreshData(BoundingBox, Double, Boolean)
Declaration
public 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 Source
DataChanged
DataChanged should be triggered by any data changes of any of the child layers
Declaration
public event DataChangedEventHandler DataChanged
Event Type
|
Improve this Doc
View Source
Hover
Declaration
[Obsolete("Use your own hover event instead and call MapControl.GetMapInfo", true)]
public event EventHandler<MapInfoEventArgs> Hover
Event Type
|
Improve this Doc
View Source
Info
Declaration
[Obsolete("Use MapControl.Info instead", true)]
public event EventHandler<MapInfoEventArgs> Info
Event Type
|
Improve this Doc
View Source
PropertyChanged
Called whenever a property changed
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
|
Improve this Doc
View Source
RefreshGraphics
Declaration
[Obsolete("Use PropertyChanged instead", true)]
public event EventHandler RefreshGraphics
Event Type
Type |
Description |
System.EventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged