How to: Load Data from a KML File
To load data from a KML file, do the following.
- Create a KmlFileDataAdapter object and assign it to the VectorLayer.Data property.
- Specify the MapGeoDataAdapter.FileUri property of the object.
Note
Make sure that the Build Action property of a KML file is set to Resource.
<dxm:VectorLayer>
<dxm:KmlFileDataAdapter FileUri="kmlFile.kml" />
</dxm:VectorLayer>
See Also