laptop and a wrench

Bug

The visibility of a FeatureLayer cannot be toggled in the MapView when the 'visible' property is initially set to 'false' in ArcGIS API for JavaScript 4.0.

Last Published: July 20, 2016 ArcGIS API for JavaScript
Bug ID Number BUG-000097737
SubmittedJuly 13, 2016
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.0
Operating SystemN/A
Operating System VersionN/A
Version Fixed4.1
StatusFixed

Workaround

1. In the sample application at https://jsfiddle.net/gkj4hhrv/, change the 'visible' property of the FeatureLayer to 'true' at Line 37. 2. In the HTML section at Line 6, after the 'id' attribute for 'checkbox', add the following attribute: checked="true", and the toggling works as expected.

Steps to Reproduce

Bug ID: BUG-000097737

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