You can create Basemaps in your
// get the basemap gallery element const basemapGallery = document.querySelector("arcgis-basemap-gallery"); // create a portal instance const portal = new Portal();
// source for basemaps from a portal group // containing basemaps with different projections const source = new PortalBasemapsSource({ portal, query: { id: "bdb9d65e0b5c480c8dcc6916e7f4e099" }, }); basemapGallery.source = source;At 4.23, MapView’s spatialReference can be changed at runtime by directly setting the MapView’s spatialReference or changing the basemap from the Basemap Gallery or Basemap Toggle components.
To disable this option, set the MapView.spatialReferenceLocked to true.