This is similar to my previous question How to add a layer to Web AppBuilder at run-time

But in this case I want to access layers from ArcGIS Online, similar to the way that the > Add > Search For Layers function works from the default ArcGIS Online map viewer:

enter image description here

This brings up a window listing layers stored in my ArcGIS Online account, and allows them to be added to the map.

Is a similar function available in Web AppBuilder?


Not exactly what you are asking for, but a workaround: you can switch AGOL maps run-time by adding itemid={mapId} into the querystring + reload. If you have more AGOL maps with different sets of layers, you can in fact add/remove AGOL layers at runtime.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.