<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Silverlight API to turn on/off labels in a ArcGIS Server dynamic map service layer? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-api-to-turn-on-off-labels-in-a-arcgis/m-p/90846#M2227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Experts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am writting a Silverlight application to display a map from an ArcGIS Server dynamic map service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; some feature layers in the map service have labels and currently we can only turn the labels on/off directly in the MXD file that underlies the map service. In the running Silverlight application, we can currently only allow user to turn the whole layer (including polygons and labels) on/off. Is there any way to allow our user turn on/off the label only, without impacting the display of the polygons?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I understand that there is an alternative way: for the same layer we can make two references in MXD file. One reference displays polygons only, while the other displays labels and transparent polygons. However, there are drawback on this approach. The MXD file can become much harder to maintain, and the Silverlight code will have significant complexity increase in our design.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there any other method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sui&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2012 15:39:38 GMT</pubDate>
    <dc:creator>SuiHuang</dc:creator>
    <dc:date>2012-03-30T15:39:38Z</dc:date>
    <item>
      <title>Silverlight API to turn on/off labels in a ArcGIS Server dynamic map service layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-api-to-turn-on-off-labels-in-a-arcgis/m-p/90846#M2227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Experts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am writting a Silverlight application to display a map from an ArcGIS Server dynamic map service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; some feature layers in the map service have labels and currently we can only turn the labels on/off directly in the MXD file that underlies the map service. In the running Silverlight application, we can currently only allow user to turn the whole layer (including polygons and labels) on/off. Is there any way to allow our user turn on/off the label only, without impacting the display of the polygons?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I understand that there is an alternative way: for the same layer we can make two references in MXD file. One reference displays polygons only, while the other displays labels and transparent polygons. However, there are drawback on this approach. The MXD file can become much harder to maintain, and the Silverlight code will have significant complexity increase in our design.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there any other method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sui&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 15:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-api-to-turn-on-off-labels-in-a-arcgis/m-p/90846#M2227</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2012-03-30T15:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Silverlight API to turn on/off labels in a ArcGIS Server dynamic map service laye</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-api-to-turn-on-off-labels-in-a-arcgis/m-p/90847#M2228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is no control ability on label in REST API(as far as I know, neither 10.1 rest api).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can just turn off the visibility of a whole layer rather than labels only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Two solutions to this issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Maintain two map services on server, one for map content only and another for "labels" only. On client side, you can easily switch the visibility of each layer(the label map service or the map content map service). On server side, construct the "labels" only map service by creating a annotation feature class, and only add this layer to your mxd, then publish. This is the recommended approach and indeed implemented by online maps provider, such as ArcGIS Online or ???????.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Turn off your label in mxd and implemented label function on client side by using graphics layer and text symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope these helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2012 02:02:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/silverlight-api-to-turn-on-off-labels-in-a-arcgis/m-p/90847#M2228</guid>
      <dc:creator>wangzhifang</dc:creator>
      <dc:date>2012-03-31T02:02:18Z</dc:date>
    </item>
  </channel>
</rss>

