<?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: basemap-gallery and arcgis-map components and USA style in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616696#M87182</link>
    <description>&lt;P&gt;Looking at this blog post, it looks like you would need to set it up in your organization.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/announcements/esri-vector-basemaps-for-united-states" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-online/announcements/esri-vector-basemaps-for-united-states&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I haven't done this, but you might be able to go through each one and assign the region in Map Viewer.&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2025 20:46:34 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2025-05-20T20:46:34Z</dc:date>
    <item>
      <title>basemap-gallery and arcgis-map components and USA style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616032#M87172</link>
      <description>&lt;P&gt;My organization’s AGOL is configured to use the U.S. style (e.g. Gulf of America), but I see Gulf of Mexico on my initial map.&amp;nbsp; When I change my basemap (via the basemap gallery) it shows Gulf of America from then on.&amp;nbsp; How does one configure the arcgis-map component so the initial basemap also honors the required style?&lt;/P&gt;&lt;P&gt;Unrelated to the above, the basemap-gallery component has about 35 maps by default.&amp;nbsp; I struggled a bit trying to specify a subset of basemaps to present the user with but I was not successful and would appreciate any code snippets (I think it’s in the view model but I couldn’t get it working).&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 14:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616032#M87172</guid>
      <dc:creator>GaryB</dc:creator>
      <dc:date>2025-05-19T14:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: basemap-gallery and arcgis-map components and USA style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616055#M87174</link>
      <description>&lt;P&gt;You can accomplish this by leaving the item-id and basemap empty attributes on the arcgis-map component, then creating your own map/basemap as needed.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/how-to-use-a-basemap-with-a-specific-world-view-in-your-web-app" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/how-to-use-a-basemap-with-a-specific-world-view-in-your-web-app&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;arcgis-map&amp;gt;
  &amp;lt;/arcgis-map&amp;gt;
  &amp;lt;script type="module"&amp;gt;
    const VectorTileLayer = await $arcgis.import("@arcgis/core/layers/VectorTileLayer.js");
    const ArcGISMap = await $arcgis.import("@arcgis/core/Map.js");
    const Basemap = await $arcgis.import("@arcgis/core/Basemap.js");
    const mapElement = document.querySelector("arcgis-map");
    // create a VectorTileLayer from a style URL
    const mapBaseLayer = new VectorTileLayer({
      url: "https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/styles/arcgis/topographic",
      // set the worldview as a custom parameter
      customParameters: {
        worldview: "unitedStatesOfAmerica"
      },
    });
    const basemap = new Basemap({
      // set the VTL as the basemap layer
      baseLayers: [mapBaseLayer]
    });
    mapElement.map = new ArcGISMap({
      basemap
    });
  &amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/dPPEvgY?editors=1000" target="_blank"&gt;https://codepen.io/odoe/pen/dPPEvgY?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 15:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616055#M87174</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-05-19T15:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: basemap-gallery and arcgis-map components and USA style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616058#M87175</link>
      <description>&lt;P&gt;For your basemap gallery question, you want to create a PortalBasemapSource.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can provide a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#query" target="_blank" rel="noopener"&gt;query&lt;/A&gt; for basemaps to load.&lt;/P&gt;&lt;P&gt;This sample shows it's use.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/basemaps-portal/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/basemaps-portal/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 15:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616058#M87175</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-05-19T15:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: basemap-gallery and arcgis-map components and USA style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616633#M87181</link>
      <description>&lt;P&gt;Thanks for the input &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;,&amp;nbsp;with your suggestion I was able to figure out how to subset the basemaps in the gallery, however, with regards to the US worldmap style, now I am having the opposite problem where I can get the first map to show the US perspective, but the gallery basemaps revert to the non-US perspective.&amp;nbsp; I've posted my test application at&amp;nbsp;&lt;A href="https://github.com/VolpeUSDOT/basemap-sytle" target="_blank"&gt;https://github.com/VolpeUSDOT/basemap-sytle&lt;/A&gt;.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 19:53:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616633#M87181</guid>
      <dc:creator>GaryB</dc:creator>
      <dc:date>2025-05-20T19:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: basemap-gallery and arcgis-map components and USA style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616696#M87182</link>
      <description>&lt;P&gt;Looking at this blog post, it looks like you would need to set it up in your organization.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/announcements/esri-vector-basemaps-for-united-states" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-online/announcements/esri-vector-basemaps-for-united-states&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I haven't done this, but you might be able to go through each one and assign the region in Map Viewer.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 20:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616696#M87182</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-05-20T20:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: basemap-gallery and arcgis-map components and USA style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616715#M87183</link>
      <description>&lt;P&gt;Our organization is set up for the United States and all of our basemaps in AGOL show up the way I need them to, it just doesn't work in my custom application.&amp;nbsp; In my sample code (see GitHub link in my previous post) I iterated through the basemaps and tried&amp;nbsp;loadedBasemap.style.worldview = 'unitedStatesOfAmerica' but that didn't work either.&amp;nbsp; I'm at a bit of a loss as to what else to try.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 21:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-and-arcgis-map-components-and-usa/m-p/1616715#M87183</guid>
      <dc:creator>GaryB</dc:creator>
      <dc:date>2025-05-20T21:23:55Z</dc:date>
    </item>
  </channel>
</rss>

