Skip to main content

How to: Show a Title for a Vector Element

This example illustrates how to add a title to a map’s dot.

To accomplish this, create a ShapeTitleOptions object and assign it to the MapShapeBase.TitleOptions property. Then, specify the title’s text via the ShapeTitleOptions.Pattern property.

Note that the title’s text can be invisible on a map. So make sure the ShapeTitleOptions.Visible property is set to true.

View Example

    <dxm:ShapeTitleOptions Visible="True" Pattern="Chicago" />
See Also