<?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 component bugs !! automatically disabled if you move tag outside of map tag in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625763#M87275</link>
    <description>&lt;P&gt;Here is how to use reference element,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/" target="_self"&gt;https://developers.arcgis.com/javascript/latest/programming-patterns/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hp_1134.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134828iA0C8A672307614B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hp_1134.png" alt="hp_1134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;warning:&amp;nbsp; when you use reference element in html tag, you must use exact word "reference-element"&lt;/P&gt;&lt;P&gt;when you use reference element in javascript, must use exact word "referenceElement"&lt;/P&gt;&lt;P&gt;They are not interchangable, otherwise, will not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on this theory, I correct the online sample as following&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=basemap-gallery" target="_self"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=basemap-gallery&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hp_1135.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134831i6288AAC27DDC374D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hp_1135.png" alt="hp_1135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 23 Jun 2025 15:50:38 GMT</pubDate>
    <dc:creator>hoogw</dc:creator>
    <dc:date>2025-06-23T15:50:38Z</dc:date>
    <item>
      <title>basemap gallery component bugs !! automatically disabled if you move tag outside of map tag</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625523#M87270</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is sample code,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=basemap-gallery" target="_self"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=basemap-gallery&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you move&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;lt;arcgis-basemap-gallery position="top-right"&amp;gt;&amp;lt;/arcgis-basemap-gallery&amp;gt;&lt;/P&gt;&lt;P&gt;outside of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/arcgis-map&amp;gt;&lt;/P&gt;&lt;P&gt;tag,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;base map gallery will be disabled automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;see my screen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hoogw_0-1750462085693.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134771iE8F2DA75AD564BE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hoogw_0-1750462085693.png" alt="hoogw_0-1750462085693.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;even in js, I set&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;querySelector&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"arcgis-basemap-gallery"&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;disabled&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;false&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Still not working, still disabled.&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 23:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625523#M87270</guid>
      <dc:creator>hoogw</dc:creator>
      <dc:date>2025-06-20T23:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: basemap gallery component bugs !! automatically disabled if you move tag outside of map tag</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625524#M87271</link>
      <description>&lt;P&gt;the sample works fine, is because&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;lt;arcgis-basemap-gallery position="top-right"&amp;gt;&amp;lt;/arcgis-basemap-gallery&amp;gt;&lt;/P&gt;&lt;P&gt;is inside of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/arcgis-map&amp;gt;&lt;/P&gt;&lt;P&gt;tag,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 23:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625524#M87271</guid>
      <dc:creator>hoogw</dc:creator>
      <dc:date>2025-06-20T23:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: basemap gallery component bugs !! automatically disabled if you move tag outside of map tag</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625526#M87272</link>
      <description>&lt;P&gt;When working with the map-components, if a component is not a child of a map or scene component, you can use a &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-basemap-gallery/#referenceElement" target="_blank" rel="noopener"&gt;"reference-element"&lt;/A&gt; attribute to associate them.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component" target="_blank" rel="noopener"&gt;Associate components with a Map or Scene component&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component" target="_blank" rel="noopener"&gt;Create a mapping app&lt;/A&gt; (tutorial that uses reference-element)&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://youtube.com/shorts/kc3GjxklK9A" target="_blank" rel="noopener"&gt;12 Days of Map Components Day 1&lt;/A&gt; (yt short on reference-element)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 21 Jun 2025 00:47:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625526#M87272</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-06-21T00:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: basemap gallery component bugs !! automatically disabled if you move tag outside of map tag</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625748#M87274</link>
      <description>&lt;P&gt;based on your advice, I test it like this, it does not work. Unless I did it not the way you means. Please use this online sample as test, explain what you exactly means, how to use reference element?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=basemap-gallery" target="_self"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=basemap-gallery&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hoogw_0-1750692399478.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134820i3593390FCB8C7B72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hoogw_0-1750692399478.png" alt="hoogw_0-1750692399478.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 15:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625748#M87274</guid>
      <dc:creator>hoogw</dc:creator>
      <dc:date>2025-06-23T15:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: basemap gallery component bugs !! automatically disabled if you move tag outside of map tag</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625763#M87275</link>
      <description>&lt;P&gt;Here is how to use reference element,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/" target="_self"&gt;https://developers.arcgis.com/javascript/latest/programming-patterns/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hp_1134.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134828iA0C8A672307614B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hp_1134.png" alt="hp_1134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;warning:&amp;nbsp; when you use reference element in html tag, you must use exact word "reference-element"&lt;/P&gt;&lt;P&gt;when you use reference element in javascript, must use exact word "referenceElement"&lt;/P&gt;&lt;P&gt;They are not interchangable, otherwise, will not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on this theory, I correct the online sample as following&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=basemap-gallery" target="_self"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=basemap-gallery&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hp_1135.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134831i6288AAC27DDC374D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hp_1135.png" alt="hp_1135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 15:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625763#M87275</guid>
      <dc:creator>hoogw</dc:creator>
      <dc:date>2025-06-23T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: basemap gallery component bugs !! automatically disabled if you move tag outside of map tag</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625786#M87276</link>
      <description>&lt;P&gt;"reference-element" is the attribute name, only to be used declaratively.&lt;/P&gt;&lt;P&gt;"referenceElement" is the property name, which be accessed via "element.referenceElement". It would also be used in jsx syntax for various UI libraries.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/#attributes-and-properties" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/programming-patterns/#attributes-and-properties&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 16:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-gallery-component-bugs-automatically/m-p/1625786#M87276</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-06-23T16:11:43Z</dc:date>
    </item>
  </channel>
</rss>

