KmlFileDataAdapter.FileUri Property
SECURITY NOTE
Downloading map data passed through URLs specified by the Suppress Control Requests to Download Data from External URLsFileUri
property may create security issues. Review the following help topic and learn how to spot, analyze, and prohibit unwanted download requests:
Gets or sets a URI that defines the KML file location.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.1.dll
NuGet Package: DevExpress.Win.Map
Declaration
Property Value
Type | Default | Description |
---|---|---|
Uri | null | A Uri object that specifies a path to a KML file. |
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.
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