<?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: Add Webmap into a Dashboard in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-webmap-into-a-dashboard/m-p/1314135#M8907</link>
    <description>&lt;P&gt;Hey Garett,&lt;/P&gt;&lt;P&gt;This code is trying to use an unsupported method to create a dashboard as this was the method to create a Classic Dashboard. This is highlighted under this part of the documentation -&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.apps.dashboard.html" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.apps.dashboard.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I do not believe there is a replacement for this at the moment so a web map will need to be created and a dashboard manually created from this.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 16:17:13 GMT</pubDate>
    <dc:creator>David_McRitchie</dc:creator>
    <dc:date>2023-08-01T16:17:13Z</dc:date>
    <item>
      <title>Add Webmap into a Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-webmap-into-a-dashboard/m-p/1307328#M8860</link>
      <description>&lt;P&gt;I am trying to add a WebMap object to my dashboard that I am creating:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;dashboard = Dashboard()
dashboard.title = "My Network"

indicator04 = Indicator(item = feature_layer_item, name = "KPI 1", title = "KPI 1")
indicator04.data.value_type = "statistic"
indicator04.data.value_field = "kpi1"
indicator04.height=0.1

my_webmap = WebMap()
my_webmap.add_layer(feature_layer_item, options={'title':'Links'})

dashboard.layout = add_column([indicator04, my_webmap])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error that I get is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;---------------------------------------------------------------------------
Warning                                   Traceback (most recent call last)
In  [36]:
Line 1:     dashboard.layout = add_row([add_column([indicator04, my_webmap])])

File C:\Users\MyUser1\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\apps\dashboard\_utils\_basewidget.py, in add_column:
Line 401:   elements = _auto_calculate_width(elements)

File C:\Users\MyUser1\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\apps\dashboard\_utils\_basewidget.py, in _auto_calculate_width:
Line 295:   element_width = getattr(el, "width", 1)

File C:\Users\MyUser1\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\_types.py, in width:
Line 2424:  raise Warning(

Warning: This property is no longer supported and does not operate on the resource.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, when I access my dashboard, I am getting a blank screen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried around a couple of things and the following code blocks work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# Generates a dashboard with only the indicator
dashboard.layout = add_column([indicator04])

# Yields &amp;lt;class 'arcgis.features.layer.FeatureLayer'&amp;gt;
type(feature_layer)

# Yields a WebMap with my desired layer
my_webmap&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another way for me to add the WebMap to the dashboard? There does not seem to be many directions on how to do this when creating a new dashboard at the same time.&lt;/P&gt;&lt;P&gt;Note: This error happens for&amp;nbsp;add_column([indicator04, my_webmap]) and&amp;nbsp;add_row([indicator04, my_webmap]) as well.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 16:19:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-webmap-into-a-dashboard/m-p/1307328#M8860</guid>
      <dc:creator>GarrettLee</dc:creator>
      <dc:date>2023-07-11T16:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add Webmap into a Dashboard</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-webmap-into-a-dashboard/m-p/1314135#M8907</link>
      <description>&lt;P&gt;Hey Garett,&lt;/P&gt;&lt;P&gt;This code is trying to use an unsupported method to create a dashboard as this was the method to create a Classic Dashboard. This is highlighted under this part of the documentation -&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.apps.dashboard.html" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.apps.dashboard.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I do not believe there is a replacement for this at the moment so a web map will need to be created and a dashboard manually created from this.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 16:17:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-webmap-into-a-dashboard/m-p/1314135#M8907</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2023-08-01T16:17:13Z</dc:date>
    </item>
  </channel>
</rss>

