<?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 Re: GetLegendInfosAsync() does not return legends in case of ArcGISTiledLayer in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/getlegendinfosasync-does-not-return-legends-in/m-p/1063701#M10142</link>
    <description>&lt;P&gt;'await' is missing in your code, the task is not executed yet at your debug point.&lt;BR /&gt;var legend = &lt;STRONG&gt;await&lt;/STRONG&gt; sublayer.GetLegendInfosAsync();&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 16:39:27 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2021-06-01T16:39:27Z</dc:date>
    <item>
      <title>GetLegendInfosAsync() does not return legends in case of ArcGISTiledLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getlegendinfosasync-does-not-return-legends-in/m-p/1063570#M10139</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Could you please assist with how we can fetch legends from the Map Tiles service?&lt;/P&gt;&lt;P&gt;Below is the sample code, we have&lt;SPAN&gt;&amp;nbsp;consumed the tile by URL which is rendered successfully to the map view.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ArcGISTiledLayer layer = new ArcGISTiledLayer(new Uri(LayerUrl)) ;&lt;BR /&gt;await baseLayer.LoadAsync();&lt;BR /&gt;var legends = layer.GetLegendInfosAsync();&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However,&amp;nbsp;GetLegendInfosAsync()&amp;nbsp; does not return the legend associated with the tile service.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RomanBoros_0-1622555375421.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14694i9AEBF3EEAE5D544D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RomanBoros_0-1622555375421.png" alt="RomanBoros_0-1622555375421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getlegendinfosasync-does-not-return-legends-in/m-p/1063570#M10139</guid>
      <dc:creator>RomanBoros</dc:creator>
      <dc:date>2021-06-01T14:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: GetLegendInfosAsync() does not return legends in case of ArcGISTiledLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getlegendinfosasync-does-not-return-legends-in/m-p/1063605#M10140</link>
      <description>&lt;P&gt;The legend is provided by sublayers so you have to get the SubLayers, loop on the sublayers, and call&amp;nbsp;&lt;SPAN&gt;GetLegendInfosAsync on each sublayer (even if frequently a tiled layer has only one sublayer)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getlegendinfosasync-does-not-return-legends-in/m-p/1063605#M10140</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-06-01T14:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: GetLegendInfosAsync() does not return legends in case of ArcGISTiledLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getlegendinfosasync-does-not-return-legends-in/m-p/1063653#M10141</link>
      <description>&lt;P&gt;Thanks for your response. After trying&amp;nbsp;&lt;SPAN&gt;GetLegendInfosAsync&amp;nbsp;() on the sublayer it returned null as a &lt;STRONG&gt;result&lt;/STRONG&gt; and Status as &lt;STRONG&gt;Waiting for Activation.&lt;/STRONG&gt; Anything we need to configure on on the Tile Service? see below snapshot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RomanBoros_0-1622561498971.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14715i306782DCDA4302C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RomanBoros_0-1622561498971.png" alt="RomanBoros_0-1622561498971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 15:34:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getlegendinfosasync-does-not-return-legends-in/m-p/1063653#M10141</guid>
      <dc:creator>RomanBoros</dc:creator>
      <dc:date>2021-06-01T15:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: GetLegendInfosAsync() does not return legends in case of ArcGISTiledLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getlegendinfosasync-does-not-return-legends-in/m-p/1063701#M10142</link>
      <description>&lt;P&gt;'await' is missing in your code, the task is not executed yet at your debug point.&lt;BR /&gt;var legend = &lt;STRONG&gt;await&lt;/STRONG&gt; sublayer.GetLegendInfosAsync();&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 16:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getlegendinfosasync-does-not-return-legends-in/m-p/1063701#M10142</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-06-01T16:39:27Z</dc:date>
    </item>
  </channel>
</rss>

