<?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 Default Graphics Layer not staying on top in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/default-graphics-layer-not-staying-on-top/m-p/188058#M17440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been developing a map interface using the Javascript API 2.1. I use the dojo drag and drop with custom code to reorder the layers in the map. Each layer is from a separate service (9.3.1). There are currently a total of 37 layers (basemaps and feature layers) that can be toggled off and on and ordered. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I am experiencing is that once I reorder the feature layers, the default graphics layer (used for zoom interaction and drawing extents) sometimes displays behind some of the other feature layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to even manually reorder the default graphics layer, without success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neither of these worked:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;x = the layer id it should be to stay on top&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.reorderLayer(map.graphics,x);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.reorderLayer(map_graphics,x);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone experienced this type of issue? Are there any known work arounds? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been using Firebug to look for an undocumented method or something to refresh the map, which might reorder the layer to the top. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for viewing my issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan Scholes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Applications Programmer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Washington University&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Earth and Planetary Sciences&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jan 2011 17:18:04 GMT</pubDate>
    <dc:creator>DanielScholes</dc:creator>
    <dc:date>2011-01-13T17:18:04Z</dc:date>
    <item>
      <title>Default Graphics Layer not staying on top</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/default-graphics-layer-not-staying-on-top/m-p/188058#M17440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been developing a map interface using the Javascript API 2.1. I use the dojo drag and drop with custom code to reorder the layers in the map. Each layer is from a separate service (9.3.1). There are currently a total of 37 layers (basemaps and feature layers) that can be toggled off and on and ordered. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I am experiencing is that once I reorder the feature layers, the default graphics layer (used for zoom interaction and drawing extents) sometimes displays behind some of the other feature layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to even manually reorder the default graphics layer, without success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neither of these worked:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;x = the layer id it should be to stay on top&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.reorderLayer(map.graphics,x);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.reorderLayer(map_graphics,x);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone experienced this type of issue? Are there any known work arounds? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been using Firebug to look for an undocumented method or something to refresh the map, which might reorder the layer to the top. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for viewing my issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan Scholes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Applications Programmer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Washington University&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Earth and Planetary Sciences&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 17:18:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/default-graphics-layer-not-staying-on-top/m-p/188058#M17440</guid>
      <dc:creator>DanielScholes</dc:creator>
      <dc:date>2011-01-13T17:18:04Z</dc:date>
    </item>
  </channel>
</rss>

