Load Vector Data from a SVG File
This document describes the basics of working with SVG files using the Map Control.
This subject has been broken down into the following sections.
Overview
Using the Map control, you can load and depict any set of shapes stored in the SVG (Scalable Vector Graphics) format. SVG files have a tag-based structure with nested elements (similar to the XML standard).
One of the common usage scenarios for the SVG format is to display vector data. For instance, the image below shows a vector map loaded from an SVG file.
Load SVG File Data
To load vector data from an SVG file, do the following.
- Create a new SvgFileDataAdapter object.
- Specify the path to an SVG file using the SvgFileDataAdapter.FileUri property.
- Assign the adapter to the VectorLayer.Data property.
Examples
To learn how to load SVG file data to a Map Control, see the How to: Load Data from a SVG File example.