Skip to main content

How to: Manually Add Vector Items to a Map Control

To manually generate vector items, do the following.

Create a VectorLayer object and add it to the MapControl.Layers collection. Then, create several MapItem class descendant objects and add them to the VectorLayer.Items collection.