<?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 ArcGISDynamicMapServiceLayer in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisdynamicmapservicelayer/m-p/497402#M6104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a ArcGISDynamicMapServiceLayer layer there is way to hide labels but it doesn't seem to be working correctly.&amp;nbsp; I set the LayerDrawingOptions.ShowLabels to false and it still shows the labels on the map.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;ArcGISDynamicMapServiceLayer layer = Map.layers[0];&lt;/P&gt;&lt;P&gt;DynamicLayerInfoCollection layerInfos = layer.CreateDynamicInfosFromlayerInfos();&lt;/P&gt;&lt;P&gt;layer.DrawingOptions = new LayerDrawingOptionsCollections();&amp;nbsp; //why is this null to start with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;foreach(DynamicLayerInfo layerInfo in layerInfos)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerDrawingOptions options = new LayerDrawingOptions();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option.LayerID = layerInfo.ID;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option.ShowLabels = false;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.LayerDrawingOptions.add(option);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 20:48:55 GMT</pubDate>
    <dc:creator>StevenBloxham</dc:creator>
    <dc:date>2016-05-13T20:48:55Z</dc:date>
    <item>
      <title>ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgisdynamicmapservicelayer/m-p/497402#M6104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a ArcGISDynamicMapServiceLayer layer there is way to hide labels but it doesn't seem to be working correctly.&amp;nbsp; I set the LayerDrawingOptions.ShowLabels to false and it still shows the labels on the map.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;ArcGISDynamicMapServiceLayer layer = Map.layers[0];&lt;/P&gt;&lt;P&gt;DynamicLayerInfoCollection layerInfos = layer.CreateDynamicInfosFromlayerInfos();&lt;/P&gt;&lt;P&gt;layer.DrawingOptions = new LayerDrawingOptionsCollections();&amp;nbsp; //why is this null to start with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;foreach(DynamicLayerInfo layerInfo in layerInfos)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerDrawingOptions options = new LayerDrawingOptions();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option.LayerID = layerInfo.ID;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option.ShowLabels = false;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.LayerDrawingOptions.add(option);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 20:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgisdynamicmapservicelayer/m-p/497402#M6104</guid>
      <dc:creator>StevenBloxham</dc:creator>
      <dc:date>2016-05-13T20:48:55Z</dc:date>
    </item>
  </channel>
</rss>

