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

5661
16
06-28-2018 01:41 PM
NicolasGIS
Occasional Contributor III

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

Tags (2)
0 Kudos
16 Replies
BjornSvensson
Esri Regular Contributor

Hi Nicolas Guilhaudin - could you share a public webmap that has this problem?

0 Kudos
NicolasGIS
Occasional Contributor III

Hello Bjorn Svensson

Thanks for the reply.

Here is a webmap illustrating the issue: 19f66cad5b214025a815493fc5e9196e

Thanks for your help,

Nicolas

NicolasGIS
Occasional Contributor III

Hi,

I just tried with the new release 4.8 and it is still the same problem unfortunately.

Thanks

0 Kudos
NicolasGIS
Occasional Contributor III

HelloBjorn Svensson‌,

Were you able to identify the issue with the shared webmap ?

Is that a bug ?

Thanks,

Nicolas

0 Kudos
BjornSvensson
Esri Regular Contributor

Yes, I was able to replicate with the webmap you shared.

This is a bug with the 4.x API.  Thank you for reporting.

0 Kudos
NicolasGIS
Occasional Contributor III

Hello Bjorn Svensson‌,

Thanks for the reply. Glad it has been logged.

Nicolas

0 Kudos
NicolasGIS
Occasional Contributor III

Hello Bjorn Svensson,

It seems like the issue remains in 4.9.

Any hope for 4.10 ? Is there NIM for following the status ? It is a big a limitation for us as it prevents us from fully exploiting AGOL webmap philosophy.

Thanks,

Nicolas

0 Kudos
BjornSvensson
Esri Regular Contributor

Nicolas Guilhaudin  Sorry, this will not be fixed in 4.10.  I don't think there's a NIM for it.

NicolasGIS
Occasional Contributor III

Thanks for the reply.

Not in your priorities I guess. Good to know though.

0 Kudos