KmlFileDataAdapter.FileUri Property
Gets or sets an Uri that defines the location of a KML file.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Uri | *null* | A Uri object that contains a KML file Uri. |
Example
To load shape data from a KML file do the following.
- Create a KmlFileDataAdapter object.
- Specify its
KmlFileDataAdapter.FileUri
property. - Assign this object as the VectorItemsLayer.Data property value.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-load-data-from-a-kml-file-t140303
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WinForms_MapControl_KmlFileDataAdapter {
static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
See Also