How to toggle layers in an embed AGOL web map?

715
1
Jump to solution
07-18-2018 07:47 AM
XuanKuai1
New Contributor II

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