A newer version of this page is available.
Switch to the current version.
SvgFileDataAdapter Class
Data adapter that provides data from a SVG file.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v19.2.dll
Declaration
public class SvgFileDataAdapter :
FileDataAdapterBase,
ISvgPointConverterFactory
Public Class SvgFileDataAdapter
Inherits FileDataAdapterBase
Implements ISvgPointConverterFactory
Remarks
For more information about this data adapter, refer to the Load Vector Data from a SVG File topic.
Examples
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.
NOTE
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-load-svg-file-content-to-the-map-control-t312482
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")
}
});
}
Implements
Inheritance
Object
MapDisposableObject
MapDataAdapterBase
CoordinateSystemDataAdapterBase
DevExpress.XtraMap.OuterDataAdapterBase
FileDataAdapterBase
SvgFileDataAdapter
See Also
Feedback