Bug ID Number |
BUG-000172545 |
Submitted | November 22, 2024 |
Last Modified | December 22, 2024 |
Applies to | ArcGIS Maps SDK for JavaScript |
Version found | 4.30 |
Operating System | Apple MacOS |
Operating System Version | N/A |
Status | Under Consideration
The issue has been reviewed by the development team. It has not been prioritized into a release plan and will be monitored to determine its overall impact. Factors that are considered in the prioritization process include the number of users affected or requesting the functionality, business impact, whether a workaround exists, among others. If a bug is adversely affecting your business, see How To: Escalate a defect (https://support.esri.com/en/technical-article/000024129).
|
Additional Information
The issue arises because all the tile layers are added to the map, and each layer fetches its tiles and retains them in memory indefinitely. Below is an example of the same map where the layers are removed instead of simply being hidden. This approach prevents memory issues by releasing the tiles when the layer is removed. Refer to this link https://codepen.io/U_B_U/pen/NPKREQm?editors=1000 for more information.
With that said, the memory usage are further improved. If a layer remains invisible for a certain period, the layer view must automatically purge the tiles from memory, freeing up resources and optimizing performance.
Workaround
The issue arises because all the tile layers are added to the map, and each layer fetches its tiles and retains them in memory indefinitely. Below is an example of the same map where the layers are removed instead of simply being hidden. This approach prevents memory issues by releasing the tiles when the layer is removed. Refer to this link https://codepen.io/U_B_U/pen/NPKREQm?editors=1000 for more information.
Steps to Reproduce