laptop and a wrench

漏洞

Some FeatureLayer and MapImageLayer do not draw on the specific Android devices when the opacity is not set to 1.

上次发布: October 27, 2020 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000130223
已提交April 17, 2020
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本4.15
操作系统N/A
操作系统版本N/A
修正版本4.20
状态Fixed

解决办法

Only the first layer added to map is affected by the bug.​

The issue was reproduced in Oppo F15 Android 10 device using ARM Mali G72 MP3 900 MHz GPU. The following sample codes given in the steps to reproduce were run on Google Chrome browser.

FeatureLayer (4.16): https://codepen.io/lxie/pen/yLYYwBz

MapImageLayer (4.16): https://codepen.io/lxie/pen/OJyWMaM

  • By adding a dummy layer before the correct layer with required opacity, the desired results can be obtained. 
  • By setting 0 opacity for the dummy layer it can be prevented from being visible during zooming and panning operations.

For testing purposes the same layer was used as a dummy layer. Below are the screenshots of the testing done.

Issue reproduced with opacity set as 0.5:-

FeatureLayer_Opacity_not_1.jpg MapImageLayer_Opacity_not_1.jpg

Results with opacity set as 1.

FeatureLayer_Opacity_1.jpg MapImageLayer_Opacity_1.jpg

Results with workaround and opacity set to 0.5

FeatureLayer_Opacity_not_1_with_Workaround.jpg MapImageLayer_Opacity_not_1_with_Workaround.jpg

重现步骤

漏洞 ID: BUG-000130223

软件:

  • ArcGIS API for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项