<?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: Layer Reordering in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469682#M3195</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;Nope, no transparency (opacity) is required to replicate the problem at my side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2016 01:48:39 GMT</pubDate>
    <dc:creator>steelissteelis</dc:creator>
    <dc:date>2016-09-22T01:48:39Z</dc:date>
    <item>
      <title>Layer Reordering</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469678#M3191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the order of the MapView.Layers to&amp;nbsp;track the&amp;nbsp;layer order in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I realized that when I remove a layer from the MapView&amp;nbsp;then subsequently adding the layer back, the layer in the operations will eventually&amp;nbsp;become invisible. I have tried&amp;nbsp;setting the layer opacity and visibility but the layer just does not appear. Even if I add additional Graphics to test the layer, the objects in the layer just does not appear. However, I can still find the layer and all the Graphics, even the recently added but still as invisible ones, when I debug the program at&amp;nbsp;break points. Here is a section of the code that I have used for reordering of Layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(actualToPosition &amp;gt;= &lt;SPAN style="color: #0000ff;"&gt;0 &lt;/SPAN&gt;&amp;amp;&amp;amp; fromPositionLayer &lt;SPAN style="color: #000080; font-weight: bold;"&gt;instanceof &lt;/SPAN&gt;GraphicsLayer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; GraphicsLayer graphicsLayer = (GraphicsLayer) fromPositionLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mapView.removeLayer(graphicsLayer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; mapView.addLayer(graphicsLayer, actualToPosition);
}&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;P&gt;Does anyone know&amp;nbsp;if there's missing operation that I need to do for the MapView to "redraw" or "reload" a layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the other option of reassigning DrawOrder of each Graphic object in a layer instead of a remove and add but the operation seems too heavy when dealing with a heavily populated layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could also reload the layer by serializing then de-serializing but it is again a very heavy operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone have any alternatives that I am missing out at the moment, do let me know as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I realized that if I perform the 3 operations again after I pinch to zoom, the Graphics will reappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Android 6.0.1&lt;/P&gt;&lt;P&gt;Esri 10.2.8-1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469678#M3191</guid>
      <dc:creator>steelissteelis</dc:creator>
      <dc:date>2021-12-11T20:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Reordering</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469679#M3192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note for&amp;nbsp;people having the same issues,&amp;nbsp;Quartz does not have the same issue but upgrading from 10.2.8 is not a simple change in Gradle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 03:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469679#M3192</guid>
      <dc:creator>steelissteelis</dc:creator>
      <dc:date>2016-08-31T03:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Reordering</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469680#M3193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have checked that the same issue occurs in SDK version 10.2.5 which probably indicates that the issue occurred for quite a long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the issue is easy to replicate but there isn't any other with the same issue, may I know if there's any methods of reordering layer on the MapView that I should be using instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 02:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469680#M3193</guid>
      <dc:creator>steelissteelis</dc:creator>
      <dc:date>2016-09-05T02:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Reordering</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469681#M3194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do any of your layers have a transparency applied to them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 12:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469681#M3194</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-09-19T12:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Reordering</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469682#M3195</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;Nope, no transparency (opacity) is required to replicate the problem at my side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 01:48:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469682#M3195</guid>
      <dc:creator>steelissteelis</dc:creator>
      <dc:date>2016-09-22T01:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Reordering</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469683#M3196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to see this on multiple devices? &amp;nbsp;Is this occurring across multiple Android versions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 12:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/layer-reordering/m-p/469683#M3196</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-09-22T12:38:48Z</dc:date>
    </item>
  </channel>
</rss>

