<?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: Use subset of BasemapGallery AvailableBasemaps (MAUI) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/use-subset-of-basemapgallery-availablebasemaps/m-p/1300311#M11930</link>
    <description>&lt;P&gt;Thanks for the info on this. I ended up writing my own .NET Maui Control (ContentView) and adding the basemaps I needed from a configuration file. I just needed the ItemId and used ESRI.ArcGISRuntime.Portal.PortalItem to get the item. Then, once I instantiated the ESRI.ArcGISRuntime.Mapping.Basemap, I could get all of the relevant information (Name, Thumbnail, etc).&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 17:15:14 GMT</pubDate>
    <dc:creator>KarenRobine1</dc:creator>
    <dc:date>2023-06-16T17:15:14Z</dc:date>
    <item>
      <title>Use subset of BasemapGallery AvailableBasemaps (MAUI)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-subset-of-basemapgallery-availablebasemaps/m-p/1291194#M11841</link>
      <description>&lt;P&gt;I'm using the BasemapGallery from Esri.ArcGISRuntime.Toolkit.Maui.&amp;nbsp; There's an AvailableBasemaps property. I'm trying to figure out a way to limit the number of basemaps added when the control is loaded with all of the basemaps. If anyone has some sample code for this, that would be greatly helpful.&amp;nbsp; &amp;nbsp;I'm able to remove basemaps using a button after they are loaded, but this need it to occur before all the basemaps load (better performance &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;). Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 17:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-subset-of-basemapgallery-availablebasemaps/m-p/1291194#M11841</guid>
      <dc:creator>KarenRobine1</dc:creator>
      <dc:date>2023-05-19T17:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use subset of BasemapGallery AvailableBasemaps (MAUI)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-subset-of-basemapgallery-availablebasemaps/m-p/1292868#M11851</link>
      <description>&lt;P&gt;For now, it looks like loading the default collection of ArcGIS Developer basemaps is unfortunately hard-coded in the Toolkit as currently released on NuGet.org. But the good news is, it's open source and you can easily resolve this yourself and rebuild (until we can triage and resolve appropriately).&lt;/P&gt;&lt;P&gt;You just need to remove the call to LoadFromDefaultPortal() on this line:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/blob/main/src/Toolkit/Toolkit.Maui/BasemapGallery/BasemapGallery.cs#L44" target="_blank" rel="noopener"&gt;arcgis-maps-sdk-dotnet-toolkit/BasemapGallery.cs at main · Esri/arcgis-maps-sdk-dotnet-toolkit · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Because that call ultimately calls&amp;nbsp;PopulateFromDefaultList which creates a default ArcGISPortal instance (arcgis.com) and calls&amp;nbsp;GetDeveloperBasemapsAsync():&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/blob/main/src/Toolkit/Toolkit/UI/Controls/BasemapGallery/BasemapGalleryController.cs#L308" target="_blank" rel="noopener"&gt;arcgis-maps-sdk-dotnet-toolkit/BasemapGalleryController.cs at main · Esri/arcgis-maps-sdk-dotnet-toolkit · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 23:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-subset-of-basemapgallery-availablebasemaps/m-p/1292868#M11851</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2023-05-24T23:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Use subset of BasemapGallery AvailableBasemaps (MAUI)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/use-subset-of-basemapgallery-availablebasemaps/m-p/1300311#M11930</link>
      <description>&lt;P&gt;Thanks for the info on this. I ended up writing my own .NET Maui Control (ContentView) and adding the basemaps I needed from a configuration file. I just needed the ItemId and used ESRI.ArcGISRuntime.Portal.PortalItem to get the item. Then, once I instantiated the ESRI.ArcGISRuntime.Mapping.Basemap, I could get all of the relevant information (Name, Thumbnail, etc).&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 17:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/use-subset-of-basemapgallery-availablebasemaps/m-p/1300311#M11930</guid>
      <dc:creator>KarenRobine1</dc:creator>
      <dc:date>2023-06-16T17:15:14Z</dc:date>
    </item>
  </channel>
</rss>

