<?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 Controlling the layers order with certain basemap types between esri 3.x and 4.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/controlling-the-layers-order-with-certain-basemap/m-p/1342412#M82579</link>
    <description>&lt;P&gt;Our implementation allows the user to configure their basemaps, and the default is "gray". We also render graphic layers with a collection of graphics and graphic layers with a collection of text symbols on top of these basemaps.&lt;/P&gt;&lt;P&gt;On esri 3.x, our graphics and text symbols would always render on top of all basemaps, including type "gray" but also other combinations of tileLayers and vectorTileLayers we might have chosen.&lt;/P&gt;&lt;P&gt;On esri 4.x, it seems like the gray basemap's reference layer is always last in map.allLayers. I am unable to change this with map.reorder, as that is only able to change the map.layers collection. Is there any way to achieve what we had in 3.x, where the graphics and textSymbols would show up on top of the reference layer?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 22:56:33 GMT</pubDate>
    <dc:creator>JacksonQiu</dc:creator>
    <dc:date>2023-10-26T22:56:33Z</dc:date>
    <item>
      <title>Controlling the layers order with certain basemap types between esri 3.x and 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/controlling-the-layers-order-with-certain-basemap/m-p/1342412#M82579</link>
      <description>&lt;P&gt;Our implementation allows the user to configure their basemaps, and the default is "gray". We also render graphic layers with a collection of graphics and graphic layers with a collection of text symbols on top of these basemaps.&lt;/P&gt;&lt;P&gt;On esri 3.x, our graphics and text symbols would always render on top of all basemaps, including type "gray" but also other combinations of tileLayers and vectorTileLayers we might have chosen.&lt;/P&gt;&lt;P&gt;On esri 4.x, it seems like the gray basemap's reference layer is always last in map.allLayers. I am unable to change this with map.reorder, as that is only able to change the map.layers collection. Is there any way to achieve what we had in 3.x, where the graphics and textSymbols would show up on top of the reference layer?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 22:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/controlling-the-layers-order-with-certain-basemap/m-p/1342412#M82579</guid>
      <dc:creator>JacksonQiu</dc:creator>
      <dc:date>2023-10-26T22:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the layers order with certain basemap types between esri 3.x and 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/controlling-the-layers-order-with-certain-basemap/m-p/1342418#M82581</link>
      <description>&lt;P&gt;In 4.x you could do this by removing the Basemap's&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#referenceLayers" target="_self"&gt;referenceLayers&lt;/A&gt;&amp;nbsp;and adding them to the collection of&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#baseLayers" target="_self"&gt;baseLayers&lt;/A&gt;&amp;nbsp;instead. Here's an example:&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/JjxYLvO?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/annefitz/pen/JjxYLvO?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 20:52:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/controlling-the-layers-order-with-certain-basemap/m-p/1342418#M82581</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-10-27T20:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the layers order with certain basemap types between esri 3.x and 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/controlling-the-layers-order-with-certain-basemap/m-p/1342848#M82594</link>
      <description>&lt;P&gt;That worked like a charm, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 17:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/controlling-the-layers-order-with-certain-basemap/m-p/1342848#M82594</guid>
      <dc:creator>JacksonQiu</dc:creator>
      <dc:date>2023-10-27T17:44:19Z</dc:date>
    </item>
  </channel>
</rss>

