When you create a web app with the Web AppBuilder, the configured Web Map is permanently linked to the app. However, in some use cases, you might want to use a web app with different Web Maps.This is relatively easy to achieve with the Web AppBuilder by specifying the ID of the desired Web Map as a URL parameter when calling the app.An unfortunately poorly documented URL parameter of the Web AppBuilder is the parameter itemid. With this, you specify the ID of the Web Map to be used in the web application. This Web Map specified as a URL parameter overrides the Web Map specified in the configuration of the Web AppBuilder and is thus displayed in the web app.This principle works both with the Web AppBuilder Developer Edition and with the Web AppBuilder integrated into Portal.<\/P>
<\/P>
A URL call of an app created with the Developer Edition could look like this:<\/P>
\/MyApp\/index.html?itemid=851bfb6399de45faa7b62b811b7f8979" rel="nofollow noopener noreferrer">http:\/\/\/MyApp\/index.html?itemid=851bfb6399de45faa7b62b811b7f8979<\/A><\/P><\/P>For an app in Portal, a URL call of the app looks like this:<\/P>\/portal\/apps\/webappbuilder\/index.html?id=b3381f7da4d945a98e25ea9655f33d77&itemid=851bfb6399de45faa7b62b811b7f8979" rel="nofollow noopener noreferrer">https:\/\/\/portal\/apps\/webappbuilder\/index.html?id=b3381f7da4d945a98e25ea9655f33d77&itemid=851bfb6399de45faa7b62b811b7f8979<\/A><\/P><\/P>In both cases, 851bfb6399de45faa7b62b811b7f8979 is the ID of the Web Map to be displayed in the app.<\/P><\/BODY><\/HTML>
For an app in Portal, a URL call of the app looks like this:<\/P>
In both cases, 851bfb6399de45faa7b62b811b7f8979 is the ID of the Web Map to be displayed in the app.<\/P><\/BODY><\/HTML>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.