laptop and a wrench

Bug

Layer visibility of map service layers in web maps is not honored in ArcGIS API for JavaScript 4.x.

Zuletzt veröffentlicht: March 30, 2020 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000121406
EingereichtApril 2, 2019
Zuletzt geändertJuly 20, 2025
Gilt fürArcGIS API for JavaScript
Gefunden in Version4.11
BetriebssystemWindows OS
BetriebssystemversionN/A
Behoben in Version4.15
StatusFixed

Workaround

Modify a layer in the web map by changing the transparency (and then changing it back to 100%) which adds the layers attribute to the WebMap JSON and forces the JavaScript WebMap class to respect the visibleLayers attribute.

For example, see the following WebMap JSON by replacing the ID in: https://www.arcgis.com/sharing/content/items/6a98eb44a463454eb17d3ed2b312bcc8/data?f=pjson

Schritte zur Reproduzierung

Bug-ID: BUG-000121406

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln