Show / Hide Table of Contents

    Class MyLocationLayer

    A layer to display a symbol for own location

    Inheritance
    System.Object
    BaseLayer
    MemoryLayer
    MyLocationLayer
    Implements
    ILayer
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    MemoryLayer.DataSource
    MemoryLayer.GetFeaturesInView(BoundingBox, Double)
    MemoryLayer.RefreshData(BoundingBox, Double, Boolean)
    MemoryLayer.Envelope
    BaseLayer.Transformer
    BaseLayer.GetLayerStyles(ILayer)
    BaseLayer.PropertyChanged
    BaseLayer.DataChanged
    BaseLayer.Id
    BaseLayer.Tag
    BaseLayer.MinVisible
    BaseLayer.MaxVisible
    BaseLayer.Enabled
    BaseLayer.Name
    BaseLayer.CRS
    BaseLayer.Exclusive
    BaseLayer.Opacity
    BaseLayer.Busy
    BaseLayer.Style
    BaseLayer.Transformation
    BaseLayer.Attribution
    BaseLayer.Resolutions
    BaseLayer.IsMapInfoLayer
    BaseLayer.DataHasChanged()
    BaseLayer.IsCrsSupported(String)
    BaseLayer.ToString()
    BaseLayer.OnPropertyChanged(String)
    BaseLayer.OnDataChanged(DataChangedEventArgs)
    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)
    Namespace: Mapsui.UI.Objects
    Assembly: Mapsui.UI.Forms.dll
    Syntax
    public class MyLocationLayer : MemoryLayer, ILayer, INotifyPropertyChanged
    Remarks

    There are two different symbols for own loaction: one is used when there isn't a change in position (still), and one is used, if the position changes (moving).

    Constructors

    | Improve this Doc View Source

    MyLocationLayer(MapView)

    Initializes a new instance of the MyLocationLayer class.

    Declaration
    public MyLocationLayer(MapView view)
    Parameters
    Type Name Description
    MapView view

    MapView, to which this layer belongs

    | Improve this Doc View Source

    MyLocationLayer(MapView, Position)

    Initializes a new instance of the MyLocationLayer class with a starting location.

    Declaration
    public MyLocationLayer(MapView view, Position position)
    Parameters
    Type Name Description
    MapView view

    MapView, to which this layer belongs

    Position position

    Position, where to start

    Properties

    | Improve this Doc View Source

    Direction

    Direction of device at location

    Declaration
    public double Direction { get; set; }
    Property Value
    Type Description
    System.Double

    Direction at location

    | Improve this Doc View Source

    IsMoving

    Should be moving arrow or round circle displayed

    Declaration
    public bool IsMoving { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MyLocation

    Position of location, that is displayed

    Declaration
    public Position MyLocation { get; }
    Property Value
    Type Description
    Position

    Position of location

    | Improve this Doc View Source

    Scale

    Scale of symbol

    Declaration
    public double Scale { get; set; }
    Property Value
    Type Description
    System.Double

    Scale of symbol

    | Improve this Doc View Source

    Speed

    Speed of moving

    Declaration
    public double Speed { get; }
    Property Value
    Type Description
    System.Double

    Speed of moving

    Methods

    | Improve this Doc View Source

    UpdateMyDirection(Double, Double, Boolean)

    Updates my direction

    Declaration
    public void UpdateMyDirection(double newDirection, double newViewportRotation, bool animated = true)
    Parameters
    Type Name Description
    System.Double newDirection

    New direction

    System.Double newViewportRotation

    New viewport rotation

    System.Boolean animated
    | Improve this Doc View Source

    UpdateMyLocation(Position, Boolean)

    Updates my location

    Declaration
    public void UpdateMyLocation(Position newLocation, bool animated = true)
    Parameters
    Type Name Description
    Position newLocation

    New location

    System.Boolean animated
    | Improve this Doc View Source

    UpdateMySpeed(Double)

    Updates my speed

    Declaration
    public void UpdateMySpeed(double newSpeed)
    Parameters
    Type Name Description
    System.Double newSpeed

    New speed

    Implements

    ILayer
    System.ComponentModel.INotifyPropertyChanged
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX