<?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: How to add a layer to JimuMapView in custom widget with corresponding Data Source in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-add-a-layer-to-jimumapview-in-custom-widget/m-p/1123944#M3312</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Alejandro,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What other functionalities do you need besides adding the layer to the map? I've used the&amp;nbsp;&lt;SPAN&gt;JimuLayerViews to identify all layers in my map and use those results to toggle the visibility of the layer I wanted. I have tried to use the same method as you did however, I don't get the results I'm looking for. If you're interested in how I did this I'll post it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 18:12:34 GMT</pubDate>
    <dc:creator>JessicaRamirez1</dc:creator>
    <dc:date>2021-12-08T18:12:34Z</dc:date>
    <item>
      <title>How to add a layer to JimuMapView in custom widget with corresponding Data Source</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-add-a-layer-to-jimumapview-in-custom-widget/m-p/1123185#M3292</link>
      <description>&lt;P&gt;Hello! I'm trying to dynamically add layers to my map in a custom ExB Widget (1.5).&lt;/P&gt;&lt;P&gt;I've followed this to add layers:&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/sample-code/widgets/add-layers/" target="_blank"&gt;https://developers.arcgis.com/experience-builder/sample-code/widgets/add-layers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That works in adding the layer to the map, but that's it. The layer doesn't have an associated JimuLayerView created in the JimuMapView, and also no associated data source.&lt;/P&gt;&lt;P&gt;I found I can call the method&amp;nbsp;createJimuLayerViews() on the JimuMapView, and this creates the JimuLayerView, however, there is still no data source.&lt;/P&gt;&lt;P&gt;If I try to call getLayerDataSource() on the recently create JimuLayerView, it comes back undefined.&lt;/P&gt;&lt;P&gt;Any thoughts/ideas?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 22:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-add-a-layer-to-jimumapview-in-custom-widget/m-p/1123185#M3292</guid>
      <dc:creator>AlejandroMari1</dc:creator>
      <dc:date>2021-12-06T22:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a layer to JimuMapView in custom widget with corresponding Data Source</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-add-a-layer-to-jimumapview-in-custom-widget/m-p/1123944#M3312</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Alejandro,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What other functionalities do you need besides adding the layer to the map? I've used the&amp;nbsp;&lt;SPAN&gt;JimuLayerViews to identify all layers in my map and use those results to toggle the visibility of the layer I wanted. I have tried to use the same method as you did however, I don't get the results I'm looking for. If you're interested in how I did this I'll post it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 18:12:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-add-a-layer-to-jimumapview-in-custom-widget/m-p/1123944#M3312</guid>
      <dc:creator>JessicaRamirez1</dc:creator>
      <dc:date>2021-12-08T18:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a layer to JimuMapView in custom widget with corresponding Data Source</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-add-a-layer-to-jimumapview-in-custom-widget/m-p/1124098#M3315</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/238582"&gt;@JessicaRamirez1&lt;/a&gt;&amp;nbsp;. I need to add new layers to the map on the fly. And I need those layers to have proper data source (like all others in the web map) so I can manage selection.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 23:27:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-add-a-layer-to-jimumapview-in-custom-widget/m-p/1124098#M3315</guid>
      <dc:creator>AlejandroMari1</dc:creator>
      <dc:date>2021-12-08T23:27:54Z</dc:date>
    </item>
  </channel>
</rss>

