<?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: Reorder TiledMapServiceLayer and FeatureLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735114#M68114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, I don't. I haven't figured out a way to set the reference layer as a GraphicLayer also.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 17:44:18 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2014-02-26T17:44:18Z</dc:date>
    <item>
      <title>Reorder TiledMapServiceLayer and FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735111#M68111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a fairly basic use case; I need a basemap in the background, a feature layer in the middle, and the basemap reference layer with labels on top.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For some reason, I'm having a lot of trouble implementing it.&amp;nbsp; map.reorderLayer is not working.&amp;nbsp; Adding the second parameter to map.addLayer is not working.&amp;nbsp; I'm at a loss.&amp;nbsp; I'm using Feature Services created with AGOL for my Feature Layers.&amp;nbsp; I'm guessing that reordering different types of layers is the problem.&amp;nbsp; Is there any workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See my jsFiddle for a very basic example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/DanielTrone/s8ksF/"&gt;http://jsfiddle.net/DanielTrone/s8ksF/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 15:53:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735111#M68111</guid>
      <dc:creator>DanielTrone</dc:creator>
      <dc:date>2014-02-26T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TiledMapServiceLayer and FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735112#M68112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe this issue is caused by the fact that a FeatureLayer is based on a GraphicLayer, which will always display at the top. This works correctly when using an ArcGISDynamicMapServiceLayer, according to this modification to your Fiddle: &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/s8ksF/1/"&gt;http://jsfiddle.net/s8ksF/1/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735112#M68112</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-02-26T16:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TiledMapServiceLayer and FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735113#M68113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for diagnosing the problem Ken - that graphics layers are always drawn on top (despite attempts to change that with map.reorderLayer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any workarounds that will allow me to use my FeatureLayers sandwiched between the basemap and reference layers?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735113#M68113</guid>
      <dc:creator>DanielTrone</dc:creator>
      <dc:date>2014-02-26T16:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TiledMapServiceLayer and FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735114#M68114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, I don't. I haven't figured out a way to set the reference layer as a GraphicLayer also.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735114#M68114</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-02-26T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TiledMapServiceLayer and FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735115#M68115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible to move an overlay layer above graphics layers, however it is accomplished outside of the jsapi, and requires some advanced knowledge of the dom and dojo to accomplish it. Unfortunately doing so will cause several problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an image of the map's dom node from your fiddle. As you can see graphic/feature layers exist in a dom node at the same level as overlay (dynamic, tiled, web tiled, wms, etc) layers. When you reorder layers, if it's an overlay layer it's reordered with the other overlay layers. If it's a graphic/feature layer it's reordered within the graphics dom node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31789[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use dojo (or pure js) to move an overlay above (it's reversed in the dom - top most dom node is the lowest layer) the dom node containing all the graphic/feature layers. HOWEVER, doing so will "cover up" the graphics layers and you WILL NOT be able to interact with them, such as clicking, which in necessary to show the popup for example. And if you try to reorder any layer with the api's reorderLayer() after having done so, the map will crash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully, that explains what's going on and why you shouldn't do it. As one solution to your problem, take Ken's example and simply add a click event to the map to identify, highlight (with map.graphics) and show popup using your layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735115#M68115</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2014-02-26T18:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TiledMapServiceLayer and FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735116#M68116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry to be short, but this is one (of the many) reasons we do NOT use FeatureLayers unless we absolutely have to (i.e. editing).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want layer control, use dynamic layers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735116#M68116</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-02-26T18:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TiledMapServiceLayer and FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735117#M68117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ben,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd use Ken's example, but my layer is a FeatureLayer while his example shows a ArcGISDynamicMapServiceLayer.&amp;nbsp; Is there a way to convert one to the other?&amp;nbsp; I am using AGOL rather than ArcGIS Server.&amp;nbsp; I'm guessing that ArcGISDynamicMapServiceLayer's are produced by Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Noted.&amp;nbsp; I've had trouble with Feature Layers in the past, but have gotten around most of the issues until now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:26:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735117#M68117</guid>
      <dc:creator>DanielTrone</dc:creator>
      <dc:date>2014-02-26T18:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TiledMapServiceLayer and FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735118#M68118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To use it as dynamic you would have to change the service that has been added to AGOL&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 19:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735118#M68118</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-02-26T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reorder TiledMapServiceLayer and FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735119#M68119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'd use Ken's example, but my layer is a FeatureLayer while his example shows a ArcGISDynamicMapServiceLayer.&amp;nbsp; Is there a way to convert one to the other?&amp;nbsp; I am using AGOL rather than ArcGIS Server.&amp;nbsp; I'm guessing that ArcGISDynamicMapServiceLayer's are produced by Server.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your service doesn't have a corresponding MapServer endpoint like AGS. I'm not sure how AGO works, but someone here can help you out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 20:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reorder-tiledmapservicelayer-and-featurelayer/m-p/735119#M68119</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2014-02-26T20:04:14Z</dc:date>
    </item>
  </channel>
</rss>

