<?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: BasemapGallery - how to limit list? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401929#M36994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use `PortalBasemapsSource#filterFunction` for this purpose. Here's an example:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/jcfranco-the-scripter/pen/LJBOJK?editors=1001" title="https://codepen.io/jcfranco-the-scripter/pen/LJBOJK?editors=1001"&gt;[BasemapGallery] Filter basemaps&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Sep 2018 20:03:35 GMT</pubDate>
    <dc:creator>Juan_CarlosFranco</dc:creator>
    <dc:date>2018-09-14T20:03:35Z</dc:date>
    <item>
      <title>BasemapGallery - how to limit list?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401925#M36990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the JavaScript API 4.8, how can I create a basemap gallery with just the Imagery and Streets basemaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I'm using to create the&amp;nbsp;&lt;SPAN&gt;basemapGallery:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;basemapGallery = new BasemapGallery({ view: view, container: document.createElement("div") });&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401925#M36990</guid>
      <dc:creator>Shane_</dc:creator>
      <dc:date>2018-09-14T13:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: BasemapGallery - how to limit list?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401926#M36991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; See this thread where I show a sample on how to remove certain basemaps.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/217248-how-do-i-remove-basemaps-from-the-default-47-basemapgallery"&gt;https://community.esri.com/thread/217248-how-do-i-remove-basemaps-from-the-default-47-basemapgallery&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401926#M36991</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-14T13:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: BasemapGallery - how to limit list?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401927#M36992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use&amp;nbsp;&lt;STRONG&gt;basemapGallery.source.basemaps.removeAt(2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;directly after I have created the basemapGallery i.e. on the line following&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;basemapGallery = new BasemapGallery&lt;/STRONG&gt;({ view: view, container: document.createElement("div") });&lt;/P&gt;&lt;P&gt;but it doesn't work. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401927#M36992</guid>
      <dc:creator>Shane_</dc:creator>
      <dc:date>2018-09-14T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: BasemapGallery - how to limit list?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401928#M36993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shane that is why in my sample code I do not try to remove it right after I create the list.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; watchUtils&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;once&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;basemapGallery&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;source&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;basemaps&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"length"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;state&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;setTimeout&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemapGallery&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;source&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;basemaps&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;removeAt&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;200&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:19:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401928#M36993</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T18:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: BasemapGallery - how to limit list?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401929#M36994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use `PortalBasemapsSource#filterFunction` for this purpose. Here's an example:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/jcfranco-the-scripter/pen/LJBOJK?editors=1001" title="https://codepen.io/jcfranco-the-scripter/pen/LJBOJK?editors=1001"&gt;[BasemapGallery] Filter basemaps&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 20:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemapgallery-how-to-limit-list/m-p/401929#M36994</guid>
      <dc:creator>Juan_CarlosFranco</dc:creator>
      <dc:date>2018-09-14T20:03:35Z</dc:date>
    </item>
  </channel>
</rss>

