<?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 What does the height and width properties of a WebMap object actually do? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-height-and-width-properties-of-a/m-p/1203164#M7642</link>
    <description>&lt;P&gt;The WebMap object has a height and a width property but what do they control? What is their purpose?&lt;/P&gt;&lt;P&gt;See the height property in the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.mapping.toc.html#arcgis.mapping.WebMap.height" target="_blank" rel="noopener"&gt;API Document&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See the width property in the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.mapping.toc.html#arcgis.mapping.WebMap.width" target="_blank" rel="noopener"&gt;API Document&lt;/A&gt;.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.mapping import WebMap

## connect to AGOL
agol = GIS("home")

## get the WebMap content item
wm_item = agol.content.get("item_id")

## create as a WebMap object
webmap = WebMap(wm_item)

## print the webmap height and width properties
print(webmap.height) # prints 1
print(webmap.width) # prints 1

## update the height and width
webmap.height = 0.5
webmap.width = 0.5

## update the WebMap definition to save changes
webmap.update()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I re-access the height and width properties they are still set at 1.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.mapping import WebMap

## connect to AGOL
agol = GIS("home")

## get the WebMap content item
wm_item = agol.content.get("item_id")

## create as a WebMap object
webmap = WebMap(wm_item)

## print the webmap height and width properties
print(webmap.height) # prints 1
print(webmap.width) # prints 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any info greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 09:40:49 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2022-08-16T09:40:49Z</dc:date>
    <item>
      <title>What does the height and width properties of a WebMap object actually do?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-height-and-width-properties-of-a/m-p/1203164#M7642</link>
      <description>&lt;P&gt;The WebMap object has a height and a width property but what do they control? What is their purpose?&lt;/P&gt;&lt;P&gt;See the height property in the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.mapping.toc.html#arcgis.mapping.WebMap.height" target="_blank" rel="noopener"&gt;API Document&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See the width property in the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.mapping.toc.html#arcgis.mapping.WebMap.width" target="_blank" rel="noopener"&gt;API Document&lt;/A&gt;.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.mapping import WebMap

## connect to AGOL
agol = GIS("home")

## get the WebMap content item
wm_item = agol.content.get("item_id")

## create as a WebMap object
webmap = WebMap(wm_item)

## print the webmap height and width properties
print(webmap.height) # prints 1
print(webmap.width) # prints 1

## update the height and width
webmap.height = 0.5
webmap.width = 0.5

## update the WebMap definition to save changes
webmap.update()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I re-access the height and width properties they are still set at 1.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.mapping import WebMap

## connect to AGOL
agol = GIS("home")

## get the WebMap content item
wm_item = agol.content.get("item_id")

## create as a WebMap object
webmap = WebMap(wm_item)

## print the webmap height and width properties
print(webmap.height) # prints 1
print(webmap.width) # prints 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any info greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:40:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-height-and-width-properties-of-a/m-p/1203164#M7642</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2022-08-16T09:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: What does the height and width properties of a WebMap object actually do?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-height-and-width-properties-of-a/m-p/1405613#M9839</link>
      <description>&lt;P&gt;These have been deprecated. Not sure they were ever in use.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 09:04:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-height-and-width-properties-of-a/m-p/1405613#M9839</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-04-04T09:04:33Z</dc:date>
    </item>
  </channel>
</rss>

