<?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 Is there any way of reordering between graphic layer &amp;amp;amp; normal map layers? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699243#M65119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want put the Annotation layer(DynamicMapService) on top of Graphics layers(rendered), I couldn't&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;find any function to do that. By default graphic layer are on top of map layers.I have tried using the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.reorder() :only works for map layers and graphics.movetoback/front():only works for graphics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So there is no connection between these two.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyone who have had that problem, please help me out if you have solved it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 18:49:59 GMT</pubDate>
    <dc:creator>prashantpal</dc:creator>
    <dc:date>2013-01-15T18:49:59Z</dc:date>
    <item>
      <title>Is there any way of reordering between graphic layer &amp;amp; normal map layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699243#M65119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want put the Annotation layer(DynamicMapService) on top of Graphics layers(rendered), I couldn't&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;find any function to do that. By default graphic layer are on top of map layers.I have tried using the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.reorder() :only works for map layers and graphics.movetoback/front():only works for graphics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So there is no connection between these two.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyone who have had that problem, please help me out if you have solved it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 18:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699243#M65119</guid>
      <dc:creator>prashantpal</dc:creator>
      <dc:date>2013-01-15T18:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way of reordering between graphic layer &amp; normal map layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699244#M65120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I can't tell you how to solve it but I can tell you that I ran up against the same thing and gave up on it. From what I remember, after reads the docs and forums, I believe I decided it wasn't possible; but, perhaps someone who knows more about it can comment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm certainly interested in the answer as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 19:46:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699244#M65120</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2013-01-15T19:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way of reordering between graphic layer &amp; normal map layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699245#M65121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;graphics layers always draw on top of both dynamic and tiled map service layers (see the following thread for more info)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.stackexchange.com/questions/20429/arcgis-javascript-api-a-way-to-position-dynamic-service-layer-on-top-of-graphic"&gt;http://gis.stackexchange.com/questions/20429/arcgis-javascript-api-a-way-to-position-dynamic-service-layer-on-top-of-graphic&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm not exactly sure what your use case is, but in some situations it makes sense to use a dynamic map service to display the same content and either work with a feature layer in selection mode or build spatial queries dynamically based on map interaction.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 21:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699245#M65121</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-01-15T21:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way of reordering between graphic layer &amp; normal map layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699246#M65122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This method may be helpful to you.&amp;nbsp; Index determines which layer will go on top.&amp;nbsp; Layers with lower index numbers will be on the bottom.&amp;nbsp; Layers with higher numbers will go on the top.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.addLayer(layer, index?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also here is a reorder layer sample.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/layers_dynamic_reorder"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/layers_dynamic_reorder&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 23:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699246#M65122</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-01-15T23:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way of reordering between graphic layer &amp; normal map layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699247#M65123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot for your replies. I will work on it and see if I can get somewhere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 17:16:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699247#M65123</guid>
      <dc:creator>prashantpal</dc:creator>
      <dc:date>2013-01-16T17:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way of reordering between graphic layer &amp; normal map layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699248#M65124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Although it was a while ago, I'm pretty sure I tried using the addLayer with an index (as suggested above) and found that the index value provided was used in relation to which array list the layer was included in. It didn't allow me to intermingle mapping service layers with feature layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is, if I have 3 MapServiceLayers and 2 FeatureLayers, there are two arrays that are maintained in the map: layerIds and graphicsLayerIds. layerIds contains the list and order of the MapServiceLayers and graphicsLayerIds contains the list and order of the FeatureLayers. So, if the layer in the addLayer call is a MapServiceLayer, the index provided will position the layer within the layerIds array; and, if the layer is a FeatureLayer, the index provided will position the layer within the graphicsLayerIds. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;During rendering, the layers listed in the layerIds array are always displayed as ordered before those found in the graphicsLayerIds are displayed on top of them, also as ordered. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, it's been a while so I might not be remembering this correctly; so, I apologize if my addition to this conversation is misleading or incorrect. Just trying to save you some time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said all that, the suggestion to include what is currently a MapServiceLayer as a FeatureLayer instead might be workable for my particular application to allow for the desired re-ordering functionality. Really, it just depends on what other functionality I need to do with that layer and, off the top of my head, I don't remember ... but will certainly be revisiting it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 18:34:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-of-reordering-between-graphic/m-p/699248#M65124</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2013-01-16T18:34:38Z</dc:date>
    </item>
  </channel>
</rss>

