Select to view content in your preferred language

How to create the labels  for feature layer ?

490
2
01-03-2011 07:49 PM
ChethanaAmai
Deactivated User
Hi ,

Can anyone please guide me , how to create  labels for feature layer using  arcgis apis for Silverlight/WPF.

Thanking you.
Chethana
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
At this time, there is no out-of-the-box support for labelling a feature layer but you can create your own symbols (see custom symbols sample) and add a TextBlock in these symbols binded to any attribute of your graphic:
<TextBlock Text="{Binding Attributes[MyLabel]}" />
0 Kudos
wangzhifang
Frequent Contributor
At this time, there is no out-of-the-box support for labelling a feature layer but you can create your own symbols (see custom symbols sample) and add a TextBlock in these symbols binded to any attribute of your graphic:
<TextBlock Text="{Binding Attributes[MyLabel]}" />

Or, just add another graphic with TextSymbol at the same location of your each feature. This is simple, but your graphic quantity would be double.
0 Kudos