<?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: SwipeWidget and Sublayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/swipewidget-and-sublayer/m-p/1191728#M77908</link>
    <description>&lt;P&gt;Hello JB19,&lt;/P&gt;&lt;P&gt;Could you solve your issue? Actually, I have the same doubt with the Swipe widget in react for&amp;nbsp;&lt;SPAN&gt;@arcgis/core&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;4.23.7 However, If you found some trick to use sublayers in Swipe despite the limitation:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There is no current support for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html" target="_blank" rel="noopener"&gt;GroupLayer&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;leadingLayers&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;trailingLayers.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;please tell me.&lt;/P&gt;&lt;P&gt;Thanks in&amp;nbsp; advance&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 23:49:15 GMT</pubDate>
    <dc:creator>angelforero</dc:creator>
    <dc:date>2022-07-12T23:49:15Z</dc:date>
    <item>
      <title>SwipeWidget and Sublayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/swipewidget-and-sublayer/m-p/1033482#M71946</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I work with Arcgis JS Api 4.18&lt;/P&gt;&lt;P&gt;I would like to use two &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html" target="_blank" rel="noopener"&gt;Sublayers&lt;/A&gt;&amp;nbsp;from a&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html" target="_blank" rel="noopener"&gt;MapImageLayer&lt;/A&gt;&amp;nbsp;in a&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-swipe/" target="_blank" rel="noopener"&gt;Swipe Widget&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;But when I try to do that, I get this error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[esri.core.Accessor] Accessor#set Assigning an instance of 'esri.layers.support.Sublayer' which is not a subclass of 'esri.layers.Layer'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand what is causing this error but I would like to know how to solve this.&lt;/P&gt;&lt;P&gt;I've tried to get the service URL from these two sublayers and to create two new MapImageLayers on the fly but I feel that's not the right way to do it.&lt;/P&gt;&lt;P&gt;Could you please tell me what would be the best way to handle this issue ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 17:13:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/swipewidget-and-sublayer/m-p/1033482#M71946</guid>
      <dc:creator>JB19</dc:creator>
      <dc:date>2021-03-05T17:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: SwipeWidget and Sublayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/swipewidget-and-sublayer/m-p/1191728#M77908</link>
      <description>&lt;P&gt;Hello JB19,&lt;/P&gt;&lt;P&gt;Could you solve your issue? Actually, I have the same doubt with the Swipe widget in react for&amp;nbsp;&lt;SPAN&gt;@arcgis/core&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;4.23.7 However, If you found some trick to use sublayers in Swipe despite the limitation:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There is no current support for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html" target="_blank" rel="noopener"&gt;GroupLayer&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;leadingLayers&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;trailingLayers.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;please tell me.&lt;/P&gt;&lt;P&gt;Thanks in&amp;nbsp; advance&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 23:49:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/swipewidget-and-sublayer/m-p/1191728#M77908</guid>
      <dc:creator>angelforero</dc:creator>
      <dc:date>2022-07-12T23:49:15Z</dc:date>
    </item>
  </channel>
</rss>

