Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to add a custom title to a map vector element

$
0
0

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 MapShape.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.

Question Comments

Added By: Tony Johnson 2 at: 10/13/2014 9:15:18 PM    

For some odd reason using this approach in code behind - after shapetitleoptions.pattern is assigned the dot.tooltippattern fails to display when the dot is clicked.  It becomes an empty black box.   Removing the titleoption restores the tooltippattern normal display behavior.

Added By: John (DevExpress Support) at: 10/13/2014 10:05:14 PM    Hi Tony,
It seems that you have already asked this question in a separate ticket:Changing a Map Dot title via shapetitleoptions.pattern in code behind seems to delete tooltippattern. Let's continue the conversation there.

Viewing all articles
Browse latest Browse all 7205

Trending Articles