<?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: thumbnails for a basemap toggle in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1587174#M86540</link>
    <description>&lt;P&gt;Couple more things to try:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Take the ?f=json off the end of the url.&lt;/LI&gt;&lt;LI&gt;Try targeting&amp;nbsp;.esri-basemap-toggle__image​--secondary instead.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 19:59:28 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2025-02-19T19:59:28Z</dc:date>
    <item>
      <title>thumbnails for a basemap toggle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1586688#M86534</link>
      <description>&lt;P&gt;I'm working on a JS Map. I have a webmap, and a basemap toggle added to my 'view'. My webmap uses Community basemap and another basemap that I included in the toggle is 'Hight contrast' basemap. The issue I have is that when I toggle between the basemaps, there is no thumbnail for my Community basemap. And I'm not sure how to add the thumbnail image, since the basemap comes from the webmap?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NataliyaLys_0-1739917393219.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125713iEDE2C5A50A71A3C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NataliyaLys_0-1739917393219.png" alt="NataliyaLys_0-1739917393219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;const webmap = new WebMap({&lt;BR /&gt;portalItem: {&lt;BR /&gt;id: "74b1c8a79d8b4a328ebc625e1d91****",&lt;BR /&gt;portal: {&lt;BR /&gt;url: "https://*****.org/portal"&amp;nbsp;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// Create the map view&lt;BR /&gt;const view = new MapView({&lt;BR /&gt;map: webmap,&lt;BR /&gt;container: "viewDiv",&lt;BR /&gt;zoom: 11,&lt;BR /&gt;ariaLabel: "Interactive map to search an address and find Commissioner contact information"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const basemapToggle = new BasemapToggle({&lt;BR /&gt;view: view,&lt;BR /&gt;nextBasemap: new Basemap({&lt;BR /&gt;portalItem: new PortalItem({&lt;BR /&gt;id: "084291b0ecad4588b8c8853898d7****"&lt;BR /&gt;})&lt;BR /&gt;}),&lt;BR /&gt;widgetConfig: {&lt;BR /&gt;label: "Toggle basemap",&lt;BR /&gt;ariaLabel: "Switch between basemaps"&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;view.ui.add(basemapToggle, "bottom-left");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 22:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1586688#M86534</guid>
      <dc:creator>NataliyaLys</dc:creator>
      <dc:date>2025-02-18T22:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: thumbnails for a basemap toggle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1586900#M86536</link>
      <description>&lt;P&gt;I've encountered this issue before with a different basemap and fixed it through CSS.&lt;/P&gt;&lt;LI-CODE lang="css"&gt;//This should replace the broken image with the Community basemap image.
.esri-basemap-toggle__image {
    background-image: url("https://www.arcgis.com/sharing/rest/content/items/184f5b81589844699ca1e132d007920e/info/thumbnail/thumbnail1659479749621.png?f=json");
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Feb 2025 13:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1586900#M86536</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-02-19T13:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: thumbnails for a basemap toggle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1587169#M86539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;&amp;nbsp;thank you for the suggestion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your solution, but it still would not work. I see the other thumbnail for the High Contrast Basemap in the dev console, it's loading automatically. But the one that I added in CSS for the Community Basemap is not showing up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you have any other ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NataliyaLys_1-1739994033156.png" style="width: 463px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125827i9C2D376EA72250E9/image-dimensions/463x457?v=v2" width="463" height="457" role="button" title="NataliyaLys_1-1739994033156.png" alt="NataliyaLys_1-1739994033156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NataliyaLys_0-1739993892701.png" style="width: 758px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125826iF19F13E6785BCD4B/image-dimensions/758x125?v=v2" width="758" height="125" role="button" title="NataliyaLys_0-1739993892701.png" alt="NataliyaLys_0-1739993892701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 19:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1587169#M86539</guid>
      <dc:creator>NataliyaLys</dc:creator>
      <dc:date>2025-02-19T19:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: thumbnails for a basemap toggle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1587174#M86540</link>
      <description>&lt;P&gt;Couple more things to try:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Take the ?f=json off the end of the url.&lt;/LI&gt;&lt;LI&gt;Try targeting&amp;nbsp;.esri-basemap-toggle__image​--secondary instead.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 19:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1587174#M86540</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-02-19T19:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: thumbnails for a basemap toggle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1587207#M86541</link>
      <description>&lt;P&gt;I tried different combinations of these two options, still no dice&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":persevering_face:"&gt;😣&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Take the ?f=json off the end of the url.&lt;/LI&gt;&lt;LI&gt;Try targeting&amp;nbsp;.esri-basemap-toggle__image​--secondary instead.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 19 Feb 2025 20:36:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1587207#M86541</guid>
      <dc:creator>NataliyaLys</dc:creator>
      <dc:date>2025-02-19T20:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: thumbnails for a basemap toggle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1587649#M86546</link>
      <description>&lt;P&gt;I got the thumbnail icon to work. For whatever reason it would not work with the Community basemap. But when I used a Topo basemap, it worked. I had to list the basemap update my webmap. I'm not sure if this is the best way to handle this, but it works.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;const webmap = new WebMap({&lt;BR /&gt;basemap: "topo",&lt;BR /&gt;portalItem: {&lt;BR /&gt;id: "74b1c8a79d8b4a328ebc625e1d91****",&lt;BR /&gt;portal: {&lt;BR /&gt;url: "https://****.org/portal"&amp;nbsp;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 20:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/thumbnails-for-a-basemap-toggle/m-p/1587649#M86546</guid>
      <dc:creator>NataliyaLys</dc:creator>
      <dc:date>2025-02-20T20:16:53Z</dc:date>
    </item>
  </channel>
</rss>

