laptop and a wrench

Bug

FeatureLayer does not honor the default visibility of a layer in ArcGIS API for JavaScript 3.20 and 4.3.

Last Published: June 21, 2017 ArcGIS API for JavaScript
Bug ID Number BUG-000104551
SubmittedApril 18, 2017
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version foundN/A
Operating SystemN/A
StatusWill Not Be Addressed

Additional Information

This is by design. Same behavior can also be observed outside of the API. If wanting to control layer's visibility, set it using the featurelayer.visible property.

Workaround

Use the FeatureLayer hide() method.

Steps to Reproduce

Bug ID: BUG-000104551

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