Select to view content in your preferred language

failed to display lable of feature layer

4524
6
10-26-2010 12:21 PM
XiujuZhou
Emerging Contributor
I have feature layer created by feature service. , the lables of layer are displayed In the mxd file. but not show on silverlight application as feature layer and only show as ArcGISDynamicMapServiceLayer. why? how to fix it?
0 Kudos
6 Replies
JenniferNery
Esri Regular Contributor
I'm not sure I understand the question.  What label are you talking about and where do you expect this to show on the FeatureLayer?

Can you explain using sampleserver? This is a FeatureService that can be used for FeatureLayer (http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/F...) This is the corresponding MapService that can be used in ArcGISDynamicMapServiceLayer (http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/M...)
0 Kudos
STharshini
Emerging Contributor
I have feature layer created by feature service. , the lables of layer are displayed In the mxd file. but not show on silverlight application as feature layer and only show as ArcGISDynamicMapServiceLayer. why? how to fix it?


Please check the following link.This is a plugin issue

http://forums.arcgis.com/threads/10273-autolabels-not-appearing-in-flexview?highlight=label
0 Kudos
XiujuZhou
Emerging Contributor
Thank you Jeniffer. please compare map service and feature service for the same mxd file you will know what I mean. the feature is polygon with red fill symbol. feature service has no label shown while mapservice does.
http://mapserver2.pwe.pserv.coh.gov/ArcGIS/rest/services/API2_3dpc/MapServer
http://mapserver2.pwe.pserv.coh.gov/ArcGIS/rest/services/API2_3dpc/FeatureServer/2


I'm not sure I understand the question.  What label are you talking about and where do you expect this to show on the FeatureLayer?

Can you explain using sampleserver? This is a FeatureService that can be used for FeatureLayer (http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/F...) This is the corresponding MapService that can be used in ArcGISDynamicMapServiceLayer (http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/M...)
0 Kudos
JenniferNery
Esri Regular Contributor
I don't have access to the links you provided.
0 Kudos
XiujuZhou
Emerging Contributor
Jennifer, I set properties of the Layer as " Label Feature on This Layer" in mxd file, and labels show on map in the mxd. then I created map service and feature service. but labels display on the map service not the feature service. below is part of information of feature service copied online:
Drawing Info:

Renderer:

Simple Renderer:
Symbol:

Simple Fill Symbol:
Style: esriSFSSolid, Color: [230, 0, 0, 255]
Outline:

Simple Line Symbol:
Style: esriSLSSolid, Color: [255, 255, 255, 255], Width: 1
Label:
Description:

Transparency: 0
Labeling Info:

Label Placement: esriServerPolygonPlacementAlwaysHorizontal
Label Expression: [DPC_ID]
Use Coded Values: True
Symbol:

Simple Text Symbol:
Type: esriTS
Color:255, 255, 255, 255
Background Color: null
Border Line Color: null
Vertical Alignment: bottom
Horizontal Alignment: center
Right To Left: False
Angle: 0
XOffset: 0
YOffset: 0
Font Family: Arial
Font Size: 8
Font Style: normal
Font Weight: normal
Font Decoration: none

Min. Scale: 0
Max. Scale: 0




I don't have access to the links you provided.
0 Kudos
JenniferNery
Esri Regular Contributor
Okay, that makes sense to me now.  This feature is not currently supported.  Please refer to this related thread: http://forums.arcgis.com/threads/2339-Labelling
0 Kudos