Turning layers on and off in ArcGIS.com embeddable web map

4284
12
12-08-2011 02:36 AM
MikeSteven
New Contributor III
Hi,

On our website I want to embed a web map I've created with ArcGIS.com but I want the web map to have a table of contents that allows the user to turn on and off all of the layers in the map. Is it possible to turn layers on and off on the embedded web map? Are there any templates for it (I can't find one)?

Thanks,
Mike.
Tags (2)
0 Kudos
12 Replies
SargentMcDonald
New Contributor III
Crud, I just noticed you said embeddable. No, there is no way that I know of to have a layer list in an embeddable map unless you custom coded it . Using the esri agol code that isn't an option.
I didn't read your first post properly.
0 Kudos
RachelFrischeisen
New Contributor III
Just throwing in my 2 cents -

ESRI, this functionality would add so much to the embedded iFrame maps. Please consider adding the option to toggle layers.

http://ideas.arcgis.com/ideaView?id=087E00000005ApkIAE
0 Kudos
AnaHiraldo
New Contributor II
I have been adding the layers from the map service by their rest index number url and that works fine.
Example , /mapservicename/mapserver/3

It takes a few extra minutes but works to get the layers to work in the templates and you don't need separate map services for each layer like I thought back then.
It is a pain when you reorder or add layers to the map service as the agol map needs to be redone too.


Wow, ESRI, still no fix 😞
I have been doing the same, but there is a problem.  Labels don't show.
0 Kudos