<?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 Lagging on Drag and Drop Movement in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1008144#M71076</link>
    <description>&lt;P&gt;Oh! We usually refer to that action as panning and zooming. Typically "drag and drop" indicates using the cursor to lift individual features from one location and set them down in another location on the map.&lt;/P&gt;&lt;P&gt;I was not able to see pixelation other than some temporary and normal fading-in as the various map tiles loaded. One suggestion is to verify your CPU and memory usage while panning and zooming.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 17:37:53 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2020-12-09T17:37:53Z</dc:date>
    <item>
      <title>Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1006132#M70957</link>
      <description>&lt;P&gt;&lt;SPAN&gt;am working on Angular 11 project having arcgis javascript version 4.17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when doing&amp;nbsp;Drag and Drop on the map it self by the mouse, there is a kind of lagging that happens on it. the movement is not smoothly done.&lt;BR /&gt;note it is not something&amp;nbsp;with the&amp;nbsp;internet connection,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&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SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;EsriMapView&lt;/SPAN&gt;&lt;SPAN&gt;(map_view_properties&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Dec 2020 12:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1006132#M70957</guid>
      <dc:creator>KhaledAttiyat</dc:creator>
      <dc:date>2020-12-02T12:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1007053#M71010</link>
      <description>&lt;P&gt;Hi, have you tried to reproduce the issue in a non-Angular, plain old HTML/JavaScript app? Do you have a public sample I can take a look at?&lt;/P&gt;&lt;P&gt;Depending on what your code is doing, there's a slim possibility you could be running into a component change detection issue. An easy thing to try is to run your mapping code outside of Angular, for example: &lt;A href="https://github.com/Esri/angular-cli-esri-map/blob/arcgis-webpack-angular/src/app/esri-map/esri-map.component.ts#L159" target="_blank"&gt;https://github.com/Esri/angular-cli-esri-map/blob/arcgis-webpack-angular/src/app/esri-map/esri-map.component.ts#L159&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 19:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1007053#M71010</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2020-12-04T19:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1007611#M71044</link>
      <description>&lt;P&gt;Hello Andy,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;thank you for help, i've tried your solution but it is the same. note that i have used the same technique you had on the Link.&lt;BR /&gt;it seems the problem exist when i apply multi layar in the map.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 08:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1007611#M71044</guid>
      <dc:creator>KhaledAttiyat</dc:creator>
      <dc:date>2020-12-08T08:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1007753#M71054</link>
      <description>&lt;P&gt;Gotcha, can you share a stackblitz or, preferably a non-Angular codepen that reproduces the issue? You'll need to share a working example so we can figure this out.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 16:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1007753#M71054</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2020-12-08T16:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1007990#M71072</link>
      <description>&lt;P&gt;Please Find the Example in this Link:&lt;BR /&gt;&lt;A href="https://codepen.io/KhaledKaizen/pen/vYXXXqV?editors=1000" target="_blank"&gt;https://codepen.io/KhaledKaizen/pen/vYXXXqV?editors=1000&lt;/A&gt;&lt;BR /&gt;you only have to drag and drop the map right, left, up and down, it will be noticed more with the zoom in, the map will be like Pixelated in movement.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 09:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1007990#M71072</guid>
      <dc:creator>KhaledAttiyat</dc:creator>
      <dc:date>2020-12-09T09:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1008144#M71076</link>
      <description>&lt;P&gt;Oh! We usually refer to that action as panning and zooming. Typically "drag and drop" indicates using the cursor to lift individual features from one location and set them down in another location on the map.&lt;/P&gt;&lt;P&gt;I was not able to see pixelation other than some temporary and normal fading-in as the various map tiles loaded. One suggestion is to verify your CPU and memory usage while panning and zooming.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 17:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1008144#M71076</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2020-12-09T17:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1162995#M76973</link>
      <description>&lt;P&gt;Is there any way to avoid or fix this issue in an Angular application?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 12:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1162995#M76973</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2022-04-11T12:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1163291#M76986</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/152457"&gt;@arahman_mdmajid&lt;/a&gt;please provide a simple codepen, github or stackblitz that we can use to test/reproduce your issue. I suspect the original reported issue was not related to Angular.&lt;/P&gt;&lt;P&gt;[Updated} Duplicate posting: &lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/basemap-pan-and-zoom-lagging-jittery/m-p/1162985#M76972" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-questions/basemap-pan-and-zoom-lagging-jittery/m-p/1162985#M76972&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 21:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1163291#M76986</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-04-11T21:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1163424#M76991</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;,&amp;nbsp;thank you for your response.&lt;/P&gt;&lt;P&gt;When I started adding code to a sample Stackblitz repo, I found that until I added all the layers to my map. The map was very smooth. When I started creating multiple layers from a&amp;nbsp;collection of services in a JSON file and added them to the map, it became slow and laggy.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  for (var layer in this.servicesArray) {
    var layerTitle = this.servicesArray[layer].name_ar;
    var layerId = this.servicesArray[layer].name_en;
    var test = new MapImageLayer({
      url: this.servicesArray[layer].serviceLayers,
      title: layerTitle,
      id: layerId,
      visible: false
    });
    map.add(test);
  }&lt;/LI-CODE&gt;&lt;P&gt;The problem is also mentioned in this post here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/reduce-lag-and-improve-performance-when-load-multi/m-p/156554" target="_self"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-questions/reduce-lag-and-improve-performance-when-load-multi/m-p/156554&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot share an example of it since it contains sensitive layer URLs.&lt;/P&gt;&lt;P&gt;I also tried creating all the layers, pushing them into an array, and using the 'addMany()' methods for the array. But it also does not solve the issue.&lt;/P&gt;&lt;P&gt;I have also turned the layer visibility off at the time of creation.&lt;/P&gt;&lt;P&gt;I would appreciate it if other collaborators can also provide suggestions to resolve this issue.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 12:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1163424#M76991</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2022-04-12T12:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Map Lagging on Drag and Drop Movement</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1163557#M76994</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/152457"&gt;@arahman_mdmajid&lt;/a&gt; since you can't share the layers, the best approach is to open a support ticket. Tech Support can do a deep dive investigation to document the issue and try to recreate it.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 16:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-lagging-on-drag-and-drop-movement/m-p/1163557#M76994</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-04-12T16:31:17Z</dc:date>
    </item>
  </channel>
</rss>

