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
Hi Nicolas Guilhaudin - could you share a public webmap that has this problem?
Hello Bjorn Svensson
Thanks for the reply.
Here is a webmap illustrating the issue: 19f66cad5b214025a815493fc5e9196e
Thanks for your help,
Nicolas
Hi,
I just tried with the new release 4.8 and it is still the same problem unfortunately.
Thanks
HelloBjorn Svensson,
Were you able to identify the issue with the shared webmap ?
Is that a bug ?
Thanks,
Nicolas
Yes, I was able to replicate with the webmap you shared.
This is a bug with the 4.x API. Thank you for reporting.
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
Nicolas Guilhaudin Sorry, this will not be fixed in 4.10. I don't think there's a NIM for it.
Thanks for the reply.
Not in your priorities I guess. Good to know though.