laptop and a wrench

Bug

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

Last Published: October 27, 2020 ArcGIS API for JavaScript
Bug ID Number BUG-000130223
SubmittedApril 17, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.15
Operating SystemN/A
Operating System VersionN/A
Version Fixed4.20
StatusFixed

Workaround

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

Steps to Reproduce

Bug ID: BUG-000130223

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options