<?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 how to put a ArcGISDynamicMapServiceLayer on top of a GraphicsLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-put-a-arcgisdynamicmapservicelayer-on-top/m-p/583570#M54510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - a polygon drawn in a GraphicsLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - a set of points contained in the polygon. These points are stored in a ArcGISDynamicMapServiceLayer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to display the graphicsLayer in the back and the dynamicLayer in the front. However, arcgis always displays the layers in the inverse order (graphicslayer in the front and dynamicLayer in the back).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- getDojoShape().moveToBack()&lt;/P&gt;&lt;P&gt;- map.reorderLayer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 21:04:05 GMT</pubDate>
    <dc:creator>davidzornosa</dc:creator>
    <dc:date>2015-10-27T21:04:05Z</dc:date>
    <item>
      <title>how to put a ArcGISDynamicMapServiceLayer on top of a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-put-a-arcgisdynamicmapservicelayer-on-top/m-p/583570#M54510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - a polygon drawn in a GraphicsLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - a set of points contained in the polygon. These points are stored in a ArcGISDynamicMapServiceLayer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to display the graphicsLayer in the back and the dynamicLayer in the front. However, arcgis always displays the layers in the inverse order (graphicslayer in the front and dynamicLayer in the back).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- getDojoShape().moveToBack()&lt;/P&gt;&lt;P&gt;- map.reorderLayer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 21:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-put-a-arcgisdynamicmapservicelayer-on-top/m-p/583570#M54510</guid>
      <dc:creator>davidzornosa</dc:creator>
      <dc:date>2015-10-27T21:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to put a ArcGISDynamicMapServiceLayer on top of a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-put-a-arcgisdynamicmapservicelayer-on-top/m-p/583571#M54511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This cannot be done in 3.x, but it will be possible in 4.x. A GraphicsLayer will always be in front of a Tiled or Dynamic layer. From the &lt;A href="https://developers.arcgis.com/javascript/jsapi/graphicslayer-amd.html"&gt;help&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Also, all graphics layers are always on top of &lt;A href="https://developers.arcgis.com/javascript/jsapi/tiledmapservicelayer-amd.html"&gt;TiledMapServiceLayers&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/javascript/jsapi/dynamicmapservicelayer-amd.html"&gt;DynamicMapServiceLayers&lt;/A&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way around this would be to use a FeatureLayer instead of a Dynamic Layer, since the FeatureLayer displays data via a GraphicsLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 21:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-put-a-arcgisdynamicmapservicelayer-on-top/m-p/583571#M54511</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-10-27T21:22:01Z</dc:date>
    </item>
  </channel>
</rss>

