<?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: JS API 4.18 - Map height increasing non stop in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039351#M72158</link>
    <description>&lt;P&gt;There are a lot of things I'm unsure of in this sample.&amp;nbsp; I've included some code below that works, but I've left out the proxy (I don't need it) and the geometry service (you don't need it in this sample piece so not sure why it's there).&amp;nbsp; Also, you can set the initial zoom location and scale through the view initialization, not sure why you have a secondary extent and resolution.&amp;nbsp; I left those out and just relied on the initial View zoom.&amp;nbsp; Also, the coordinates and map projection may not be correct, unless you are looking at the west coast of Africa (usually the first sign you're not).&amp;nbsp; I'm sure there's a lot more to this than what you're showing but this would work (with a good projection) using the code you have provided so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;title&amp;gt;Testing&amp;lt;/title&amp;gt;

    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.18/esri/themes/dark-blue/main.css"&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.18/"&amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;style&amp;gt;
        html,
        body,
        #mapMatriCAD {
            padding: 0;
            margin: 0;
            height: 100%;
            width: 100%;
        }
    &amp;lt;/style&amp;gt;

    &amp;lt;script&amp;gt;
        require([
            "esri/Map",
            "esri/layers/FeatureLayer",
            "esri/layers/GraphicsLayer",
            "esri/views/MapView",
            "esri/geometry/Extent",
            "esri/widgets/BasemapToggle"

        ], function (Map, FeatureLayer, GraphicsLayer, MapView, Extent, BasemapToggle
        ) {

            // Create the Map
            const matricadMap = new Map({
                basemap: "topo-vector"
            });

            // Set map extent
            const matricadMapExtent = new Extent({
                xmin: 145998.0719999969,
                ymin: 162020.52899999917,
                xmax: 152430.14699999988,
                ymax: 167383.29899999872,
                spatialReference: {
                    wkid: 31370
                }
            });

            // Create a MapView instance (for 2D viewing) and reference the map instance
            const matricadMapView = new MapView({
                container: "mapMatriCAD",
                map: matricadMap,
                center: matricadMapExtent.center,
                zoom: 9,
                highlightOptions: {
                    color: "orange"
                }
            });

            // Carbon storage of trees in Warren Wilson College.
            var featureLayer = new FeatureLayer({
                url: "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0"
            });

            matricadMap.add(featureLayer);

            // Toggle backgrounds layers
            const basemapToggle = new BasemapToggle({
                view: matricadMapView,
                nextBasemap: "hybrid"
            });

            matricadMapView.when(function () {
                /* Set ArcGIS Server proxy URL */
                //esriConfig.request.proxyUrl = proxyiedUrl;
                /* Set ArcGIS GeometryService URL */
                //esriConfig.geometryServiceUrl = 'https://&amp;lt;my-geometry-service&amp;gt;';

                //matricadMapView.extent = matricadMapExtent;

                // Set initial zoom
                //matricadMapView.constraints = {
                //    minScale: 25000
                //};

                // Get graphic properties from view click
                matricadMapView.on('click', function (event) {
                    matricadMapView.hitTest(event).then(function (response) {
                        if (response.results.length) {
                            console.log(response);
                        }
                    });
                });
            });

        });
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div id="mapMatriCAD"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 22 Mar 2021 16:03:30 GMT</pubDate>
    <dc:creator>JeffreyWilkerson</dc:creator>
    <dc:date>2021-03-22T16:03:30Z</dc:date>
    <item>
      <title>JS API 4.18 - Map height increasing non stop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039223#M72146</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm facing a weird issue wich was already existing in js api 3.x : When the app start, the map loads and the inner canvas heigth start to increase non stop (see attachment).&amp;nbsp;Looks like I'm animating an elevator ...&lt;/P&gt;&lt;P&gt;In js api 3.x, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/250370"&gt;@RobErt&lt;/a&gt; Scheitlin&amp;nbsp;solves the problem suggesting to set "autoResize" property to false.&lt;/P&gt;&lt;P&gt;In js api 4.x, I don't see any equivalent property.&amp;nbsp;It's the first time I encounter such a problem, dunno how to solve this issue&lt;/P&gt;&lt;P&gt;Here is the code :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;U&gt;In HTML file&lt;/U&gt; :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;lt;div id="mapMatriCAD"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;In JS file&lt;/U&gt; :&lt;/P&gt;&lt;P&gt;// Create a Map instance&lt;BR /&gt;const matricadMap = new Map({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; basemap: colorBasemap&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// Create a MapView instance (for 2D viewing) and reference the map instance&lt;BR /&gt;const matricadMapView = new MapView({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; container: "mapMatriCAD",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; map: matricadMap,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; highlightOptions: {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; color: "orange"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// Toggle backgrounds layers&lt;BR /&gt;const basemapToggle = new BasemapToggle({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; view: matricadMapView,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; nextBasemap: aerophotoBasemap&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;ready(function () {&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;/* Set ArcGIS Server proxy URL */&lt;BR /&gt;esriConfig.request.proxyUrl = proxyiedUrl;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;/* Set ArcGIS GeometryService URL */&lt;BR /&gt;esriConfig.geometryServiceUrl = 'https://&amp;lt;my-geometry-service&amp;gt;';&lt;BR /&gt;&lt;BR /&gt;// Set map extent&lt;BR /&gt;const matricadMapExtent = new Extent({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; xmin: 145998.0719999969,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ymin: 162020.52899999917,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; xmax: 152430.14699999988,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ymax: 167383.29899999872,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; spatialReference: {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wkid: 31370&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;});&lt;BR /&gt;matricadMapView.extent = matricadMapExtent;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;// Set initial zoom&lt;BR /&gt;matricadMapView.constraints = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; minScale: 25000&lt;BR /&gt;};&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;// Get graphic properties from view click&lt;BR /&gt;matricadMapView.on('click', function (event) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; matricadMapView.hitTest(event).then(function (response) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (response.results.length) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; debugger;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; });&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;});&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 10:43:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039223#M72146</guid>
      <dc:creator>PierreLarondelle</dc:creator>
      <dc:date>2021-03-22T10:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.18 - Map height increasing non stop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039343#M72157</link>
      <description>&lt;P&gt;I usually see this happen when you don't have the CSS for the API added to your page, can you verify your CSS version matches the API version.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 15:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039343#M72157</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-03-22T15:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.18 - Map height increasing non stop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039351#M72158</link>
      <description>&lt;P&gt;There are a lot of things I'm unsure of in this sample.&amp;nbsp; I've included some code below that works, but I've left out the proxy (I don't need it) and the geometry service (you don't need it in this sample piece so not sure why it's there).&amp;nbsp; Also, you can set the initial zoom location and scale through the view initialization, not sure why you have a secondary extent and resolution.&amp;nbsp; I left those out and just relied on the initial View zoom.&amp;nbsp; Also, the coordinates and map projection may not be correct, unless you are looking at the west coast of Africa (usually the first sign you're not).&amp;nbsp; I'm sure there's a lot more to this than what you're showing but this would work (with a good projection) using the code you have provided so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;title&amp;gt;Testing&amp;lt;/title&amp;gt;

    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.18/esri/themes/dark-blue/main.css"&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.18/"&amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;style&amp;gt;
        html,
        body,
        #mapMatriCAD {
            padding: 0;
            margin: 0;
            height: 100%;
            width: 100%;
        }
    &amp;lt;/style&amp;gt;

    &amp;lt;script&amp;gt;
        require([
            "esri/Map",
            "esri/layers/FeatureLayer",
            "esri/layers/GraphicsLayer",
            "esri/views/MapView",
            "esri/geometry/Extent",
            "esri/widgets/BasemapToggle"

        ], function (Map, FeatureLayer, GraphicsLayer, MapView, Extent, BasemapToggle
        ) {

            // Create the Map
            const matricadMap = new Map({
                basemap: "topo-vector"
            });

            // Set map extent
            const matricadMapExtent = new Extent({
                xmin: 145998.0719999969,
                ymin: 162020.52899999917,
                xmax: 152430.14699999988,
                ymax: 167383.29899999872,
                spatialReference: {
                    wkid: 31370
                }
            });

            // Create a MapView instance (for 2D viewing) and reference the map instance
            const matricadMapView = new MapView({
                container: "mapMatriCAD",
                map: matricadMap,
                center: matricadMapExtent.center,
                zoom: 9,
                highlightOptions: {
                    color: "orange"
                }
            });

            // Carbon storage of trees in Warren Wilson College.
            var featureLayer = new FeatureLayer({
                url: "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0"
            });

            matricadMap.add(featureLayer);

            // Toggle backgrounds layers
            const basemapToggle = new BasemapToggle({
                view: matricadMapView,
                nextBasemap: "hybrid"
            });

            matricadMapView.when(function () {
                /* Set ArcGIS Server proxy URL */
                //esriConfig.request.proxyUrl = proxyiedUrl;
                /* Set ArcGIS GeometryService URL */
                //esriConfig.geometryServiceUrl = 'https://&amp;lt;my-geometry-service&amp;gt;';

                //matricadMapView.extent = matricadMapExtent;

                // Set initial zoom
                //matricadMapView.constraints = {
                //    minScale: 25000
                //};

                // Get graphic properties from view click
                matricadMapView.on('click', function (event) {
                    matricadMapView.hitTest(event).then(function (response) {
                        if (response.results.length) {
                            console.log(response);
                        }
                    });
                });
            });

        });
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div id="mapMatriCAD"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Mar 2021 16:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039351#M72158</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2021-03-22T16:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.18 - Map height increasing non stop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039472#M72166</link>
      <description>&lt;P&gt;Rene, altough the css was included in the code and correctly loaded, it was not correctly parsed for wathever reason I'm investigating now.&lt;/P&gt;&lt;P&gt;It doesn't appear missing&amp;nbsp; in the dev tools so the debug wasn't showing any problem apparently.&lt;/P&gt;&lt;P&gt;Thanks for showing the way.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 19:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039472#M72166</guid>
      <dc:creator>PierreLarondelle</dc:creator>
      <dc:date>2021-03-22T19:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.18 - Map height increasing non stop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039480#M72167</link>
      <description>&lt;P&gt;Thanks Jeffrey for your help. It was finally a sporadic css parsing issue.&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 20:02:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-18-map-height-increasing-non-stop/m-p/1039480#M72167</guid>
      <dc:creator>PierreLarondelle</dc:creator>
      <dc:date>2021-03-22T20:02:36Z</dc:date>
    </item>
  </channel>
</rss>

