<?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 Javascript API BasemapGalley widget: unable to get gallery template group query working? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249543#M79957</link>
    <description>&lt;P&gt;Hi I am trying to get the basemap gallery widget to display a specific group of basemaps I have created for my organization.&lt;/P&gt;&lt;P&gt;From my understanding of the documentation, I should be using the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#featuredItemsGroupQuery" target="_self"&gt;galleryTemplatesGroupQuery property&lt;/A&gt; to call the basemap group from an ID I have for it. When I try to load it it will either show the default arcgis group or if I place my portal ID with it, it calls all basemaps we have for our org.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code examples I have, I haven't seen any examples of this property working so am not sure if I am doing it correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  // Instantiates the Basemap widget for Desktop
  const basemaps = new BasemapGallery({
    view,
   
      // autocasts to PortalBasemapsSource
    galleryTemplatesGroupQuery: {
      id: "d3cad8c2b40046928585d09b020e133c"
    }, //Custom BaseMap Gallery Group from AGOL
    container: "basemaps-container",
  });

  // Instantiates the Basemap widget for Mobile
  const basemapsMobile = new BasemapGallery({
    view,
    source: {
      // autocasts to PortalBasemapsSource
      portal: "https://corr.maps.arcgis.com",
      galleryTemplatesGroupQuery: {
        id: "d3cad8c2b40046928585d09b020e133c"
      },
    },
   
    container: "basemaps-container-mobile",
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 19 Jan 2023 16:44:49 GMT</pubDate>
    <dc:creator>ArianaBernal</dc:creator>
    <dc:date>2023-01-19T16:44:49Z</dc:date>
    <item>
      <title>Javascript API BasemapGalley widget: unable to get gallery template group query working?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249543#M79957</link>
      <description>&lt;P&gt;Hi I am trying to get the basemap gallery widget to display a specific group of basemaps I have created for my organization.&lt;/P&gt;&lt;P&gt;From my understanding of the documentation, I should be using the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#featuredItemsGroupQuery" target="_self"&gt;galleryTemplatesGroupQuery property&lt;/A&gt; to call the basemap group from an ID I have for it. When I try to load it it will either show the default arcgis group or if I place my portal ID with it, it calls all basemaps we have for our org.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code examples I have, I haven't seen any examples of this property working so am not sure if I am doing it correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  // Instantiates the Basemap widget for Desktop
  const basemaps = new BasemapGallery({
    view,
   
      // autocasts to PortalBasemapsSource
    galleryTemplatesGroupQuery: {
      id: "d3cad8c2b40046928585d09b020e133c"
    }, //Custom BaseMap Gallery Group from AGOL
    container: "basemaps-container",
  });

  // Instantiates the Basemap widget for Mobile
  const basemapsMobile = new BasemapGallery({
    view,
    source: {
      // autocasts to PortalBasemapsSource
      portal: "https://corr.maps.arcgis.com",
      galleryTemplatesGroupQuery: {
        id: "d3cad8c2b40046928585d09b020e133c"
      },
    },
   
    container: "basemaps-container-mobile",
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Jan 2023 16:44:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249543#M79957</guid>
      <dc:creator>ArianaBernal</dc:creator>
      <dc:date>2023-01-19T16:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API BasemapGalley widget: unable to get gallery template group query working?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249550#M79959</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80620"&gt;@ArianaBernal&lt;/a&gt;&amp;nbsp;- in order for this to work, you need to create a portal instance within the source, and define the galleryTemplatesGroupQuery within that, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const basemapGallery = new BasemapGallery({
        view: view,
        source: {
          portal: new Portal({
            url: "https://corr.maps.arcgis.com",
            galleryTemplatesGroupQuery: "d3cad8c2b40046928585d09b020e133c"
          })
        }
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a codepen if you want to see the full example in action:&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/RwBjEae?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/annefitz/pen/RwBjEae?editors=1000&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:13:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249550#M79959</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-01-19T17:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API BasemapGalley widget: unable to get gallery template group query working?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249552#M79960</link>
      <description>&lt;P&gt;What happens when you use the syntax&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;galleryTemplatesGroupQuery: "d3cad8c2b40046928585d09b020e133c", //Custom BaseMap Gallery Group from AGOL&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249552#M79960</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-01-19T17:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API BasemapGalley widget: unable to get gallery template group query working?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249553#M79961</link>
      <description>&lt;P&gt;If that's the case, does the documentation need to be updated to show that it has an id property?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249553#M79961</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-01-19T17:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API BasemapGalley widget: unable to get gallery template group query working?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249554#M79962</link>
      <description>&lt;P&gt;sorry - typo!! just updated the comment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249554#M79962</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-01-19T17:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API BasemapGalley widget: unable to get gallery template group query working?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249558#M79963</link>
      <description>&lt;P&gt;I spoke too soon - it does appear that the galleryTemplatesGroupQuery is returning more basemaps than what is actually in that group - I can dig into that and see if there might be a bug there. In the meantime, you can use the query property on PortalBasemapsSource to define the id of your group:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const basemapGallery = new BasemapGallery({
        view: view,
        source: {
          portal: "https://corr.maps.arcgis.com",
          query: {
            id: "d3cad8c2b40046928585d09b020e133c"
          }
        }
      });&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:20:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249558#M79963</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-01-19T17:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API BasemapGalley widget: unable to get gallery template group query working?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249564#M79964</link>
      <description>&lt;P&gt;Oh this works perfectly! Thank you so much, glad it was not just me receiving that issue.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:34:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-basemapgalley-widget-unable-to-get/m-p/1249564#M79964</guid>
      <dc:creator>ArianaBernal</dc:creator>
      <dc:date>2023-01-19T17:34:56Z</dc:date>
    </item>
  </channel>
</rss>

