Is This Content Helpful?
We're glad to know this article was helpful.
When sharing a web map publicly in ArcGIS Online, an option becomes available to 'Embed in Website'. This option automatically generates a block of HTML code that can be copied and pasted to a website, allowing the map to be viewed directly on the web page. This block of code can be altered to allow a web application (instead of a web map) to be embedded. This option can be useful for embedding ArcGIS Online hosted web applications, Web AppBuilder applications, and the Map Viewer.
Embedding a web application in a website can be useful in various situations.
• To show a map on a web page that includes a legend which is open by default, the Legend web application template can be used with a web map and embedded in the web page.
• To provide a map which includes a premium service with embedded credentials, such as the World Routing Service. For example, routes can be found through the Directions web application template or using the Directions widget in the Web AppBuilder.
• To show a map that includes Related Records functionality, the Map Viewer can be embedded in a website.
Steps for embedding an ArcGIS Online hosted web application, Web AppBuilder application, or the Map Viewer in a web page:
If embedding the Map Viewer, copy the URL of the web map when opened in the Map Viewer.