<?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 Runtime SDK drawing order for services containing group layers in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1268800#M7578</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;One of my organization's clients brought our attention to a discrepancy in Web Map layer drawing order between the ArcGIS JavaScript API, and the ArcGIS Runtime SDKs for iOS and Android. This seems to occur when the Web Map contains group layers.&lt;/P&gt;&lt;P&gt;For example, here is the drawing order of a service containing group layers that we published and added to a new Web Map:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="service.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65521i785ECA63E794FE7D/image-size/small?v=v2&amp;amp;px=200" role="button" title="service.png" alt="service.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Here is how the layers are drawn in the ArcGIS Portal Web Map viewer (it looks the same in our web app that uses the JavaScript API). Notice that Parcels are drawn on top of Parks, as defined in the service:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="portal.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65523iDF085F93F0503530/image-size/large?v=v2&amp;amp;px=999" role="button" title="portal.png" alt="portal.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;However, in our iOS app that uses the ArcGIS Runtime SDK, Parks are instead drawn on top of Parcels (the same is true in our Android app). Neither app modifies layer drawing order while loading a map:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ios.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65524i40131D7F20E06D42/image-size/large?v=v2&amp;amp;px=999" role="button" title="ios.png" alt="ios.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Is this expected behavior in the ArcGIS Runtime SDKs? If so, is there any way override it?&lt;/P&gt;&lt;P&gt;Our iOS app uses version 100.14, and our Android app uses 100.15.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 22:18:57 GMT</pubDate>
    <dc:creator>greg_eam</dc:creator>
    <dc:date>2023-03-16T22:18:57Z</dc:date>
    <item>
      <title>Runtime SDK drawing order for services containing group layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1268800#M7578</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;One of my organization's clients brought our attention to a discrepancy in Web Map layer drawing order between the ArcGIS JavaScript API, and the ArcGIS Runtime SDKs for iOS and Android. This seems to occur when the Web Map contains group layers.&lt;/P&gt;&lt;P&gt;For example, here is the drawing order of a service containing group layers that we published and added to a new Web Map:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="service.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65521i785ECA63E794FE7D/image-size/small?v=v2&amp;amp;px=200" role="button" title="service.png" alt="service.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Here is how the layers are drawn in the ArcGIS Portal Web Map viewer (it looks the same in our web app that uses the JavaScript API). Notice that Parcels are drawn on top of Parks, as defined in the service:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="portal.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65523iDF085F93F0503530/image-size/large?v=v2&amp;amp;px=999" role="button" title="portal.png" alt="portal.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;However, in our iOS app that uses the ArcGIS Runtime SDK, Parks are instead drawn on top of Parcels (the same is true in our Android app). Neither app modifies layer drawing order while loading a map:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ios.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65524i40131D7F20E06D42/image-size/large?v=v2&amp;amp;px=999" role="button" title="ios.png" alt="ios.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Is this expected behavior in the ArcGIS Runtime SDKs? If so, is there any way override it?&lt;/P&gt;&lt;P&gt;Our iOS app uses version 100.14, and our Android app uses 100.15.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 22:18:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1268800#M7578</guid>
      <dc:creator>greg_eam</dc:creator>
      <dc:date>2023-03-16T22:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime SDK drawing order for services containing group layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1269644#M7579</link>
      <description>&lt;P&gt;Hi Greg. Thanks for the detailed info. Looks unexpected and could be an issue with group layers.&lt;/P&gt;&lt;P&gt;Are you able to try in ArcGIS Pro and let us know how it renders there please?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 20:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1269644#M7579</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2023-03-20T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime SDK drawing order for services containing group layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1269671#M7580</link>
      <description>&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;I just opened the map in ArcGIS Pro. Looks like it renders the same as the Portal viewer and JavaScript API:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="greg_eam_0-1679348399902.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65756iDF4A2389EF70F1F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="greg_eam_0-1679348399902.png" alt="greg_eam_0-1679348399902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 21:42:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1269671#M7580</guid>
      <dc:creator>greg_eam</dc:creator>
      <dc:date>2023-03-20T21:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime SDK drawing order for services containing group layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1269684#M7581</link>
      <description>&lt;P&gt;Thank you for checking. We'll look into it.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 22:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1269684#M7581</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2023-03-20T22:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime SDK drawing order for services containing group layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1278014#M7604</link>
      <description>&lt;P&gt;After messaging with Nick, and further investigation on my end, I have determined the cause of my issue.&lt;/P&gt;&lt;P&gt;Part of my app's loading process for a map involves setting the opacity for each layer based on saved values. It turns out that setting the opacity property on any AGSArcGISMapImageSublayer object&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_arc_g_i_s_map_image_sublayer.html#a2d13936049a53d3024577576659bacdd" target="_blank" rel="noopener"&gt;(docs here&lt;/A&gt;) in my map is triggering the Runtime SDK to redraw the layers.&lt;/P&gt;&lt;P&gt;It's uncertain whether or not this is a bug in the Runtime SDK, but the SDK team is going to look into it. I was able to work around my issue by adding conditions for setting each layer's opacity during map load, instead of setting it automatically.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 21:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/runtime-sdk-drawing-order-for-services-containing/m-p/1278014#M7604</guid>
      <dc:creator>greg_eam</dc:creator>
      <dc:date>2023-04-12T21:06:05Z</dc:date>
    </item>
  </channel>
</rss>

