<?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: Map View is so small in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349922#M82776</link>
    <description>&lt;P&gt;Thank. after changing the zoom level, and it is looking good now.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 20:08:07 GMT</pubDate>
    <dc:creator>DRae</dc:creator>
    <dc:date>2023-11-15T20:08:07Z</dc:date>
    <item>
      <title>Map View is so small</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349887#M82771</link>
      <description>&lt;P&gt;Hi I am new to React and ArcGIS. I tried to write some simple React web application to show the map. However the map is show so small inside the canvas. You can see the below code and attache screenshot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MY Screenshot" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86119i7D6653DB118B318F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-15 at 2.36.22 PM.png" alt="MY Screenshot" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;MY Screenshot&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;webmap&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Map&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;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gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;css&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.mapDiv&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;padding&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;margin&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;height&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;100%&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;width&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;100%&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349887#M82771</guid>
      <dc:creator>DRae</dc:creator>
      <dc:date>2023-11-15T19:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Map View is so small</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349894#M82772</link>
      <description>&lt;P&gt;Try using&lt;/P&gt;&lt;LI-CODE lang="c"&gt;.mapDiv {
  height:400px;
  width:800px;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349894#M82772</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2023-11-15T19:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Map View is so small</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349899#M82773</link>
      <description>&lt;P&gt;tried and it make is much small on my screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-15 at 2.54.22 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86124i7E69BEB6051AE020/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-15 at 2.54.22 PM.png" alt="Screenshot 2023-11-15 at 2.54.22 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349899#M82773</guid>
      <dc:creator>DRae</dc:creator>
      <dc:date>2023-11-15T19:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Map View is so small</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349916#M82774</link>
      <description>&lt;P&gt;Normally when looking at the entire world, you're going to see a small map. For example, open this &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/webmap-basic/" target="_self"&gt;sample&lt;/A&gt; and zoom out as far as you can.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mapview.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86132i765F24398DD570AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mapview.png" alt="mapview.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Set the MapView's &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom" target="_self"&gt;zoom&lt;/A&gt; property (or &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#extent" target="_self"&gt;extent&lt;/A&gt;) to a more localized view of map and it should fill up the screen.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 20:06:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349916#M82774</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-11-15T20:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Map View is so small</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349917#M82775</link>
      <description>&lt;P&gt;Your map is actually taking up the entire page, but it is very zoomed out. Try specifying a center and a zoom level, something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;mapRef.current = new MapView({
   map: webmap,
   container: "mapViewId",
   center: [-118.805, 34.027], // Longitude, latitude
   zoom: 13 // Zoom level
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/tutorials/display-a-map/#create-a-map-view" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/tutorials/display-a-map/#create-a-map-view&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 20:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349917#M82775</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-11-15T20:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Map View is so small</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349922#M82776</link>
      <description>&lt;P&gt;Thank. after changing the zoom level, and it is looking good now.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 20:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-view-is-so-small/m-p/1349922#M82776</guid>
      <dc:creator>DRae</dc:creator>
      <dc:date>2023-11-15T20:08:07Z</dc:date>
    </item>
  </channel>
</rss>

