AnsweredAssumed Answered

JS API 4.7 WebMap : layers visibility defined in AGOL not respected ?

Question asked by NicolasGIS on Jun 28, 2018
Latest reply on Jul 21, 2018 by NicolasGIS

Playing with the following sample, loading a webMap from a PortalItem id:

Load a basic WebMap | ArcGIS API for JavaScript 4.7 

I noticed that a WebMap containing a MapService with custom layers visibility defined in AGOL (overwriting thus the default ones from the service) are not respected using arcgis js api 4.7. Layers visibility configuration is the one of the service and not the one of webmap.

I know WebMap is partially supported:

WebMap | API Reference | ArcGIS API for JavaScript 4.7 

but even with a map service that has dynamic layers enabled, it is still not respected. 

 

Is it a temporary limitation ? Maybe linked to AGOL ? 

 

Cheers

 

Nicolas

Outcomes