A newer version of this page is available. Switch to the current version.

LocationInformation Class

Contains information about a specific location on a map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v18.2.dll


public class LocationInformation
Public Class LocationInformation

Related API Members

The following members accept/return LocationInformation objects:


To manually generate map items for received GIS data, do the following.

using DevExpress.XtraMap;
using System.Windows.Forms;

namespace WinForms_MapControl_InformationLayer {
    public partial class Form1 : Form {
        InformationLayer GeocodeLayer { get { return (InformationLayer)mapControl1.Layers["GeocodeLayer"]; } }
        BingGeocodeDataProvider GeocodeProvider { get { return (BingGeocodeDataProvider)GeocodeLayer.DataProvider; } }

        public Form1() {
            GeocodeProvider.LocationInformationReceived += GeocodeProvider_LocationInformationReceived;

        void GeocodeProvider_LocationInformationReceived(object sender, LocationInformationReceivedEventArgs e) {
            if ((e.Cancelled) && (e.Result.ResultCode != RequestResultCode.Success)) return;

            foreach (LocationInformation locationInformation in e.Result.Locations)
                GeocodeLayer.Data.Items.Add(new MapCallout() {
                    Location = locationInformation.Location,
                    Text = locationInformation.DisplayName


See Also