<?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 Whitespace appears when we drag the map and reach the top of the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1308147#M81688</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When we drag the map&amp;nbsp; and reach the top of the map , we can see the whitespace around the map. Is there any way to solve the issue.&amp;nbsp;I have attached the screenshot and the code sample for the further reference.&lt;/P&gt;&lt;P&gt;Any suggestions would be helpful.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code sample&lt;/STRONG&gt;: &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=intro-mapview" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=intro-mapview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-07-14 at 11.35.21 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75400i12E238F216E100E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-07-14 at 11.35.21 AM.png" alt="Screenshot 2023-07-14 at 11.35.21 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 06:10:40 GMT</pubDate>
    <dc:creator>KarthikeyanShanmugam</dc:creator>
    <dc:date>2023-07-14T06:10:40Z</dc:date>
    <item>
      <title>Whitespace appears when we drag the map and reach the top of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1308147#M81688</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When we drag the map&amp;nbsp; and reach the top of the map , we can see the whitespace around the map. Is there any way to solve the issue.&amp;nbsp;I have attached the screenshot and the code sample for the further reference.&lt;/P&gt;&lt;P&gt;Any suggestions would be helpful.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code sample&lt;/STRONG&gt;: &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=intro-mapview" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=intro-mapview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-07-14 at 11.35.21 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75400i12E238F216E100E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-07-14 at 11.35.21 AM.png" alt="Screenshot 2023-07-14 at 11.35.21 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 06:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1308147#M81688</guid>
      <dc:creator>KarthikeyanShanmugam</dc:creator>
      <dc:date>2023-07-14T06:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace appears when we drag the map and reach the top of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1308182#M81691</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/679436"&gt;@KarthikeyanShanmugam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can add minZoom or minScale &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints" target="_self"&gt;constraints&lt;/A&gt; to set the minimum zoom level or scale for the map view.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/eYQVjbm" target="_blank"&gt;https://codepen.io/sagewall/pen/eYQVjbm&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      require(["esri/Map", "esri/views/MapView"], (Map, MapView) =&amp;gt; {
        const map = new Map({
          basemap: "topo-vector"
        });

        const view = new MapView({
          container: "viewDiv",
          map: map,
          zoom: 4,
          center: [15, 65], // longitude, latitude
          constraints: {
            minZoom: 3
          }
        });
      });&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Jul 2023 11:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1308182#M81691</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-07-14T11:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace appears when we drag the map and reach the top of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1308185#M81692</link>
      <description>&lt;P&gt;I just re-read the question, simply setting the minZoom constraint won't work to prevent the user from panning into the white space.&amp;nbsp; I don't think there is an out of the box way to constrain the map view to a certain extent, but I did find this older post that may help:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-mapview-to-stay-within-bounds/td-p/350982" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-mapview-to-stay-within-bounds/td-p/350982&lt;/A&gt;.&amp;nbsp; Instead of using the initial extent like that sample in the post is doing you would likely need to create an allowed &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html" target="_self"&gt;extent&lt;/A&gt; and then do something similar&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 11:42:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1308185#M81692</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-07-14T11:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace appears when we drag the map and reach the top of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1308749#M81709</link>
      <description>&lt;P&gt;Far from a perfect solution, but you could also set a CSS background color on the map container to make the edge of the map less jarring&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StacyRendall_0-1689621294235.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75555i3A53E5F30ACD6088/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StacyRendall_0-1689621294235.png" alt="StacyRendall_0-1689621294235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 19:15:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1308749#M81709</guid>
      <dc:creator>Stacy-Rendall</dc:creator>
      <dc:date>2023-07-17T19:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace appears when we drag the map and reach the top of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1309710#M81735</link>
      <description>&lt;P&gt;Try the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints" target="_self"&gt;MapView.constraints.geometry&lt;/A&gt; property.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 19:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1309710#M81735</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2023-07-19T19:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace appears when we drag the map and reach the top of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1309747#M81737</link>
      <description>&lt;P&gt;Doh... I totally missed that in the doc.&amp;nbsp; I think I was looking for "extent".&amp;nbsp; Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11373"&gt;@JohnGrayson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 20:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1309747#M81737</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2023-07-19T20:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace appears when we drag the map and reach the top of the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1314936#M81849</link>
      <description>&lt;P&gt;Thanks so much guys. Trying it out, will keep you guys posted&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 07:45:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/whitespace-appears-when-we-drag-the-map-and-reach/m-p/1314936#M81849</guid>
      <dc:creator>KarthikeyanShanmugam</dc:creator>
      <dc:date>2023-08-03T07:45:18Z</dc:date>
    </item>
  </channel>
</rss>

