This example shows how to create map shapes and add them to a vector layer.
Follow the steps below to add map shapes to the map:
- Add a
VectorItemsLayer
object to theMapControl.Layers
collection. - Initialize the
VectorItemsLayer.Data
property with aMapItemStorage
object. - Add shape objects to the
MapItemStorage.Items
collection.
The following shapes are available:
- MapBubble
- MapCallout
- MapCustomElement
- MapDot
- MapEllipse
- MapLine
- MapPath
- MapPie
- MapPolygon
- MapPolyline
- MapPushpin
- MapRectangle
- MapSpline
- How to move a Map Pushpin element at runtime
- How to manually provide vector items from WKT
- How to manually generate vector items to display on a map
- How to manually generate map items for received GIS data
- How to load data from a SQL geometry data source
- How to display bubble chart items on a map
- How to customize drawing of vector items on a map
- How to color manually added shapes using the choropleth colorizer
- How to customize shape title options
- How to customize the appearance of a map shape title
- How to Use Clusterers to Aggregate Vector Items
(you will be redirected to DevExpress.com to submit your response)