<?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 Name of BaseMap in AllLayers property is not set ? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/name-of-basemap-in-alllayers-property-is-not-set/m-p/141921#M1610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a piece of code to display Name of all layers of a WebMap.&lt;/P&gt;&lt;P&gt;I am using the AllLayers property to enumerate the layers.&lt;/P&gt;&lt;P&gt;I am surprised to get an empty Name for the first layer in the collection that correspond to the BaseMap layer whereas the BaseMap property has the correct Name.&lt;/P&gt;&lt;P&gt;The base map is OpenStreetMap. The problem seems not to happen with the Topographic base map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me if there is any reason ? Or is it a known issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 06:49:54 GMT</pubDate>
    <dc:creator>EricDUCOS1</dc:creator>
    <dc:date>2017-08-31T06:49:54Z</dc:date>
    <item>
      <title>Name of BaseMap in AllLayers property is not set ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/name-of-basemap-in-alllayers-property-is-not-set/m-p/141921#M1610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a piece of code to display Name of all layers of a WebMap.&lt;/P&gt;&lt;P&gt;I am using the AllLayers property to enumerate the layers.&lt;/P&gt;&lt;P&gt;I am surprised to get an empty Name for the first layer in the collection that correspond to the BaseMap layer whereas the BaseMap property has the correct Name.&lt;/P&gt;&lt;P&gt;The base map is OpenStreetMap. The problem seems not to happen with the Topographic base map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me if there is any reason ? Or is it a known issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 06:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/name-of-basemap-in-alllayers-property-is-not-set/m-p/141921#M1610</guid>
      <dc:creator>EricDUCOS1</dc:creator>
      <dc:date>2017-08-31T06:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Name of BaseMap in AllLayers property is not set ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/name-of-basemap-in-alllayers-property-is-not-set/m-p/141922#M1611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am able to see the same issue as you see. But if I used "&lt;STRONG&gt;Attribution&lt;/STRONG&gt;" property of the layer, it gives me the name of the OpenStreetMap as &lt;STRONG&gt;"OpenStreetMap contributors"&lt;/STRONG&gt;. For other basemaps, "Name" property provides the name of the basemap in the webmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;private async Task Initialize()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt; string webMapURL = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fess.maps.arcgis.com%2Fhome%2Fitem.html%3Fid%3De63ed2cd51e94214a434e2951b501c6c" rel="nofollow" target="_blank"&gt;http://ess.maps.arcgis.com/home/item.html?id=e63ed2cd51e94214a434e2951b501c6c&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; var webMap = await Map.LoadFromUriAsync(new Uri(webMapURL));&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; MyMapView.Map = webMap;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt; IReadOnlyList&amp;lt;Layer&amp;gt; allLyrs = MyMapView.Map.AllLayers;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; foreach (Layer l in allLyrs)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; Console.WriteLine(l.Name);&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Console.WriteLine(l.Attribution); &amp;nbsp;// &lt;STRONG&gt;for the OpenStreetMap only&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this webmap, it displays the result as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OpenStreetMap contributors&lt;BR /&gt;operations - Incident Areas&lt;BR /&gt;operations - Incident Lines&lt;BR /&gt;operations - Incident Points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nagma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 16:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/name-of-basemap-in-alllayers-property-is-not-set/m-p/141922#M1611</guid>
      <dc:creator>NagmaYasmin</dc:creator>
      <dc:date>2017-09-01T16:08:37Z</dc:date>
    </item>
  </channel>
</rss>

