Select to view content in your preferred language

Showing the label of my feature

2600
7
Jump to solution
06-21-2012 06:28 AM
AlaeddineSaadaoui
Regular Contributor
Hi all,
I have added the labeling option to my feature class by using ArcMap and I can see the labels of my features (snapshot 2). However, I cannot see them from my flex application (snapshot1).
I am wondering how I could fix this issue thank you.
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: dpaddock

If you add the layer as type="wms", then the TOC will only show the single layer and not the sub-layers.

View solution in original post

0 Kudos
7 Replies
by Anonymous User
Not applicable
Original User: strelolist

Hello Alaeddine,
Did you add your service to Flex viewer as "feature" type? If so, I have the same issue with mine and looks like it's inherent to ArcGIS service of that type and can't be solved :(. You have to switch to "dynamic" type to see labels. See my post here.

Hi all,
I have added the labeling option to my feature class by using ArcMap and I can see the labels of my features (snapshot 2). However, I cannot see them from my flex application (snapshot1).
I am wondering how I could fix this issue thank you.
0 Kudos
AlaeddineSaadaoui
Regular Contributor
Hello Alaeddine,
Did you add your service to Flex viewer as "feature" type? If so, I have the same issue with mine and looks like it's inherent to ArcGIS service of that type and can't be solved :(. You have to switch to "dynamic" type to see labels. See my post here.

Hi strelolist,
Thank you very much for answering my question. The problem with this solution is that it will also show the other layers of the mxd file. I would like to know if you got a solution for this problem.
Thank you again.
0 Kudos
by Anonymous User
Not applicable
Original User: dpaddock

If you add the layer as type="wms", then the TOC will only show the single layer and not the sub-layers.
0 Kudos
AlaeddineSaadaoui
Regular Contributor
If you add the layer as type="wms", then the TOC will only show the single layer and not the sub-layers.

Hi dpaddock,
I have added the following code:
            <layer label="Counties" type="wms" visible="false" alpha="1.0"
                   url="http://t20dohb05l27506/ArcGIS/rest/services/WVAdMap/OutdoorMap/MapServer"
                   visiblelayers=3/>
But the labels were not displayed. I am wondering if what I did is correct.
Thank you very much for your help.
0 Kudos
by Anonymous User
Not applicable
Original User: dpaddock

The URL is not correct and all attribute values need to be quoted.

Try:
<layer label="Counties" type="wms" visible="false" alpha="1.0"
       url="http://t20dohb05l27506/ArcGIS/services/WVAdMap/OutdoorMap/MapServer/WMSServer"
       visiblelayers="3"/>
0 Kudos
AlaeddineSaadaoui
Regular Contributor
The URL is not correct and all attribute values need to be quoted.

Try:
<layer label="Counties" type="wms" visible="false" alpha="1.0"
       url="http://t20dohb05l27506/ArcGIS/services/WVAdMap/OutdoorMap/MapServer/WMSServer"
       visiblelayers="3"/>

Hi dpaddock,
I don't have a WMS server. How could I add this server?
Thank you.
0 Kudos
by Anonymous User
Not applicable
Original User: 3alaeddine

Hi dpaddock,
I fixed the issue by adding the wms capability to my service and correcting my URL like you said.
Thank you so much for your help.
0 Kudos