<?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 Map sizing and resizing issues in beta in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-sizing-and-resizing-issues-in-beta/m-p/156220#M14552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the 4.0 beta api (this happens in beta 3 as well as 2), I cannot always get the map to fill its container.&amp;nbsp; I end up with an odd inner map with lots of padding around it.&amp;nbsp; Sometimes it will work fine and fill the entire container (mostly), notice it does not fill the area under the zoom and compass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var map = new Map({
 basemap: "streets"
});
var view = new MapView({
 container: divid,
 map: map,
 width: "auto"
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a wide/short map.&amp;nbsp; When the default base map is loaded it looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-12-22_0955.png" class="image-4 jive-image" src="https://community.esri.com/legacyfs/online/159596_2015-12-22_0955.png" style="width: 620px; height: 204px;" /&gt;&lt;/P&gt;&lt;P&gt;I can zoom in manually and it sort of starts to fill the container&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-12-22_0927.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/159591_2015-12-22_0927.png" style="width: 620px; height: 160px;" /&gt;&lt;/P&gt;&lt;P&gt;But, if (from the default extent...first image), I add some graphics and .animateTo the graphics, it ends up like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-12-22_0925.png" class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/159597_2015-12-22_0925.png" style="width: 620px; height: 151px;" /&gt;&lt;/P&gt;&lt;P&gt;I can always get the map back to filling the container by ctl right clicking and rotating the map 90 degrees like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-12-22_0924.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/159590_2015-12-22_0924.png" style="width: 620px; height: 155px;" /&gt;&lt;/P&gt;&lt;P&gt;Is there something I am missing?&amp;nbsp; Any ideas for how can I get this map to fill its container?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:17:49 GMT</pubDate>
    <dc:creator>NicoleSchmidt</dc:creator>
    <dc:date>2021-12-11T08:17:49Z</dc:date>
    <item>
      <title>Map sizing and resizing issues in beta</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-sizing-and-resizing-issues-in-beta/m-p/156220#M14552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the 4.0 beta api (this happens in beta 3 as well as 2), I cannot always get the map to fill its container.&amp;nbsp; I end up with an odd inner map with lots of padding around it.&amp;nbsp; Sometimes it will work fine and fill the entire container (mostly), notice it does not fill the area under the zoom and compass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var map = new Map({
 basemap: "streets"
});
var view = new MapView({
 container: divid,
 map: map,
 width: "auto"
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a wide/short map.&amp;nbsp; When the default base map is loaded it looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-12-22_0955.png" class="image-4 jive-image" src="https://community.esri.com/legacyfs/online/159596_2015-12-22_0955.png" style="width: 620px; height: 204px;" /&gt;&lt;/P&gt;&lt;P&gt;I can zoom in manually and it sort of starts to fill the container&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-12-22_0927.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/159591_2015-12-22_0927.png" style="width: 620px; height: 160px;" /&gt;&lt;/P&gt;&lt;P&gt;But, if (from the default extent...first image), I add some graphics and .animateTo the graphics, it ends up like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-12-22_0925.png" class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/159597_2015-12-22_0925.png" style="width: 620px; height: 151px;" /&gt;&lt;/P&gt;&lt;P&gt;I can always get the map back to filling the container by ctl right clicking and rotating the map 90 degrees like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-12-22_0924.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/159590_2015-12-22_0924.png" style="width: 620px; height: 155px;" /&gt;&lt;/P&gt;&lt;P&gt;Is there something I am missing?&amp;nbsp; Any ideas for how can I get this map to fill its container?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-sizing-and-resizing-issues-in-beta/m-p/156220#M14552</guid>
      <dc:creator>NicoleSchmidt</dc:creator>
      <dc:date>2021-12-11T08:17:49Z</dc:date>
    </item>
  </channel>
</rss>

