Select to view content in your preferred language

basic viewer

4381
4
Jump to solution
01-09-2015 12:17 PM
ErikBlake
Frequent Contributor

So is the basic viewer app design to not allow you to turn individual layers on or off?.

0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor

If you add a map service to a web map, you will only have the option to toggle on/off the entire service.  For example, if I add the following URL to my web map:

http://ags/arcgis/rest/services/NapervilleWaterNetwork/MapServer

However, if I add the layers as a feature layer, you will be able to toggle them on/off.  So, you will want to add each one individually.  Ex:

http://ags/arcgis/rest/services/NapervilleWaterNetwork/MapServer/0

http://ags/arcgis/rest/services/NapervilleWaterNetwork/MapServer/1

http://ags/arcgis/rest/services/NapervilleWaterNetwork/MapServer/2

.....

View solution in original post

4 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Erik,

This is possible.  Take a look at the toolbar at the top left.  Ex:

screen1.png

0 Kudos
ErikBlake
Frequent Contributor

Jake

Then I must be doing something wrong. Because when I view my application when I click on the layers icon it pops up but only shows the name of my map service. I don't get that option to turn all my layers on or off. For example. I have water lines sewer lines pump stations meters etc. Those individual layers don't show up in the layers list. The only thing that shows is the name of the map service. So my only option is to turn all layers on or off

0 Kudos
JakeSkinner
Esri Esteemed Contributor

If you add a map service to a web map, you will only have the option to toggle on/off the entire service.  For example, if I add the following URL to my web map:

http://ags/arcgis/rest/services/NapervilleWaterNetwork/MapServer

However, if I add the layers as a feature layer, you will be able to toggle them on/off.  So, you will want to add each one individually.  Ex:

http://ags/arcgis/rest/services/NapervilleWaterNetwork/MapServer/0

http://ags/arcgis/rest/services/NapervilleWaterNetwork/MapServer/1

http://ags/arcgis/rest/services/NapervilleWaterNetwork/MapServer/2

.....

ErikBlake
Frequent Contributor

Ok. Thanks Jake

0 Kudos