Show / Hide Table of Contents

    Class Map

    Map class

    Inheritance
    System.Object
    Map
    Implements
    System.ComponentModel.INotifyPropertyChanged
    IMap
    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
    Assembly: Mapsui.dll
    Syntax
    public class Map : INotifyPropertyChanged, IMap
    Remarks

    Map holds all map related infos like transformation, layers, widgets and so on.

    Constructors

    | Improve this Doc View Source

    Map()

    Initializes a new map

    Declaration
    public Map()

    Properties

    | Improve this Doc View Source

    BackColor

    Map background color (defaults to transparent)

    Declaration
    public Color BackColor { get; set; }
    Property Value
    Type Description
    Color
    | 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
    Type Description
    BoundingBox

    Full map extents

    | Improve this Doc View Source

    Home

    Declaration
    public Action<INavigator> Home { get; set; }
    Property Value
    Type Description
    System.Action<INavigator>
    | 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
    Type Description
    LayerCollection
    | Improve this Doc View Source

    Limiter

    Limit the extent to which the user can navigate

    Declaration
    public IViewportLimiter Limiter { get; set; }
    Property Value
    Type Description
    IViewportLimiter
    | 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

    Transformation to use for the different coordinate systems

    Declaration
    public ITransformation Transformation { get; set; }
    Property Value
    Type Description
    ITransformation
    | Improve this Doc View Source

    Widgets

    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
    public void AbortFetch()
    | Improve this Doc View Source

    ClearCache()

    Clear cache of all layers

    Declaration
    public void ClearCache()
    | Improve this Doc View Source

    GetWidgetsOfMapAndLayers()

    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
    Type Description
    DataChangedEventHandler
    | 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
    Type Description
    System.EventHandler<MapInfoEventArgs>
    | Improve this Doc View Source

    Info

    Declaration
    [Obsolete("Use MapControl.Info instead", true)]
    public event EventHandler<MapInfoEventArgs> Info
    Event Type
    Type Description
    System.EventHandler<MapInfoEventArgs>
    | 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
    IMap
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX