Hi I am trying to get the basemap gallery widget to display a specific group of basemaps I have created for my organization.
From my understanding of the documentation, I should be using the galleryTemplatesGroupQuery property 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.
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.
// 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",
});