IMapsMarker Interface

Declares properties of business objects that can be displayed on a map using the Maps Module.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.Persistent.Base.v18.2.dll

Declaration

public interface IMapsMarker :
    IBaseMapsMarker
Public Interface IMapsMarker
    Inherits IBaseMapsMarker

You can implement this interface in an XPO or Entity Framework business object. As a result, the WebMapsListEditor of MobileMapsListEditor will be used to display List Views of this business object. Each object is displayed as a marker. The Marker title is displayed after clicking a marker. An object's Detail View is displayed after clicking the Show details link below the title.

ASP.NET

WebMapsListEditor

Mobile

Maps_ListEditor_Mobile

XPO Example

using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Xpo;
//...
public class Location : BaseObject, IMapsMarker {
    public Location(Session session) : base(session) { }
    //...
    private string title;
    public string Title {
        get { return title; }
        set { SetPropertyValue("Title", ref title, value); }
    }
    private double latitude;
    public double Latitude {
        get { return latitude; }
        set { SetPropertyValue("Latitude", ref latitude, value); }
    }
    private double longitude;
    public double Longitude {
        get { return longitude; }
        set { SetPropertyValue("Longitude", ref longitude, value); }
    }
}
Note

See the complete example in the Location.cs (Location.vb) file in the Main Demo that is installed in the %PUBLIC%\Documents\DevExpress Demos 18.2\Components\eXpressApp Framework\MainDemo folder by default.

EF Example

using DevExpress.Persistent.Base;
using System.ComponentModel;
// ...
public class Location : IMapsMarker {
    [Browsable(false)]
    public int ID { get; private set; }
    // ...
    public string Title { get; set; }
    public double Latitude { get; set; }
    public double Longitude { get; set; }
}

See Also