Select to view content in your preferred language

turn off layer list

2635
2
Jump to solution
12-07-2014 11:43 PM
MohammedKhamis
Emerging Contributor

Dear ,

how can turn off (checkbox) all layers by layer list widget , and allows end users to turn on layers which want to display them .?

you can see link on the bellow and attached , the same idea what I want it .

مستكشف جدة الجغرافي

many thanks

Reagrds,

Mohammed

0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor

Mohammed,

To have every checkbox un-ticked you have to do a combination of two things.

First off all ensure all your layers are turned off (un-checked) in your mxd when you publish your service.

Then in the main config file for your flex viewer when you add the layer, make sure you have visible set to false:

<layer label="Streets"
  type="tiled"
  visible="false"
  url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>

Regards

Anthony

View solution in original post

2 Replies
AnthonyGiles
Honored Contributor

Mohammed,

To have every checkbox un-ticked you have to do a combination of two things.

First off all ensure all your layers are turned off (un-checked) in your mxd when you publish your service.

Then in the main config file for your flex viewer when you add the layer, make sure you have visible set to false:

<layer label="Streets"
  type="tiled"
  visible="false"
  url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>

Regards

Anthony

MohammedKhamis
Emerging Contributor

Many Thanks Authony Giles for helping

0 Kudos