KmlFileDataAdapter Class
Data adapter that provides data from a KML file.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v19.1.dll
Declaration
Remarks
For more information about this data adapter, refer to the Load Vector Data from a KML File topic.
Example
To load data from a KML file, do the following.
- Create a
KmlFileDataAdapter
object and assign it to the VectorLayer.Data property. - Specify the KmlFileDataAdapter.FileUri property of the object.
Note
Make sure that the Build Action property of a KML file is set to Resource.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-display-kml-file-shapes-e4526.
<dxm:VectorLayer>
<dxm:KmlFileDataAdapter FileUri="kmlFile.kml" />
</dxm:VectorLayer>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the KmlFileDataAdapter class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.