Skip to main content
A newer version of this page is available. .

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.v19.1.dll

Declaration

public interface IMapsMarker :
    IBaseMapsMarker

Remarks

You can implement this interface in an XPO or Entity Framework business object. As a result, the WebMapsListEditor or 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 19.1\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