Select to view content in your preferred language

How to toggle layers in an embed AGOL web map?

839
1
Jump to solution
07-18-2018 07:47 AM
XuanKuai1
Occasional Contributor

In AGOL map viewer I can toggle layers. Is there anyway to do this with the web map embed in a HTML page?

0 Kudos
1 Solution

Accepted Solutions
CarmelConnolly
Esri Regular Contributor

You can enable the layer toggle by adding &legendlayers=true to the web map URL used in the embed code. 


Alternatively, use the option Legend > Layer Toggle from the Embed option in the Web Map:

More information: Embed maps, apps, and groups—ArcGIS Online Help | ArcGIS 

Carmel

View solution in original post

1 Reply
CarmelConnolly
Esri Regular Contributor

You can enable the layer toggle by adding &legendlayers=true to the web map URL used in the embed code. 


Alternatively, use the option Legend > Layer Toggle from the Embed option in the Web Map:

More information: Embed maps, apps, and groups—ArcGIS Online Help | ArcGIS 

Carmel