Select to view content in your preferred language

autolabels not appearing in flexview

1821
5
08-12-2010 12:05 PM
PeteVitt
Frequent Contributor
I have autolabeling set up for my map service through my ArcMap 10 doc.  The labels appear when I view the service on ArcGIS.com Map, but when I view the service using the flexviewer the labels dont appear on the map.

my config.xml is for the service is:

<layer label="SARI Record Drawings" type="feature" visible="true"  alpha="1"
   info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
   infoconfig="widgets/InfoTemplates/IWT_Link.xml"
                        url="http://www.mywebsite/ArcGIS/rest/services/sari_drawings_Flex/MapServer/0"/>

is there a parameter I need to specify for the autolabeling to appear?  I've tried to change the type to "dynamic" and not specify the layer, but then the service doesnt appear.  There is only one layer in the map.


Thanks

Pete
Tags (2)
0 Kudos
5 Replies
BjornSvensson
Esri Regular Contributor
When you're setting the mapserver to type="feature", the data gets downloaded to the web browser and rendered by the Flash Player.  This will draw the features, but not any labels. As a side note - if you're using a 9.3* server, the features will be drawn with default symbols.  If you're using a 10* server, the features will be drawn with the symbology you set up in the service (mxd or msd).

If you set the type to "dynamic" (or "tiled" if it is a cached service) and change the URL to the full service, i.e. ending in "/MapServer", then the actual image will get created by ArcGIS Server (with labels).

However, the info popups only work for type="feature".

Hope this helps explain what is happening (or is supposed to happen).
0 Kudos
toddsams
Deactivated User
Is there no way to have info popups AND labels then?
0 Kudos
toddsams
Deactivated User
My situation is that I have polygons that I would like to label and also be able to have info popups.

I converted my polygons to points and then created an .mxd with only the points and turned on the labels. Then I made the points hollow and got rid of any border so all that appears in the .mxd are the labels. I then saved an .msd, published as a map service, and added it to my operational layers only to find out that it drew small black circles for points (on top of my polygons) anyway.

Might there be another work-around?
0 Kudos
toddsams
Deactivated User
I got it to work.

Still wondering if this is the most elegant way to go about this though...
0 Kudos
BjornSvensson
Esri Regular Contributor
One workaround would be to have two operational layers:


  • one dynamic (or tiled) layer would contain the map service with the labels,

  • one feature layer with the popups.

0 Kudos