<?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: Feature Layer zIndex in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-zindex/m-p/667343#M62319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, it seems they made a large oversight.&amp;nbsp; I ended up reordering the map data before I convert it to Feature Layers which solves the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2020 00:49:00 GMT</pubDate>
    <dc:creator>AndrewMurdoch1</dc:creator>
    <dc:date>2020-06-02T00:49:00Z</dc:date>
    <item>
      <title>Feature Layer zIndex</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-zindex/m-p/667341#M62317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to figure out how change the elevation / zIndex of layer at creation, assuming I have N layers, and I want 'Base' to be on the bottom, how do I go about that?&amp;nbsp; This is my layer creation code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;let &lt;/SPAN&gt;offset = &lt;SPAN style="color: #6a8759;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  if &lt;/SPAN&gt;(!data[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;].&lt;SPAN style="color: #9876aa;"&gt;attributes&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;geoLayerName&lt;/SPAN&gt;.&lt;SPAN style="color: #ffc66d;"&gt;toUpperCase&lt;/SPAN&gt;().&lt;SPAN style="color: #ffc66d;"&gt;includes&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;'BASE'&lt;/SPAN&gt;)) {
    offset = &lt;SPAN style="color: #6a8759;"&gt;'Geometry($feature).z + 10000'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;} &lt;SPAN style="color: #cc7832;"&gt;else &lt;/SPAN&gt;{
    offset = &lt;SPAN style="color: #6a8759;"&gt;'Geometry($feature).z + 10'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;}

&lt;SPAN style="color: #cc7832;"&gt;return &lt;/SPAN&gt;{
  &lt;SPAN style="color: #9876aa;"&gt;source&lt;/SPAN&gt;: data&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;renderer&lt;/SPAN&gt;: &lt;SPAN style="color: #cc7832;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #ffc66d;"&gt;buildRenderSettings&lt;/SPAN&gt;(colour&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;geometryType === &lt;SPAN style="color: #6a8759;"&gt;'point'&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;fields&lt;/SPAN&gt;: &lt;SPAN style="color: #cc7832;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;_fields&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;objectIdField&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;'ObjectID'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;geometryType&lt;/SPAN&gt;: geometryType&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;elevationInfo&lt;/SPAN&gt;: {
    &lt;SPAN style="color: #9876aa;"&gt;mode&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;'absolute-height'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;featureExpressionInfo&lt;/SPAN&gt;: {
      &lt;SPAN style="color: #9876aa;"&gt;expression&lt;/SPAN&gt;: offset
    }&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;unit&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;'meters'
&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;  &lt;/SPAN&gt;}&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;spatialReference&lt;/SPAN&gt;: {
    &lt;SPAN style="color: #9876aa;"&gt;wkid&lt;/SPAN&gt;: &lt;SPAN style="color: #6897bb;"&gt;4326
&lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;  &lt;/SPAN&gt;}
}&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm utilizing a 2D map.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-zindex/m-p/667341#M62317</guid>
      <dc:creator>AndrewMurdoch1</dc:creator>
      <dc:date>2021-12-12T04:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer zIndex</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-zindex/m-p/667342#M62318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the Help doc:(&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#elevationInfo" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#elevationInfo"&gt;FeatureLayer | ArcGIS API for JavaScript 4.15&lt;/A&gt;)&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;"This property may only be used in a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html" style="color: #0079c1; background-color: #ffffff; text-decoration: none;"&gt;SceneView&lt;/A&gt;".&amp;nbsp; Try controlling the layer order based&amp;nbsp;on the order in the Map.layers collection.&amp;nbsp; If you need to reorder the layers after they've been added you can use the 'reorder()' method of the Map (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#reorder" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#reorder"&gt;Map | ArcGIS API for JavaScript 4.15&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 00:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-zindex/m-p/667342#M62318</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2020-06-02T00:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer zIndex</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-zindex/m-p/667343#M62319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, it seems they made a large oversight.&amp;nbsp; I ended up reordering the map data before I convert it to Feature Layers which solves the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 00:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-zindex/m-p/667343#M62319</guid>
      <dc:creator>AndrewMurdoch1</dc:creator>
      <dc:date>2020-06-02T00:49:00Z</dc:date>
    </item>
  </channel>
</rss>

