<?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 map.graphicLayerIds and map.layerIds in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74421#M6754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please correct me if I'm wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume gLayer is a graphic layer and flayer is a feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I call map.reorderLayer(gLayer, 0), I will only be reordering the map.graphicLayerIds collection where 0 is the going to appear under any other graphic layer.&lt;/P&gt;&lt;P&gt;If I call map.reorderLayer(fLayer, 1), I will be reordering all other layers where 1 will be just on top of the basemap but appear under all other layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to reorder all layers at once? It appears that graphic layers will always appear on top of other layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to send a specific layer all the way to the front (appear on top of everything)? If 0 is the basemap, and 1 is the first layer added... how can I reorder a layer to be set to the front if don't know how many total layers there are? I know how many graphic layers, and I know how many other layers there are. Ideally, if I have 5 layers on the map (including the basemap), I would want to call map.reorderLayer(fLayer, 4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't found a good way to manage the appearance order of all graphics. Must I order graphic layers and all other layers separately?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2016 20:12:44 GMT</pubDate>
    <dc:creator>TyroneBiggums</dc:creator>
    <dc:date>2016-01-29T20:12:44Z</dc:date>
    <item>
      <title>map.graphicLayerIds and map.layerIds</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74421#M6754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please correct me if I'm wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume gLayer is a graphic layer and flayer is a feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I call map.reorderLayer(gLayer, 0), I will only be reordering the map.graphicLayerIds collection where 0 is the going to appear under any other graphic layer.&lt;/P&gt;&lt;P&gt;If I call map.reorderLayer(fLayer, 1), I will be reordering all other layers where 1 will be just on top of the basemap but appear under all other layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to reorder all layers at once? It appears that graphic layers will always appear on top of other layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to send a specific layer all the way to the front (appear on top of everything)? If 0 is the basemap, and 1 is the first layer added... how can I reorder a layer to be set to the front if don't know how many total layers there are? I know how many graphic layers, and I know how many other layers there are. Ideally, if I have 5 layers on the map (including the basemap), I would want to call map.reorderLayer(fLayer, 4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't found a good way to manage the appearance order of all graphics. Must I order graphic layers and all other layers separately?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 20:12:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74421#M6754</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2016-01-29T20:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: map.graphicLayerIds and map.layerIds</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74422#M6755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I want to have a layer draw on top, I've used:&lt;/P&gt;&lt;P&gt;var numLayers = map.layerIds.length -1&lt;/P&gt;&lt;P&gt;map.reorderLayer(myLayer, numLayers);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like you ought to be able to find the number of graphicsLayers, adding it numLayers to make a sum total, then reorder the layer to be at the very top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested this, though.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 20:24:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74422#M6755</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2016-01-29T20:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: map.graphicLayerIds and map.layerIds</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74423#M6756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was partially wrong in my explanation. FeatureLayers are graphic layers, aren't they? Or, they at least show up as graphicLayerIds? These can be reordered with graphicLayerIds from a draw tool (assuming you put them in a layer). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that you cannot hide a graphic layer under another layer type. You can reorder all day long to max-1 but the graphic layers will always be on top. That's the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 20:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74423#M6756</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2016-02-04T20:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: map.graphicLayerIds and map.layerIds</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74424#M6757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is something that is changed in 4.x API&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 20:12:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74424#M6757</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-02-04T20:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: map.graphicLayerIds and map.layerIds</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74425#M6758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know.&lt;/P&gt;&lt;P&gt;But I'm in 3.14, soon to be 3.15.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 20:16:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-graphiclayerids-and-map-layerids/m-p/74425#M6758</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2016-02-04T20:16:54Z</dc:date>
    </item>
  </channel>
</rss>

