SvgFileDataAdapter.FileUri Property
Gets or sets a Uri that defines the location of a vector data file.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v20.2.dll
NuGet Package: DevExpress.Win.Map
Declaration
Property Value
Type | Default | Description |
---|---|---|
Uri | *null* | A Uri object that contains a vector data file URI. |
Example
To load SVG file content to the Map Control, create a new SvgFileDataAdapter and assign it to the VectorItemsLayer.Data property. Then, specify the SvgFileDataAdapter.FileUri
property of the adapter.
private void Form1_Load(object sender, EventArgs e) {
Uri baseUri = new Uri(System.Reflection.Assembly.GetExecutingAssembly().Location);
map.Layers.Add(new VectorItemsLayer {
Data = new SvgFileDataAdapter {
FileUri = new Uri(baseUri, "..\\..\\Data\\countries.svg")
}
});
}
See Also