for Web AppBuilder there is a widget to publish the map to a portal as a webmap, created from a series of layers found in geoportal: https://github.com/Esri/geoportal-server-catalog/tree/master/components/GeoportalSearch/WebAppBuilder/CreateWebmap This ticket is to start migrating this as a built-in capability in the 3.x map panel.