<?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: JS API: reorder layers with a tiled reference layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-reorder-layers-with-a-tiled-reference-layer/m-p/759434#M70317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue here is that you're using a FeatureLayer. That inherits from a &lt;A href="https://developers.arcgis.com/javascript/jsapi/graphicslayer-amd.html"&gt;GraphicLayer&lt;/A&gt;, which is always shown on top of tiled or dynamic layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 20:33:54 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2015-07-31T20:33:54Z</dc:date>
    <item>
      <title>JS API: reorder layers with a tiled reference layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-reorder-layers-with-a-tiled-reference-layer/m-p/759433#M70316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to add a reference layer from a tiled map service to be above a polygon feature layer with the ArcGIS JavaScript API. I tried using map.reorderLayer() to change the layer order but the reference layer is still showing up below the polygons. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// Reference overlay&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;SPAN&gt;var referenceLayer = new Tiled("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://hydrology.esri.com/arcgis/rest/services/WorldHydroReferenceOverlay/MapServer" target="_blank"&gt;http://hydrology.esri.com/arcgis/rest/services/WorldHydroReferenceOverlay/MapServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;

//add the reference layer
map.addLayer(referenceLayer);

//Change layer order
map.reorderLayer(featureLayer, 0);
map.reorderLayer(referenceLayer, 1);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;A href="http://bl.ocks.org/andybell/74fb4a1de74898126fbe" title="http://bl.ocks.org/andybell/74fb4a1de74898126fbe" rel="nofollow noopener noreferrer" target="_blank"&gt;http://bl.ocks.org/andybell/74fb4a1de74898126fbe&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to force the reference overlay to be the topmost layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-reorder-layers-with-a-tiled-reference-layer/m-p/759433#M70316</guid>
      <dc:creator>AndyBell4</dc:creator>
      <dc:date>2021-12-12T08:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: JS API: reorder layers with a tiled reference layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-reorder-layers-with-a-tiled-reference-layer/m-p/759434#M70317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue here is that you're using a FeatureLayer. That inherits from a &lt;A href="https://developers.arcgis.com/javascript/jsapi/graphicslayer-amd.html"&gt;GraphicLayer&lt;/A&gt;, which is always shown on top of tiled or dynamic layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 20:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-reorder-layers-with-a-tiled-reference-layer/m-p/759434#M70317</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-07-31T20:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: JS API: reorder layers with a tiled reference layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-reorder-layers-with-a-tiled-reference-layer/m-p/759435#M70318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The issue you are seeing id that the FeatureLayer that you are adding will always draw on top of other layers that are not FeatureLayers or that inherit from GraphicsLayer. This is a known limitation of the 3.x JS API and is something that will be reworked in the 4.x JS API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 20:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-reorder-layers-with-a-tiled-reference-layer/m-p/759435#M70318</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-07-31T20:34:00Z</dc:date>
    </item>
  </channel>
</rss>

