<?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: Change ordering of graphics and feature layers on map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/577002#M53879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding the graphics layer to the map last (after you add all the other layers). If that doesn't fix the issue,&amp;nbsp;you could try creating a client side feature layer instead of a graphics layer. Here is a sample for creating a client side feature layer:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/benesri/pen/gOpJxpL" title="https://codepen.io/benesri/pen/gOpJxpL"&gt;https://codepen.io/benesri/pen/gOpJxpL&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2020 15:05:16 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2020-04-03T15:05:16Z</dc:date>
    <item>
      <title>Change ordering of graphics and feature layers on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/576999#M53876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;I have a map that I am adding a number of layers to dynamically.&lt;/P&gt;&lt;P&gt;These layers are MapImageLayers, GraphicsLayers and FeatureLayers - from either MapServers or FeatureServer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the GraphicsLayer, I am displaying things such as the current user location with a simple graphic, as well as other graphics that facilitate user interactions. I want these graphics to be above all other map layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the reorder method as documented here&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#reorder" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#reorder"&gt;Map | ArcGIS API for JavaScript 4.14&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I can see that when console logging the map object, the layer order is changing, but it is not actually reflected on the map. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 23:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/576999#M53876</guid>
      <dc:creator>HMobi</dc:creator>
      <dc:date>2020-04-01T23:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change ordering of graphics and feature layers on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/577000#M53877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version of the API are you using? Have you tested in 4.14?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2020 19:34:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/577000#M53877</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2020-04-02T19:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change ordering of graphics and feature layers on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/577001#M53878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;Yes. I should also add that I am using esri-loader with angular, in case that is relevant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2020 22:09:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/577001#M53878</guid>
      <dc:creator>HMobi</dc:creator>
      <dc:date>2020-04-02T22:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change ordering of graphics and feature layers on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/577002#M53879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding the graphics layer to the map last (after you add all the other layers). If that doesn't fix the issue,&amp;nbsp;you could try creating a client side feature layer instead of a graphics layer. Here is a sample for creating a client side feature layer:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/benesri/pen/gOpJxpL" title="https://codepen.io/benesri/pen/gOpJxpL"&gt;https://codepen.io/benesri/pen/gOpJxpL&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2020 15:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/577002#M53879</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2020-04-03T15:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change ordering of graphics and feature layers on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/1085320#M74114</link>
      <description>&lt;P&gt;I'm having a similar issue:&amp;nbsp; I'm adding a graphic to my map, but it is not being placed above the labels.&lt;/P&gt;&lt;P&gt;If you go to this pen:&amp;nbsp;&lt;A href="https://codepen.io/ghoti143/pen/XWRBmOL?editors=1010" target="_blank"&gt;https://codepen.io/ghoti143/pen/XWRBmOL?editors=1010&lt;/A&gt;&amp;nbsp;you can see that when clicking on the map, the black star shows up on top of everything except the numeric labels.&lt;/P&gt;&lt;P&gt;The labels are defined in a AGOL portal map.&amp;nbsp; I even tried using a client side feature layer as suggested, but to no avail.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeHaggerty_0-1627999567576.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20033iC5F2E52297DE63FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeHaggerty_0-1627999567576.png" alt="MikeHaggerty_0-1627999567576.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/1085320#M74114</guid>
      <dc:creator>MikeHaggerty</dc:creator>
      <dc:date>2021-08-03T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change ordering of graphics and feature layers on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/1239530#M79605</link>
      <description>&lt;P&gt;We're running 4.16 and we have the same issue. We are also not able to reorder local FeatureLayer above GraphicsLayer. Does anyone know if this has been fixed?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 06:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-ordering-of-graphics-and-feature-layers-on/m-p/1239530#M79605</guid>
      <dc:creator>DevServiceTitan</dc:creator>
      <dc:date>2022-12-09T06:22:30Z</dc:date>
    </item>
  </channel>
</rss>

