Skip to main content
A newer version of this page is available. .

SvgFileDataAdapter Class

Data adapter that provides data from a SVG file.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v18.1.dll

Declaration

public class SvgFileDataAdapter :
    FileDataAdapterBase,
    ISvgPointConverterFactory

Remarks

For more information about this data adapter, refer to the Load Vector Data from a SVG File topic.

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")
        }
    });
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SvgFileDataAdapter 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.

Implements

Inheritance

See Also