laptop and a wrench

漏洞

Seeing a large increase in resource usage when using Safari to display WebTileLayers.

ArcGIS Maps SDK for JavaScript
漏洞 ID 编号 BUG-000172545
已提交November 22, 2024
上次修改时间December 22, 2024
适用范围ArcGIS Maps SDK for JavaScript
找到的版本4.30
操作系统Apple MacOS
操作系统版本N/A
状态Under Consideration

附加信息

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.

解决办法

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.

重现步骤

漏洞 ID: BUG-000172545

软件:

  • ArcGIS Maps SDK for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项